/src/scnlib/src/scn/impl.h
Line | Count | Source (jump to first uncovered line) |
1 | | // Copyright 2017 Elias Kosunen |
2 | | // |
3 | | // Licensed under the Apache License, Version 2.0 (the "License"); |
4 | | // you may not use this file except in compliance with the License. |
5 | | // You may obtain a copy of the License at |
6 | | // |
7 | | // https://www.apache.org/licenses/LICENSE-2.0 |
8 | | // |
9 | | // Unless required by applicable law or agreed to in writing, software |
10 | | // distributed under the License is distributed on an "AS IS" BASIS, |
11 | | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
12 | | // See the License for the specific language governing permissions and |
13 | | // limitations under the License. |
14 | | // |
15 | | // This file is a part of scnlib: |
16 | | // https://github.com/eliaskosunen/scnlib |
17 | | |
18 | | #pragma once |
19 | | |
20 | | // Transitively includes <scn/scan.h> |
21 | | #include <scn/regex.h> |
22 | | #include <scn/xchar.h> |
23 | | |
24 | | #include <algorithm> |
25 | | #include <clocale> |
26 | | #include <cmath> |
27 | | #include <cwchar> |
28 | | #include <functional> |
29 | | #include <vector> |
30 | | |
31 | | #if SCN_HAS_BITOPS |
32 | | #include <bit> |
33 | | #elif SCN_MSVC |
34 | | #include <IntSafe.h> |
35 | | #include <intrin.h> |
36 | | #elif SCN_POSIX && !SCN_GCC_COMPAT |
37 | | |
38 | | SCN_CLANG_PUSH |
39 | | SCN_CLANG_IGNORE("-Wreserved-id-macro") |
40 | | #define _XOPEN_SOURCE 700 |
41 | | SCN_CLANG_POP |
42 | | |
43 | | #include <strings.h> |
44 | | #endif |
45 | | |
46 | | #if SCN_REGEX_BACKEND == SCN_REGEX_BACKEND_STD |
47 | | #include <regex> |
48 | | #if SCN_REGEX_BOOST_USE_ICU |
49 | | #error "Can't use the ICU with std::regex" |
50 | | #endif |
51 | | #elif SCN_REGEX_BACKEND == SCN_REGEX_BACKEND_BOOST |
52 | | #include <boost/regex.hpp> |
53 | | #if SCN_REGEX_BOOST_USE_ICU |
54 | | #include <boost/regex/icu.hpp> |
55 | | #endif |
56 | | #elif SCN_REGEX_BACKEND == SCN_REGEX_BACKEND_RE2 |
57 | | #include <re2/re2.h> |
58 | | #endif |
59 | | |
60 | | namespace scn { |
61 | | SCN_BEGIN_NAMESPACE |
62 | | |
63 | | ///////////////////////////////////////////////////////////////// |
64 | | // Private ranges stuff |
65 | | ///////////////////////////////////////////////////////////////// |
66 | | |
67 | | namespace ranges { |
68 | | |
69 | | template <typename R> |
70 | | using const_iterator_t = iterator_t<std::add_const_t<R>>; |
71 | | |
72 | | // Like std::ranges::distance, utilizing .position if available |
73 | | namespace detail::distance_ { |
74 | | struct fn { |
75 | | private: |
76 | | template <typename I, typename S> |
77 | | static constexpr auto impl(I i, S s, priority_tag<1>) |
78 | | -> decltype(s.position() - i.position()) |
79 | | { |
80 | | return s.position() - i.position(); |
81 | | } |
82 | | |
83 | | template <typename I, typename S> |
84 | | static constexpr auto impl(I i, S s, priority_tag<0>) |
85 | | -> std::enable_if_t<sized_sentinel_for<S, I>, iter_difference_t<I>> |
86 | 54.6k | { |
87 | 54.6k | return s - i; |
88 | 54.6k | } std::__1::enable_if<sized_sentinel_for<char const*, char const*>, scn::v3::ranges::incrementable_traits<char const*>::difference_type>::type scn::v3::ranges::detail::distance_::fn::impl<char const*, char const*>(char const*, char const*, scn::v3::detail::priority_tag<0ul>) Line | Count | Source | 86 | 51.8k | { | 87 | 51.8k | return s - i; | 88 | 51.8k | } |
std::__1::enable_if<sized_sentinel_for<wchar_t const*, wchar_t const*>, scn::v3::ranges::incrementable_traits<wchar_t const*>::difference_type>::type scn::v3::ranges::detail::distance_::fn::impl<wchar_t const*, wchar_t const*>(wchar_t const*, wchar_t const*, scn::v3::detail::priority_tag<0ul>) Line | Count | Source | 86 | 2.79k | { | 87 | 2.79k | return s - i; | 88 | 2.79k | } |
Unexecuted instantiation: std::__1::enable_if<sized_sentinel_for<std::__1::__wrap_iter<char*>, std::__1::__wrap_iter<char*> >, scn::v3::ranges::incrementable_traits<std::__1::__wrap_iter<char*> >::difference_type>::type scn::v3::ranges::detail::distance_::fn::impl<std::__1::__wrap_iter<char*>, std::__1::__wrap_iter<char*> >(std::__1::__wrap_iter<char*>, std::__1::__wrap_iter<char*>, scn::v3::detail::priority_tag<0ul>) Unexecuted instantiation: std::__1::enable_if<sized_sentinel_for<std::__1::__wrap_iter<wchar_t*>, std::__1::__wrap_iter<wchar_t*> >, scn::v3::ranges::incrementable_traits<std::__1::__wrap_iter<wchar_t*> >::difference_type>::type scn::v3::ranges::detail::distance_::fn::impl<std::__1::__wrap_iter<wchar_t*>, std::__1::__wrap_iter<wchar_t*> >(std::__1::__wrap_iter<wchar_t*>, std::__1::__wrap_iter<wchar_t*>, scn::v3::detail::priority_tag<0ul>) |
89 | | |
90 | | template <typename I, typename S> |
91 | | static constexpr auto impl(I i, S s, priority_tag<0>) |
92 | | -> std::enable_if_t<!sized_sentinel_for<S, I>, iter_difference_t<I>> |
93 | 0 | { |
94 | 0 | iter_difference_t<I> counter{0}; |
95 | 0 | while (i != s) { |
96 | 0 | ++i; |
97 | 0 | ++counter; |
98 | 0 | } |
99 | 0 | return counter; |
100 | 0 | } Unexecuted instantiation: std::__1::enable_if<!(sized_sentinel_for<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >), scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::difference_type>::type scn::v3::ranges::detail::distance_::fn::impl<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::detail::priority_tag<0ul>) Unexecuted instantiation: std::__1::enable_if<!(sized_sentinel_for<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::detail::basic_scan_buffer<char>::forward_iterator>), scn::v3::ranges::incrementable_traits<scn::v3::detail::basic_scan_buffer<char>::forward_iterator>::difference_type>::type scn::v3::ranges::detail::distance_::fn::impl<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::detail::basic_scan_buffer<char>::forward_iterator>(scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::detail::priority_tag<0ul>) Unexecuted instantiation: std::__1::enable_if<!(sized_sentinel_for<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> >), scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> >::difference_type>::type scn::v3::ranges::detail::distance_::fn::impl<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::detail::priority_tag<0ul>) Unexecuted instantiation: std::__1::enable_if<!(sized_sentinel_for<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >), scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::difference_type>::type scn::v3::ranges::detail::distance_::fn::impl<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::detail::priority_tag<0ul>) Unexecuted instantiation: std::__1::enable_if<!(sized_sentinel_for<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator>), scn::v3::ranges::incrementable_traits<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator>::difference_type>::type scn::v3::ranges::detail::distance_::fn::impl<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator>(scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::detail::priority_tag<0ul>) Unexecuted instantiation: std::__1::enable_if<!(sized_sentinel_for<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> >), scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> >::difference_type>::type scn::v3::ranges::detail::distance_::fn::impl<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::detail::priority_tag<0ul>) |
101 | | |
102 | | public: |
103 | | template <typename I, typename S> |
104 | | constexpr auto operator()(I first, S last) const |
105 | | -> std::enable_if_t<input_or_output_iterator<I> && sentinel_for<S, I>, |
106 | | iter_difference_t<I>> |
107 | 54.6k | { |
108 | 54.6k | return fn::impl(std::move(first), std::move(last), priority_tag<0>{}); |
109 | 54.6k | } std::__1::enable_if<(input_or_output_iterator<char const*>)&&(sentinel_for<char const*, char const*>), scn::v3::ranges::incrementable_traits<char const*>::difference_type>::type scn::v3::ranges::detail::distance_::fn::operator()<char const*, char const*>(char const*, char const*) const Line | Count | Source | 107 | 51.8k | { | 108 | 51.8k | return fn::impl(std::move(first), std::move(last), priority_tag<0>{}); | 109 | 51.8k | } |
std::__1::enable_if<(input_or_output_iterator<wchar_t const*>)&&(sentinel_for<wchar_t const*, wchar_t const*>), scn::v3::ranges::incrementable_traits<wchar_t const*>::difference_type>::type scn::v3::ranges::detail::distance_::fn::operator()<wchar_t const*, wchar_t const*>(wchar_t const*, wchar_t const*) const Line | Count | Source | 107 | 2.79k | { | 108 | 2.79k | return fn::impl(std::move(first), std::move(last), priority_tag<0>{}); | 109 | 2.79k | } |
Unexecuted instantiation: std::__1::enable_if<(input_or_output_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >)&&(sentinel_for<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >), scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::difference_type>::type scn::v3::ranges::detail::distance_::fn::operator()<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>) const Unexecuted instantiation: std::__1::enable_if<(input_or_output_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator>)&&(sentinel_for<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::detail::basic_scan_buffer<char>::forward_iterator>), scn::v3::ranges::incrementable_traits<scn::v3::detail::basic_scan_buffer<char>::forward_iterator>::difference_type>::type scn::v3::ranges::detail::distance_::fn::operator()<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::detail::basic_scan_buffer<char>::forward_iterator>(scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::detail::basic_scan_buffer<char>::forward_iterator) const Unexecuted instantiation: std::__1::enable_if<(input_or_output_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> >)&&(sentinel_for<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> >), scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> >::difference_type>::type scn::v3::ranges::detail::distance_::fn::operator()<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>) const Unexecuted instantiation: std::__1::enable_if<(input_or_output_iterator<std::__1::__wrap_iter<char*> >)&&(sentinel_for<std::__1::__wrap_iter<char*>, std::__1::__wrap_iter<char*> >), scn::v3::ranges::incrementable_traits<std::__1::__wrap_iter<char*> >::difference_type>::type scn::v3::ranges::detail::distance_::fn::operator()<std::__1::__wrap_iter<char*>, std::__1::__wrap_iter<char*> >(std::__1::__wrap_iter<char*>, std::__1::__wrap_iter<char*>) const Unexecuted instantiation: std::__1::enable_if<(input_or_output_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >)&&(sentinel_for<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >), scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::difference_type>::type scn::v3::ranges::detail::distance_::fn::operator()<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>) const Unexecuted instantiation: std::__1::enable_if<(input_or_output_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator>)&&(sentinel_for<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator>), scn::v3::ranges::incrementable_traits<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator>::difference_type>::type scn::v3::ranges::detail::distance_::fn::operator()<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator>(scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator) const Unexecuted instantiation: std::__1::enable_if<(input_or_output_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> >)&&(sentinel_for<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> >), scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> >::difference_type>::type scn::v3::ranges::detail::distance_::fn::operator()<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>) const Unexecuted instantiation: std::__1::enable_if<(input_or_output_iterator<std::__1::__wrap_iter<wchar_t*> >)&&(sentinel_for<std::__1::__wrap_iter<wchar_t*>, std::__1::__wrap_iter<wchar_t*> >), scn::v3::ranges::incrementable_traits<std::__1::__wrap_iter<wchar_t*> >::difference_type>::type scn::v3::ranges::detail::distance_::fn::operator()<std::__1::__wrap_iter<wchar_t*>, std::__1::__wrap_iter<wchar_t*> >(std::__1::__wrap_iter<wchar_t*>, std::__1::__wrap_iter<wchar_t*>) const |
110 | | }; |
111 | | } // namespace detail::distance_ |
112 | | |
113 | | inline constexpr auto distance = detail::distance_::fn{}; |
114 | | |
115 | | namespace detail { |
116 | | template <typename I, typename = void> |
117 | | struct has_batch_advance : std::false_type {}; |
118 | | template <typename I> |
119 | | struct has_batch_advance<I, |
120 | | std::void_t<decltype(SCN_DECLVAL(I&).batch_advance( |
121 | | SCN_DECLVAL(std::ptrdiff_t)))>> : std::true_type { |
122 | | }; |
123 | | } // namespace detail |
124 | | |
125 | | // std::advance, utilizing .batch_advance if available |
126 | | namespace detail::advance_ { |
127 | | struct fn { |
128 | | private: |
129 | | template <typename T> |
130 | | static constexpr T abs(T t) |
131 | 71.9k | { |
132 | 71.9k | if (t < T{0}) { |
133 | 0 | return -t; |
134 | 0 | } |
135 | 71.9k | return t; |
136 | 71.9k | } |
137 | | |
138 | | template <typename I> |
139 | | static constexpr auto impl(I& i, iter_difference_t<I> n, priority_tag<1>) |
140 | | -> std::enable_if_t<has_batch_advance<I>::value> |
141 | | { |
142 | | i.batch_advance(n); |
143 | | } |
144 | | |
145 | | template <typename I> |
146 | | static constexpr auto impl_i_n(I& i, |
147 | | iter_difference_t<I> n, |
148 | | priority_tag<0>) |
149 | | -> std::enable_if_t<random_access_iterator<I>> |
150 | 141k | { |
151 | 141k | i += n; |
152 | 141k | } std::__1::enable_if<random_access_iterator<char const*>, void>::type scn::v3::ranges::detail::advance_::fn::impl_i_n<char const*>(char const*&, scn::v3::ranges::incrementable_traits<char const*>::difference_type, scn::v3::detail::priority_tag<0ul>) Line | Count | Source | 150 | 78.2k | { | 151 | 78.2k | i += n; | 152 | 78.2k | } |
std::__1::enable_if<random_access_iterator<wchar_t const*>, void>::type scn::v3::ranges::detail::advance_::fn::impl_i_n<wchar_t const*>(wchar_t const*&, scn::v3::ranges::incrementable_traits<wchar_t const*>::difference_type, scn::v3::detail::priority_tag<0ul>) Line | Count | Source | 150 | 62.8k | { | 151 | 62.8k | i += n; | 152 | 62.8k | } |
|
153 | | |
154 | | template <typename I> |
155 | | static constexpr auto impl_i_n(I& i, |
156 | | iter_difference_t<I> n, |
157 | | priority_tag<0>) |
158 | | -> std::enable_if_t<bidirectional_iterator<I> && |
159 | | !random_access_iterator<I>> |
160 | 3.06k | { |
161 | 3.06k | constexpr auto zero = iter_difference_t<I>{0}; |
162 | | |
163 | 3.06k | if (n > zero) { |
164 | 0 | while (n-- > zero) { |
165 | 0 | ++i; |
166 | 0 | } |
167 | 0 | } |
168 | 3.06k | else { |
169 | 3.06k | while (n++ < zero) { |
170 | 0 | --i; |
171 | 0 | } |
172 | 3.06k | } |
173 | 3.06k | } std::__1::enable_if<(bidirectional_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> >)&&(!(random_access_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> >)), void>::type scn::v3::ranges::detail::advance_::fn::impl_i_n<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>&, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> >::difference_type, scn::v3::detail::priority_tag<0ul>) Line | Count | Source | 160 | 1.19k | { | 161 | 1.19k | constexpr auto zero = iter_difference_t<I>{0}; | 162 | | | 163 | 1.19k | if (n > zero) { | 164 | 0 | while (n-- > zero) { | 165 | 0 | ++i; | 166 | 0 | } | 167 | 0 | } | 168 | 1.19k | else { | 169 | 1.19k | while (n++ < zero) { | 170 | 0 | --i; | 171 | 0 | } | 172 | 1.19k | } | 173 | 1.19k | } |
Unexecuted instantiation: std::__1::enable_if<(bidirectional_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> > >)&&(!(random_access_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> > >)), void>::type scn::v3::ranges::detail::advance_::fn::impl_i_n<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> > >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> >&, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> > >::difference_type, scn::v3::detail::priority_tag<0ul>) Unexecuted instantiation: std::__1::enable_if<(bidirectional_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> >)&&(!(random_access_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> >)), void>::type scn::v3::ranges::detail::advance_::fn::impl_i_n<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>&, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> >::difference_type, scn::v3::detail::priority_tag<0ul>) Unexecuted instantiation: std::__1::enable_if<(bidirectional_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> > >)&&(!(random_access_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> > >)), void>::type scn::v3::ranges::detail::advance_::fn::impl_i_n<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> > >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> >&, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> > >::difference_type, scn::v3::detail::priority_tag<0ul>) std::__1::enable_if<(bidirectional_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> > >)&&(!(random_access_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> > >)), void>::type scn::v3::ranges::detail::advance_::fn::impl_i_n<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> > >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> >&, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> > >::difference_type, scn::v3::detail::priority_tag<0ul>) Line | Count | Source | 160 | 1.87k | { | 161 | 1.87k | constexpr auto zero = iter_difference_t<I>{0}; | 162 | | | 163 | 1.87k | if (n > zero) { | 164 | 0 | while (n-- > zero) { | 165 | 0 | ++i; | 166 | 0 | } | 167 | 0 | } | 168 | 1.87k | else { | 169 | 1.87k | while (n++ < zero) { | 170 | 0 | --i; | 171 | 0 | } | 172 | 1.87k | } | 173 | 1.87k | } |
Unexecuted instantiation: std::__1::enable_if<(bidirectional_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> > >)&&(!(random_access_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> > >)), void>::type scn::v3::ranges::detail::advance_::fn::impl_i_n<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> > >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> >&, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> > >::difference_type, scn::v3::detail::priority_tag<0ul>) |
174 | | |
175 | | template <typename I> |
176 | | static constexpr auto impl_i_n(I& i, |
177 | | iter_difference_t<I> n, |
178 | | priority_tag<0>) |
179 | | -> std::enable_if_t<!bidirectional_iterator<I>> |
180 | 0 | { |
181 | 0 | while (n-- > iter_difference_t<I>{0}) { |
182 | 0 | ++i; |
183 | 0 | } |
184 | 0 | } Unexecuted instantiation: std::__1::enable_if<!(bidirectional_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >), void>::type scn::v3::ranges::detail::advance_::fn::impl_i_n<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>&, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::difference_type, scn::v3::detail::priority_tag<0ul>) Unexecuted instantiation: std::__1::enable_if<!(bidirectional_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > >), void>::type scn::v3::ranges::detail::advance_::fn::impl_i_n<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >&, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > >::difference_type, scn::v3::detail::priority_tag<0ul>) Unexecuted instantiation: std::__1::enable_if<!(bidirectional_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator>), void>::type scn::v3::ranges::detail::advance_::fn::impl_i_n<scn::v3::detail::basic_scan_buffer<char>::forward_iterator>(scn::v3::detail::basic_scan_buffer<char>::forward_iterator&, scn::v3::ranges::incrementable_traits<scn::v3::detail::basic_scan_buffer<char>::forward_iterator>::difference_type, scn::v3::detail::priority_tag<0ul>) Unexecuted instantiation: std::__1::enable_if<!(bidirectional_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >), void>::type scn::v3::ranges::detail::advance_::fn::impl_i_n<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>&, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::difference_type, scn::v3::detail::priority_tag<0ul>) Unexecuted instantiation: std::__1::enable_if<!(bidirectional_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > >), void>::type scn::v3::ranges::detail::advance_::fn::impl_i_n<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >&, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > >::difference_type, scn::v3::detail::priority_tag<0ul>) Unexecuted instantiation: std::__1::enable_if<!(bidirectional_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator>), void>::type scn::v3::ranges::detail::advance_::fn::impl_i_n<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator>(scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator&, scn::v3::ranges::incrementable_traits<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator>::difference_type, scn::v3::detail::priority_tag<0ul>) |
185 | | |
186 | | template <typename I, typename S> |
187 | | static constexpr auto impl_i_s(I& i, S bound, priority_tag<2>) |
188 | | -> std::enable_if_t<std::is_assignable_v<I&, S>> |
189 | 11.2k | { |
190 | 11.2k | i = std::move(bound); |
191 | 11.2k | } _ZN3scn2v36ranges6detail8advance_2fn8impl_i_sIPKcS7_EENSt3__19enable_ifIXsr3stdE15is_assignable_vIRT_T0_EEvE4typeESB_SC_NS0_6detail12priority_tagILm2EEE Line | Count | Source | 189 | 910 | { | 190 | 910 | i = std::move(bound); | 191 | 910 | } |
_ZN3scn2v36ranges6detail8advance_2fn8impl_i_sIPKwS7_EENSt3__19enable_ifIXsr3stdE15is_assignable_vIRT_T0_EEvE4typeESB_SC_NS0_6detail12priority_tagILm2EEE Line | Count | Source | 189 | 10.3k | { | 190 | 10.3k | i = std::move(bound); | 191 | 10.3k | } |
|
192 | | |
193 | | template <typename I, typename S> |
194 | | static constexpr auto impl_i_s(I& i, S bound, priority_tag<1>) |
195 | | -> std::enable_if_t<sized_sentinel_for<S, I>> |
196 | | { |
197 | | fn::impl_i_n(i, bound - i); |
198 | | } |
199 | | |
200 | | template <typename I, typename S> |
201 | | static constexpr void impl_i_s(I& i, S bound, priority_tag<0>) |
202 | 150 | { |
203 | 3.04k | while (i != bound) { |
204 | 2.89k | ++i; |
205 | 2.89k | } |
206 | 150 | } Unexecuted instantiation: void scn::v3::ranges::detail::advance_::fn::impl_i_s<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>&, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true>, scn::v3::detail::priority_tag<0ul>) void scn::v3::ranges::detail::advance_::fn::impl_i_s<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>&, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true>, scn::v3::detail::priority_tag<0ul>) Line | Count | Source | 202 | 96 | { | 203 | 1.97k | while (i != bound) { | 204 | 1.87k | ++i; | 205 | 1.87k | } | 206 | 96 | } |
Unexecuted instantiation: void scn::v3::ranges::detail::advance_::fn::impl_i_s<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>&, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true>, scn::v3::detail::priority_tag<0ul>) void scn::v3::ranges::detail::advance_::fn::impl_i_s<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>&, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true>, scn::v3::detail::priority_tag<0ul>) Line | Count | Source | 202 | 54 | { | 203 | 1.07k | while (i != bound) { | 204 | 1.02k | ++i; | 205 | 1.02k | } | 206 | 54 | } |
|
207 | | |
208 | | template <typename I, typename S> |
209 | | static constexpr auto impl_i_n_s(I& i, iter_difference_t<I> n, S bound) |
210 | | -> std::enable_if_t<sized_sentinel_for<S, I>, iter_difference_t<I>> |
211 | 35.9k | { |
212 | 35.9k | if (fn::abs(n) >= fn::abs(bound - i)) { |
213 | 54 | auto dist = bound - i; |
214 | 54 | fn::impl_i_s(i, bound, priority_tag<2>{}); |
215 | 54 | return dist; |
216 | 54 | } |
217 | 35.9k | fn::impl_i_n(i, n, priority_tag<1>{}); |
218 | 35.9k | return n; |
219 | 35.9k | } std::__1::enable_if<sized_sentinel_for<char const*, char const*>, scn::v3::ranges::incrementable_traits<char const*>::difference_type>::type scn::v3::ranges::detail::advance_::fn::impl_i_n_s<char const*, char const*>(char const*&, scn::v3::ranges::incrementable_traits<char const*>::difference_type, char const*) Line | Count | Source | 211 | 35.9k | { | 212 | 35.9k | if (fn::abs(n) >= fn::abs(bound - i)) { | 213 | 54 | auto dist = bound - i; | 214 | 54 | fn::impl_i_s(i, bound, priority_tag<2>{}); | 215 | 54 | return dist; | 216 | 54 | } | 217 | 35.9k | fn::impl_i_n(i, n, priority_tag<1>{}); | 218 | 35.9k | return n; | 219 | 35.9k | } |
Unexecuted instantiation: std::__1::enable_if<sized_sentinel_for<wchar_t const*, wchar_t const*>, scn::v3::ranges::incrementable_traits<wchar_t const*>::difference_type>::type scn::v3::ranges::detail::advance_::fn::impl_i_n_s<wchar_t const*, wchar_t const*>(wchar_t const*&, scn::v3::ranges::incrementable_traits<wchar_t const*>::difference_type, wchar_t const*) |
220 | | |
221 | | template <typename I, typename S> |
222 | | static constexpr auto impl_i_n_s(I& i, iter_difference_t<I> n, S bound) |
223 | | -> std::enable_if_t<bidirectional_iterator<I> && |
224 | | !sized_sentinel_for<S, I>, |
225 | | iter_difference_t<I>> |
226 | 3.87k | { |
227 | 3.87k | constexpr iter_difference_t<I> zero{0}; |
228 | 3.87k | iter_difference_t<I> counter{0}; |
229 | | |
230 | 3.87k | if (n < zero) { |
231 | 0 | do { |
232 | 0 | --i; |
233 | 0 | --counter; // Yes, really |
234 | 0 | } while (++n < zero && i != bound); |
235 | 0 | } |
236 | 3.87k | else { |
237 | 13.4k | while (n-- > zero && i != bound) { |
238 | 9.53k | ++i; |
239 | 9.53k | ++counter; |
240 | 9.53k | } |
241 | 3.87k | } |
242 | | |
243 | 3.87k | return counter; |
244 | 3.87k | } Unexecuted instantiation: std::__1::enable_if<(bidirectional_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> > >)&&(!(sized_sentinel_for<scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > > >::sentinel<true>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> > >)), scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> > >::difference_type>::type scn::v3::ranges::detail::advance_::fn::impl_i_n_s<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > > >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> >&, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> > >::difference_type, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > > >::sentinel<true>) Unexecuted instantiation: std::__1::enable_if<(bidirectional_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> >)&&(!(sized_sentinel_for<scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> >)), scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> >::difference_type>::type scn::v3::ranges::detail::advance_::fn::impl_i_n_s<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>&, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> >::difference_type, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true>) std::__1::enable_if<(bidirectional_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> >)&&(!(sized_sentinel_for<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> >)), scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> >::difference_type>::type scn::v3::ranges::detail::advance_::fn::impl_i_n_s<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>&, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> >::difference_type, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true>) Line | Count | Source | 226 | 3.30k | { | 227 | 3.30k | constexpr iter_difference_t<I> zero{0}; | 228 | 3.30k | iter_difference_t<I> counter{0}; | 229 | | | 230 | 3.30k | if (n < zero) { | 231 | 0 | do { | 232 | 0 | --i; | 233 | 0 | --counter; // Yes, really | 234 | 0 | } while (++n < zero && i != bound); | 235 | 0 | } | 236 | 3.30k | else { | 237 | 11.2k | while (n-- > zero && i != bound) { | 238 | 7.92k | ++i; | 239 | 7.92k | ++counter; | 240 | 7.92k | } | 241 | 3.30k | } | 242 | | | 243 | 3.30k | return counter; | 244 | 3.30k | } |
Unexecuted instantiation: std::__1::enable_if<(bidirectional_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> > >)&&(!(sized_sentinel_for<scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > > >::sentinel<true>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> > >)), scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> > >::difference_type>::type scn::v3::ranges::detail::advance_::fn::impl_i_n_s<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > > >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> >&, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> > >::difference_type, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > > >::sentinel<true>) Unexecuted instantiation: std::__1::enable_if<(bidirectional_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> >)&&(!(sized_sentinel_for<scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> >)), scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> >::difference_type>::type scn::v3::ranges::detail::advance_::fn::impl_i_n_s<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>&, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> >::difference_type, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true>) Unexecuted instantiation: std::__1::enable_if<(bidirectional_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> >)&&(!(sized_sentinel_for<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> >)), scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> >::difference_type>::type scn::v3::ranges::detail::advance_::fn::impl_i_n_s<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>&, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> >::difference_type, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true>) std::__1::enable_if<(bidirectional_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> > >)&&(!(sized_sentinel_for<scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> > >::sentinel<true>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> > >)), scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> > >::difference_type>::type scn::v3::ranges::detail::advance_::fn::impl_i_n_s<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> > >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> >&, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> > >::difference_type, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> > >::sentinel<true>) Line | Count | Source | 226 | 566 | { | 227 | 566 | constexpr iter_difference_t<I> zero{0}; | 228 | 566 | iter_difference_t<I> counter{0}; | 229 | | | 230 | 566 | if (n < zero) { | 231 | 0 | do { | 232 | 0 | --i; | 233 | 0 | --counter; // Yes, really | 234 | 0 | } while (++n < zero && i != bound); | 235 | 0 | } | 236 | 566 | else { | 237 | 2.17k | while (n-- > zero && i != bound) { | 238 | 1.61k | ++i; | 239 | 1.61k | ++counter; | 240 | 1.61k | } | 241 | 566 | } | 242 | | | 243 | 566 | return counter; | 244 | 566 | } |
Unexecuted instantiation: std::__1::enable_if<(bidirectional_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> > >)&&(!(sized_sentinel_for<scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> > >::sentinel<true>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> > >)), scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> > >::difference_type>::type scn::v3::ranges::detail::advance_::fn::impl_i_n_s<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> > >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> >&, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> > >::difference_type, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> > >::sentinel<true>) |
245 | | |
246 | | template <typename I, typename S> |
247 | | static constexpr auto impl_i_n_s(I& i, iter_difference_t<I> n, S bound) |
248 | | -> std::enable_if_t<!bidirectional_iterator<I> && |
249 | | !sized_sentinel_for<S, I>, |
250 | | iter_difference_t<I>> |
251 | 0 | { |
252 | 0 | constexpr iter_difference_t<I> zero{0}; |
253 | 0 | iter_difference_t<I> counter{0}; |
254 | |
|
255 | 0 | while (n-- > zero && i != bound) { |
256 | 0 | ++i; |
257 | 0 | ++counter; |
258 | 0 | } |
259 | |
|
260 | 0 | return counter; |
261 | 0 | } Unexecuted instantiation: std::__1::enable_if<(!(bidirectional_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > >))&&(!(sized_sentinel_for<scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >::sentinel<true>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > >)), scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > >::difference_type>::type scn::v3::ranges::detail::advance_::fn::impl_i_n_s<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >&, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > >::difference_type, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >::sentinel<true>) Unexecuted instantiation: std::__1::enable_if<(!(bidirectional_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >))&&(!(sized_sentinel_for<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >)), scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::difference_type>::type scn::v3::ranges::detail::advance_::fn::impl_i_n_s<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>&, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::difference_type, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true>) Unexecuted instantiation: std::__1::enable_if<(!(bidirectional_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator>))&&(!(sized_sentinel_for<scn::v3::ranges::default_sentinel_t, scn::v3::detail::basic_scan_buffer<char>::forward_iterator>)), scn::v3::ranges::incrementable_traits<scn::v3::detail::basic_scan_buffer<char>::forward_iterator>::difference_type>::type scn::v3::ranges::detail::advance_::fn::impl_i_n_s<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>(scn::v3::detail::basic_scan_buffer<char>::forward_iterator&, scn::v3::ranges::incrementable_traits<scn::v3::detail::basic_scan_buffer<char>::forward_iterator>::difference_type, scn::v3::ranges::default_sentinel_t) Unexecuted instantiation: std::__1::enable_if<(!(bidirectional_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > >))&&(!(sized_sentinel_for<scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >::sentinel<true>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > >)), scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > >::difference_type>::type scn::v3::ranges::detail::advance_::fn::impl_i_n_s<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >&, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > >::difference_type, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >::sentinel<true>) Unexecuted instantiation: std::__1::enable_if<(!(bidirectional_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >))&&(!(sized_sentinel_for<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >)), scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::difference_type>::type scn::v3::ranges::detail::advance_::fn::impl_i_n_s<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>&, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::difference_type, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true>) Unexecuted instantiation: std::__1::enable_if<(!(bidirectional_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator>))&&(!(sized_sentinel_for<scn::v3::ranges::default_sentinel_t, scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator>)), scn::v3::ranges::incrementable_traits<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator>::difference_type>::type scn::v3::ranges::detail::advance_::fn::impl_i_n_s<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>(scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator&, scn::v3::ranges::incrementable_traits<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator>::difference_type, scn::v3::ranges::default_sentinel_t) |
262 | | |
263 | | public: |
264 | | template <typename I> |
265 | | constexpr auto operator()(I& i, iter_difference_t<I> n) const |
266 | | -> std::enable_if_t<input_or_output_iterator<I>> |
267 | 108k | { |
268 | 108k | fn::impl_i_n(i, n, detail::priority_tag<1>{}); |
269 | 108k | } std::__1::enable_if<input_or_output_iterator<char const*>, void>::type scn::v3::ranges::detail::advance_::fn::operator()<char const*>(char const*&, scn::v3::ranges::incrementable_traits<char const*>::difference_type) const Line | Count | Source | 267 | 42.3k | { | 268 | 42.3k | fn::impl_i_n(i, n, detail::priority_tag<1>{}); | 269 | 42.3k | } |
std::__1::enable_if<input_or_output_iterator<wchar_t const*>, void>::type scn::v3::ranges::detail::advance_::fn::operator()<wchar_t const*>(wchar_t const*&, scn::v3::ranges::incrementable_traits<wchar_t const*>::difference_type) const Line | Count | Source | 267 | 62.8k | { | 268 | 62.8k | fn::impl_i_n(i, n, detail::priority_tag<1>{}); | 269 | 62.8k | } |
Unexecuted instantiation: std::__1::enable_if<input_or_output_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >, void>::type scn::v3::ranges::detail::advance_::fn::operator()<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>&, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::difference_type) const Unexecuted instantiation: std::__1::enable_if<input_or_output_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > >, void>::type scn::v3::ranges::detail::advance_::fn::operator()<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >&, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > >::difference_type) const std::__1::enable_if<input_or_output_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> >, void>::type scn::v3::ranges::detail::advance_::fn::operator()<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>&, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> >::difference_type) const Line | Count | Source | 267 | 1.19k | { | 268 | 1.19k | fn::impl_i_n(i, n, detail::priority_tag<1>{}); | 269 | 1.19k | } |
Unexecuted instantiation: std::__1::enable_if<input_or_output_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> > >, void>::type scn::v3::ranges::detail::advance_::fn::operator()<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> > >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> >&, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> > >::difference_type) const Unexecuted instantiation: std::__1::enable_if<input_or_output_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator>, void>::type scn::v3::ranges::detail::advance_::fn::operator()<scn::v3::detail::basic_scan_buffer<char>::forward_iterator>(scn::v3::detail::basic_scan_buffer<char>::forward_iterator&, scn::v3::ranges::incrementable_traits<scn::v3::detail::basic_scan_buffer<char>::forward_iterator>::difference_type) const Unexecuted instantiation: std::__1::enable_if<input_or_output_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >, void>::type scn::v3::ranges::detail::advance_::fn::operator()<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>&, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::difference_type) const Unexecuted instantiation: std::__1::enable_if<input_or_output_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > >, void>::type scn::v3::ranges::detail::advance_::fn::operator()<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >&, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > >::difference_type) const Unexecuted instantiation: std::__1::enable_if<input_or_output_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> >, void>::type scn::v3::ranges::detail::advance_::fn::operator()<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>&, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> >::difference_type) const Unexecuted instantiation: std::__1::enable_if<input_or_output_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> > >, void>::type scn::v3::ranges::detail::advance_::fn::operator()<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> > >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> >&, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> > >::difference_type) const Unexecuted instantiation: std::__1::enable_if<input_or_output_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator>, void>::type scn::v3::ranges::detail::advance_::fn::operator()<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator>(scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator&, scn::v3::ranges::incrementable_traits<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator>::difference_type) const std::__1::enable_if<input_or_output_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> > >, void>::type scn::v3::ranges::detail::advance_::fn::operator()<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> > >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> >&, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> > >::difference_type) const Line | Count | Source | 267 | 1.87k | { | 268 | 1.87k | fn::impl_i_n(i, n, detail::priority_tag<1>{}); | 269 | 1.87k | } |
Unexecuted instantiation: std::__1::enable_if<input_or_output_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> > >, void>::type scn::v3::ranges::detail::advance_::fn::operator()<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> > >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> >&, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> > >::difference_type) const |
270 | | |
271 | | template <typename I, typename S> |
272 | | constexpr auto operator()(I& i, S bound) const |
273 | | -> std::enable_if_t<input_or_output_iterator<I> && sentinel_for<S, I>> |
274 | 11.3k | { |
275 | 11.3k | fn::impl_i_s(i, bound, priority_tag<2>{}); |
276 | 11.3k | } std::__1::enable_if<(input_or_output_iterator<char const*>)&&(sentinel_for<char const*, char const*>), void>::type scn::v3::ranges::detail::advance_::fn::operator()<char const*, char const*>(char const*&, char const*) const Line | Count | Source | 274 | 856 | { | 275 | 856 | fn::impl_i_s(i, bound, priority_tag<2>{}); | 276 | 856 | } |
Unexecuted instantiation: std::__1::enable_if<(input_or_output_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >)&&(sentinel_for<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >), void>::type scn::v3::ranges::detail::advance_::fn::operator()<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>&, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true>) const std::__1::enable_if<(input_or_output_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> >)&&(sentinel_for<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> >), void>::type scn::v3::ranges::detail::advance_::fn::operator()<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>&, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true>) const Line | Count | Source | 274 | 96 | { | 275 | 96 | fn::impl_i_s(i, bound, priority_tag<2>{}); | 276 | 96 | } |
std::__1::enable_if<(input_or_output_iterator<wchar_t const*>)&&(sentinel_for<wchar_t const*, wchar_t const*>), void>::type scn::v3::ranges::detail::advance_::fn::operator()<wchar_t const*, wchar_t const*>(wchar_t const*&, wchar_t const*) const Line | Count | Source | 274 | 10.3k | { | 275 | 10.3k | fn::impl_i_s(i, bound, priority_tag<2>{}); | 276 | 10.3k | } |
Unexecuted instantiation: std::__1::enable_if<(input_or_output_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >)&&(sentinel_for<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >), void>::type scn::v3::ranges::detail::advance_::fn::operator()<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>&, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true>) const std::__1::enable_if<(input_or_output_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> >)&&(sentinel_for<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> >), void>::type scn::v3::ranges::detail::advance_::fn::operator()<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>&, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true>) const Line | Count | Source | 274 | 54 | { | 275 | 54 | fn::impl_i_s(i, bound, priority_tag<2>{}); | 276 | 54 | } |
|
277 | | |
278 | | template <typename I, typename S> |
279 | | constexpr auto operator()(I& i, iter_difference_t<I> n, S bound) const |
280 | | -> std::enable_if_t<input_or_output_iterator<I> && sentinel_for<S, I>, |
281 | | iter_difference_t<I>> |
282 | 39.8k | { |
283 | 39.8k | return n - fn::impl_i_n_s(i, n, bound); |
284 | 39.8k | } Unexecuted instantiation: std::__1::enable_if<(input_or_output_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > >)&&(sentinel_for<scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >::sentinel<true>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > >), scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > >::difference_type>::type scn::v3::ranges::detail::advance_::fn::operator()<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >&, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > >::difference_type, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >::sentinel<true>) const Unexecuted instantiation: std::__1::enable_if<(input_or_output_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >)&&(sentinel_for<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >), scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::difference_type>::type scn::v3::ranges::detail::advance_::fn::operator()<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>&, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::difference_type, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true>) const Unexecuted instantiation: std::__1::enable_if<(input_or_output_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> > >)&&(sentinel_for<scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > > >::sentinel<true>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> > >), scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> > >::difference_type>::type scn::v3::ranges::detail::advance_::fn::operator()<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > > >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> >&, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> > >::difference_type, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > > >::sentinel<true>) const Unexecuted instantiation: std::__1::enable_if<(input_or_output_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> >)&&(sentinel_for<scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> >), scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> >::difference_type>::type scn::v3::ranges::detail::advance_::fn::operator()<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>&, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> >::difference_type, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true>) const std::__1::enable_if<(input_or_output_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> >)&&(sentinel_for<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> >), scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> >::difference_type>::type scn::v3::ranges::detail::advance_::fn::operator()<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>&, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> >::difference_type, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true>) const Line | Count | Source | 282 | 3.30k | { | 283 | 3.30k | return n - fn::impl_i_n_s(i, n, bound); | 284 | 3.30k | } |
Unexecuted instantiation: std::__1::enable_if<(input_or_output_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator>)&&(sentinel_for<scn::v3::ranges::default_sentinel_t, scn::v3::detail::basic_scan_buffer<char>::forward_iterator>), scn::v3::ranges::incrementable_traits<scn::v3::detail::basic_scan_buffer<char>::forward_iterator>::difference_type>::type scn::v3::ranges::detail::advance_::fn::operator()<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>(scn::v3::detail::basic_scan_buffer<char>::forward_iterator&, scn::v3::ranges::incrementable_traits<scn::v3::detail::basic_scan_buffer<char>::forward_iterator>::difference_type, scn::v3::ranges::default_sentinel_t) const std::__1::enable_if<(input_or_output_iterator<char const*>)&&(sentinel_for<char const*, char const*>), scn::v3::ranges::incrementable_traits<char const*>::difference_type>::type scn::v3::ranges::detail::advance_::fn::operator()<char const*, char const*>(char const*&, scn::v3::ranges::incrementable_traits<char const*>::difference_type, char const*) const Line | Count | Source | 282 | 35.9k | { | 283 | 35.9k | return n - fn::impl_i_n_s(i, n, bound); | 284 | 35.9k | } |
Unexecuted instantiation: std::__1::enable_if<(input_or_output_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > >)&&(sentinel_for<scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >::sentinel<true>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > >), scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > >::difference_type>::type scn::v3::ranges::detail::advance_::fn::operator()<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >&, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > >::difference_type, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >::sentinel<true>) const Unexecuted instantiation: std::__1::enable_if<(input_or_output_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >)&&(sentinel_for<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >), scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::difference_type>::type scn::v3::ranges::detail::advance_::fn::operator()<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>&, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::difference_type, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true>) const Unexecuted instantiation: std::__1::enable_if<(input_or_output_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> > >)&&(sentinel_for<scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > > >::sentinel<true>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> > >), scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> > >::difference_type>::type scn::v3::ranges::detail::advance_::fn::operator()<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > > >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> >&, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> > >::difference_type, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > > >::sentinel<true>) const Unexecuted instantiation: std::__1::enable_if<(input_or_output_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> >)&&(sentinel_for<scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> >), scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> >::difference_type>::type scn::v3::ranges::detail::advance_::fn::operator()<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>&, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> >::difference_type, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true>) const Unexecuted instantiation: std::__1::enable_if<(input_or_output_iterator<wchar_t const*>)&&(sentinel_for<wchar_t const*, wchar_t const*>), scn::v3::ranges::incrementable_traits<wchar_t const*>::difference_type>::type scn::v3::ranges::detail::advance_::fn::operator()<wchar_t const*, wchar_t const*>(wchar_t const*&, scn::v3::ranges::incrementable_traits<wchar_t const*>::difference_type, wchar_t const*) const Unexecuted instantiation: std::__1::enable_if<(input_or_output_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> >)&&(sentinel_for<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> >), scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> >::difference_type>::type scn::v3::ranges::detail::advance_::fn::operator()<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>&, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> >::difference_type, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true>) const Unexecuted instantiation: std::__1::enable_if<(input_or_output_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator>)&&(sentinel_for<scn::v3::ranges::default_sentinel_t, scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator>), scn::v3::ranges::incrementable_traits<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator>::difference_type>::type scn::v3::ranges::detail::advance_::fn::operator()<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>(scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator&, scn::v3::ranges::incrementable_traits<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator>::difference_type, scn::v3::ranges::default_sentinel_t) const std::__1::enable_if<(input_or_output_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> > >)&&(sentinel_for<scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> > >::sentinel<true>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> > >), scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> > >::difference_type>::type scn::v3::ranges::detail::advance_::fn::operator()<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> > >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> >&, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> > >::difference_type, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> > >::sentinel<true>) const Line | Count | Source | 282 | 566 | { | 283 | 566 | return n - fn::impl_i_n_s(i, n, bound); | 284 | 566 | } |
Unexecuted instantiation: std::__1::enable_if<(input_or_output_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> > >)&&(sentinel_for<scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> > >::sentinel<true>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> > >), scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> > >::difference_type>::type scn::v3::ranges::detail::advance_::fn::operator()<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> > >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> >&, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> > >::difference_type, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> > >::sentinel<true>) const |
285 | | }; |
286 | | } // namespace detail::advance_ |
287 | | |
288 | | inline constexpr auto advance = detail::advance_::fn{}; |
289 | | |
290 | | namespace next_impl { |
291 | | struct fn { |
292 | | template <typename I> |
293 | | constexpr auto operator()(I x) const |
294 | | -> std::enable_if_t<input_or_output_iterator<I>, I> |
295 | 351M | { |
296 | 351M | ++x; |
297 | 351M | return x; |
298 | 351M | } Unexecuted instantiation: std::__1::enable_if<input_or_output_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::type scn::v3::ranges::next_impl::fn::operator()<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>) const Unexecuted instantiation: std::__1::enable_if<input_or_output_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator>, scn::v3::detail::basic_scan_buffer<char>::forward_iterator>::type scn::v3::ranges::next_impl::fn::operator()<scn::v3::detail::basic_scan_buffer<char>::forward_iterator>(scn::v3::detail::basic_scan_buffer<char>::forward_iterator) const std::__1::enable_if<input_or_output_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> >, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> >::type scn::v3::ranges::next_impl::fn::operator()<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>) const Line | Count | Source | 295 | 1.91k | { | 296 | 1.91k | ++x; | 297 | 1.91k | return x; | 298 | 1.91k | } |
std::__1::enable_if<input_or_output_iterator<char const*>, char const*>::type scn::v3::ranges::next_impl::fn::operator()<char const*>(char const*) const Line | Count | Source | 295 | 43.2k | { | 296 | 43.2k | ++x; | 297 | 43.2k | return x; | 298 | 43.2k | } |
Unexecuted instantiation: std::__1::enable_if<input_or_output_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::type scn::v3::ranges::next_impl::fn::operator()<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>) const Unexecuted instantiation: std::__1::enable_if<input_or_output_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator>, scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator>::type scn::v3::ranges::next_impl::fn::operator()<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator>(scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator) const std::__1::enable_if<input_or_output_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> >, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> >::type scn::v3::ranges::next_impl::fn::operator()<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>) const Line | Count | Source | 295 | 904 | { | 296 | 904 | ++x; | 297 | 904 | return x; | 298 | 904 | } |
std::__1::enable_if<input_or_output_iterator<wchar_t const*>, wchar_t const*>::type scn::v3::ranges::next_impl::fn::operator()<wchar_t const*>(wchar_t const*) const Line | Count | Source | 295 | 351M | { | 296 | 351M | ++x; | 297 | 351M | return x; | 298 | 351M | } |
|
299 | | |
300 | | template <typename I> |
301 | | constexpr auto operator()(I x, iter_difference_t<I> n) const |
302 | | -> std::enable_if_t<input_or_output_iterator<I>, I> |
303 | 105k | { |
304 | 105k | ranges::advance(x, n); |
305 | 105k | return x; |
306 | 105k | } std::__1::enable_if<input_or_output_iterator<char const*>, char const*>::type scn::v3::ranges::next_impl::fn::operator()<char const*>(char const*, scn::v3::ranges::incrementable_traits<char const*>::difference_type) const Line | Count | Source | 303 | 42.3k | { | 304 | 42.3k | ranges::advance(x, n); | 305 | 42.3k | return x; | 306 | 42.3k | } |
std::__1::enable_if<input_or_output_iterator<wchar_t const*>, wchar_t const*>::type scn::v3::ranges::next_impl::fn::operator()<wchar_t const*>(wchar_t const*, scn::v3::ranges::incrementable_traits<wchar_t const*>::difference_type) const Line | Count | Source | 303 | 62.8k | { | 304 | 62.8k | ranges::advance(x, n); | 305 | 62.8k | return x; | 306 | 62.8k | } |
Unexecuted instantiation: std::__1::enable_if<input_or_output_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::type scn::v3::ranges::next_impl::fn::operator()<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::difference_type) const Unexecuted instantiation: std::__1::enable_if<input_or_output_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > >, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > >::type scn::v3::ranges::next_impl::fn::operator()<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > >::difference_type) const Unexecuted instantiation: std::__1::enable_if<input_or_output_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> >, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> >::type scn::v3::ranges::next_impl::fn::operator()<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> >::difference_type) const Unexecuted instantiation: std::__1::enable_if<input_or_output_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> > >, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> > >::type scn::v3::ranges::next_impl::fn::operator()<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> > >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> >, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> > >::difference_type) const Unexecuted instantiation: std::__1::enable_if<input_or_output_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator>, scn::v3::detail::basic_scan_buffer<char>::forward_iterator>::type scn::v3::ranges::next_impl::fn::operator()<scn::v3::detail::basic_scan_buffer<char>::forward_iterator>(scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::incrementable_traits<scn::v3::detail::basic_scan_buffer<char>::forward_iterator>::difference_type) const Unexecuted instantiation: std::__1::enable_if<input_or_output_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::type scn::v3::ranges::next_impl::fn::operator()<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::difference_type) const Unexecuted instantiation: std::__1::enable_if<input_or_output_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > >, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > >::type scn::v3::ranges::next_impl::fn::operator()<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > >::difference_type) const Unexecuted instantiation: std::__1::enable_if<input_or_output_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> >, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> >::type scn::v3::ranges::next_impl::fn::operator()<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> >::difference_type) const Unexecuted instantiation: std::__1::enable_if<input_or_output_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> > >, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> > >::type scn::v3::ranges::next_impl::fn::operator()<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> > >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> >, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> > >::difference_type) const Unexecuted instantiation: std::__1::enable_if<input_or_output_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator>, scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator>::type scn::v3::ranges::next_impl::fn::operator()<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator>(scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::incrementable_traits<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator>::difference_type) const Unexecuted instantiation: std::__1::enable_if<input_or_output_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> > >, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> > >::type scn::v3::ranges::next_impl::fn::operator()<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> > >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> >, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> > >::difference_type) const Unexecuted instantiation: std::__1::enable_if<input_or_output_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> > >, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> > >::type scn::v3::ranges::next_impl::fn::operator()<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> > >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> >, scn::v3::ranges::incrementable_traits<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> > >::difference_type) const |
307 | | |
308 | | template <typename I, typename S> |
309 | | constexpr auto operator()(I x, S bound) const |
310 | | -> std::enable_if_t<input_or_output_iterator<I> && sentinel_for<S, I>, |
311 | | I> |
312 | 11.3k | { |
313 | 11.3k | ranges::advance(x, bound); |
314 | 11.3k | return x; |
315 | 11.3k | } std::__1::enable_if<(input_or_output_iterator<char const*>)&&(sentinel_for<char const*, char const*>), char const*>::type scn::v3::ranges::next_impl::fn::operator()<char const*, char const*>(char const*, char const*) const Line | Count | Source | 312 | 856 | { | 313 | 856 | ranges::advance(x, bound); | 314 | 856 | return x; | 315 | 856 | } |
Unexecuted instantiation: std::__1::enable_if<(input_or_output_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >)&&(sentinel_for<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >), scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::type scn::v3::ranges::next_impl::fn::operator()<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true>) const std::__1::enable_if<(input_or_output_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> >)&&(sentinel_for<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> >), scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> >::type scn::v3::ranges::next_impl::fn::operator()<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true>) const Line | Count | Source | 312 | 96 | { | 313 | 96 | ranges::advance(x, bound); | 314 | 96 | return x; | 315 | 96 | } |
std::__1::enable_if<(input_or_output_iterator<wchar_t const*>)&&(sentinel_for<wchar_t const*, wchar_t const*>), wchar_t const*>::type scn::v3::ranges::next_impl::fn::operator()<wchar_t const*, wchar_t const*>(wchar_t const*, wchar_t const*) const Line | Count | Source | 312 | 10.3k | { | 313 | 10.3k | ranges::advance(x, bound); | 314 | 10.3k | return x; | 315 | 10.3k | } |
Unexecuted instantiation: std::__1::enable_if<(input_or_output_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >)&&(sentinel_for<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >), scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::type scn::v3::ranges::next_impl::fn::operator()<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true>) const std::__1::enable_if<(input_or_output_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> >)&&(sentinel_for<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> >), scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> >::type scn::v3::ranges::next_impl::fn::operator()<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true>) const Line | Count | Source | 312 | 54 | { | 313 | 54 | ranges::advance(x, bound); | 314 | 54 | return x; | 315 | 54 | } |
|
316 | | |
317 | | template <typename I, typename S> |
318 | | constexpr auto operator()(I x, iter_difference_t<I> n, S bound) const |
319 | | -> std::enable_if_t<input_or_output_iterator<I> && sentinel_for<S, I>, |
320 | | I> |
321 | | { |
322 | | ranges::advance(x, n, bound); |
323 | | return x; |
324 | | } |
325 | | }; |
326 | | } // namespace next_impl |
327 | | |
328 | | inline constexpr next_impl::fn next{}; |
329 | | |
330 | | // prev, for forward_iterators |
331 | | namespace detail::prev_backtrack_ { |
332 | | struct fn { |
333 | | private: |
334 | | template <typename It> |
335 | | static constexpr auto impl(It it, It, priority_tag<2>) |
336 | | -> std::enable_if_t<bidirectional_iterator<It>, It> |
337 | | { |
338 | | --it; |
339 | | return it; |
340 | | } |
341 | | |
342 | | template <typename It> |
343 | | static constexpr auto impl(It it, It beg, priority_tag<1>) |
344 | | -> remove_cvref_t<decltype((void)beg.batch_advance(42), it)> |
345 | | { |
346 | | return beg.batch_advance(it.position() - 1); |
347 | | } |
348 | | |
349 | | template <typename It> |
350 | | static constexpr auto impl(It it, It beg, priority_tag<0>) |
351 | | -> std::enable_if_t<forward_iterator<It>, It> |
352 | | { |
353 | | SCN_EXPECT(it != beg); |
354 | | |
355 | | while (true) { |
356 | | auto tmp = beg; |
357 | | ++beg; |
358 | | if (beg == it) { |
359 | | return tmp; |
360 | | } |
361 | | } |
362 | | } |
363 | | |
364 | | public: |
365 | | template <typename It> |
366 | | constexpr auto operator()(It it, It beg) const |
367 | | -> decltype(fn::impl(it, beg, priority_tag<2>{})) |
368 | | { |
369 | | return fn::impl(it, beg, priority_tag<2>{}); |
370 | | } |
371 | | }; |
372 | | } // namespace detail::prev_backtrack_ |
373 | | |
374 | | inline constexpr auto prev_backtrack = detail::prev_backtrack_::fn{}; |
375 | | |
376 | | // operator<, for forward_iterators |
377 | | namespace detail::less_backtrack_ { |
378 | | struct fn { |
379 | | private: |
380 | | template <typename It> |
381 | | static constexpr auto impl(It lhs, It rhs, It, priority_tag<2>) |
382 | | -> decltype(static_cast<void>(lhs < rhs), true) |
383 | | { |
384 | | return lhs < rhs; |
385 | | } |
386 | | |
387 | | template <typename It> |
388 | | static constexpr auto impl(It lhs, It rhs, It, priority_tag<1>) |
389 | | -> decltype(static_cast<void>(lhs.position() < rhs.position()), true) |
390 | | { |
391 | | return lhs.position() < rhs.position(); |
392 | | } |
393 | | |
394 | | template <typename It> |
395 | | static constexpr auto impl(It lhs, It rhs, It beg, priority_tag<0>) |
396 | | -> std::enable_if_t<ranges::forward_iterator<It>, bool> |
397 | | { |
398 | | while (true) { |
399 | | if (beg == rhs) { |
400 | | return false; |
401 | | } |
402 | | if (beg == lhs) { |
403 | | return true; |
404 | | } |
405 | | ++beg; |
406 | | } |
407 | | } |
408 | | |
409 | | public: |
410 | | template <typename It> |
411 | | constexpr auto operator()(It lhs, It rhs, It beg) const |
412 | | -> decltype(fn::impl(lhs, rhs, beg, priority_tag<2>{})) |
413 | | { |
414 | | return fn::impl(lhs, rhs, beg, priority_tag<2>{}); |
415 | | } |
416 | | }; |
417 | | } // namespace detail::less_backtrack_ |
418 | | |
419 | | inline constexpr auto less_backtrack = detail::less_backtrack_::fn{}; |
420 | | |
421 | | } // namespace ranges |
422 | | |
423 | | ///////////////////////////////////////////////////////////////// |
424 | | // ASCII-only locale-free <cctype> |
425 | | ///////////////////////////////////////////////////////////////// |
426 | | |
427 | | namespace impl { |
428 | | inline constexpr std::array<bool, 256> is_ascii_space_lookup = { |
429 | | {false, false, false, false, false, false, false, false, false, true, |
430 | | true, true, true, true, false, false, false, false, false, false, |
431 | | false, false, false, false, false, false, false, false, false, false, |
432 | | false, false, true, false, false, false, false, false, false, false, |
433 | | false, false, false, false, false, false, false, false, false, false, |
434 | | false, false, false, false, false, false, false, false, false, false, |
435 | | false, false, false, false, false, false, false, false, false, false, |
436 | | false, false, false, false, false, false, false, false, false, false, |
437 | | false, false, false, false, false, false, false, false, false, false, |
438 | | false, false, false, false, false, false, false, false, false, false, |
439 | | false, false, false, false, false, false, false, false, false, false, |
440 | | false, false, false, false, false, false, false, false, false, false, |
441 | | false, false, false, false, false, false, false, false, false, false, |
442 | | false, false, false, false, false, false, false, false, false, false, |
443 | | false, false, false, false, false, false, false, false, false, false, |
444 | | false, false, false, false, false, false, false, false, false, false, |
445 | | false, false, false, false, false, false, false, false, false, false, |
446 | | false, false, false, false, false, false, false, false, false, false, |
447 | | false, false, false, false, false, false, false, false, false, false, |
448 | | false, false, false, false, false, false, false, false, false, false, |
449 | | false, false, false, false, false, false, false, false, false, false, |
450 | | false, false, false, false, false, false, false, false, false, false, |
451 | | false, false, false, false, false, false, false, false, false, false, |
452 | | false, false, false, false, false, false, false, false, false, false, |
453 | | false, false, false, false, false, false, false, false, false, false, |
454 | | false, false, false, false, false, false}}; |
455 | | |
456 | | constexpr bool is_ascii_space(char ch) noexcept |
457 | 36.9k | { |
458 | 36.9k | return is_ascii_space_lookup[static_cast<size_t>( |
459 | 36.9k | static_cast<unsigned char>(ch))]; |
460 | 36.9k | } |
461 | | |
462 | | constexpr bool is_ascii_space(wchar_t ch) noexcept |
463 | 0 | { |
464 | 0 | return ch == 0x20 || (ch >= 0x09 && ch <= 0x0d); |
465 | 0 | } |
466 | | |
467 | | constexpr bool is_ascii_char(char ch) noexcept |
468 | 286k | { |
469 | 286k | return static_cast<unsigned char>(ch) <= 127; |
470 | 286k | } |
471 | | |
472 | | constexpr bool is_ascii_char(wchar_t ch) noexcept |
473 | 1.18k | { |
474 | 1.18k | #if WCHAR_MIN < 0 |
475 | 1.18k | return ch >= 0 && ch <= 127; |
476 | | #else |
477 | | return ch <= 127; |
478 | | #endif |
479 | 1.18k | } |
480 | | |
481 | | constexpr bool is_ascii_char(char32_t cp) noexcept |
482 | 306k | { |
483 | 306k | return cp <= 127; |
484 | 306k | } |
485 | | |
486 | | ///////////////////////////////////////////////////////////////// |
487 | | // <bits> |
488 | | ///////////////////////////////////////////////////////////////// |
489 | | |
490 | | inline int count_trailing_zeroes(uint64_t val) |
491 | 0 | { |
492 | 0 | SCN_EXPECT(val != 0); |
493 | 0 | #if SCN_HAS_BITOPS |
494 | 0 | return std::countr_zero(val); |
495 | 0 | #elif SCN_GCC_COMPAT |
496 | 0 | return __builtin_ctzll(val); |
497 | 0 | #elif SCN_MSVC && SCN_WINDOWS_64BIT |
498 | 0 | DWORD ret{}; |
499 | 0 | _BitScanForward64(&ret, val); |
500 | 0 | return static_cast<int>(ret); |
501 | 0 | #elif SCN_MSVC && !SCN_WINDOWS_64BIT |
502 | 0 | DWORD ret{}; |
503 | 0 | if (_BitScanForward(&ret, static_cast<uint32_t>(val))) { |
504 | 0 | return static_cast<int>(ret); |
505 | 0 | } |
506 | 0 |
|
507 | 0 | _BitScanForward(&ret, static_cast<uint32_t>(val >> 32)); |
508 | 0 | return static_cast<int>(ret + 32); |
509 | 0 | #elif SCN_POSIX |
510 | 0 | return ::ctzll(val); |
511 | 0 | #else |
512 | 0 | #define SCN_HAS_BITS_CTZ 0 |
513 | 0 | SCN_EXPECT(false); |
514 | 0 | SCN_UNREACHABLE; |
515 | 0 | #endif |
516 | 0 | } |
517 | | |
518 | | #ifndef SCN_HAS_BITS_CTZ |
519 | | #define SCN_HAS_BITS_CTZ 1 |
520 | | #endif |
521 | | |
522 | | constexpr uint64_t has_zero_byte(uint64_t word) |
523 | 0 | { |
524 | 0 | return (word - 0x0101010101010101ull) & ~word & 0x8080808080808080ull; |
525 | 0 | } |
526 | | |
527 | | constexpr uint64_t has_byte_between(uint64_t word, uint8_t a, uint8_t b) |
528 | 0 | { |
529 | 0 | const auto m = static_cast<uint64_t>(a) - 1, |
530 | 0 | n = static_cast<uint64_t>(b) + 1; |
531 | 0 | return (((~0ull / 255 * (127 + (n)) - ((word) & ~0ull / 255 * 127)) & |
532 | 0 | ~(word) & |
533 | 0 | (((word) & ~0ull / 255 * 127) + ~0ull / 255 * (127 - (m)))) & |
534 | 0 | (~0ull / 255 * 128)); |
535 | 0 | } |
536 | | |
537 | | constexpr uint64_t has_byte_greater(uint64_t word, uint8_t n) |
538 | 27.7k | { |
539 | 27.7k | return (word + ~0ull / 255 * (127 - n) | word) & ~0ull / 255 * 128; |
540 | 27.7k | } |
541 | | |
542 | | inline size_t get_index_of_first_nonmatching_byte(uint64_t word) |
543 | 0 | { |
544 | 0 | word ^= 0x8080808080808080ull; |
545 | 0 | if (word == 0) { |
546 | 0 | return 8; |
547 | 0 | } |
548 | 0 | return static_cast<size_t>(count_trailing_zeroes(word)) / 8; |
549 | 0 | } |
550 | | |
551 | | inline size_t get_index_of_first_matching_byte(uint64_t word, uint64_t pattern) |
552 | 0 | { |
553 | 0 | constexpr auto mask = 0x7f7f7f7f7f7f7f7full; |
554 | 0 | auto input = word ^ pattern; |
555 | 0 | auto tmp = (input & mask) + mask; |
556 | 0 | tmp = ~(tmp | input | mask); |
557 | 0 | return static_cast<size_t>(count_trailing_zeroes(tmp)) / 8; |
558 | 0 | } |
559 | | |
560 | | constexpr uint32_t log2_fast(uint32_t val) |
561 | 0 | { |
562 | 0 | constexpr uint8_t lookup[] = {0, 9, 1, 10, 13, 21, 2, 29, 11, 14, 16, |
563 | 0 | 18, 22, 25, 3, 30, 8, 12, 20, 28, 15, 17, |
564 | 0 | 24, 7, 19, 27, 23, 6, 26, 5, 4, 31}; |
565 | 0 |
|
566 | 0 | val |= val >> 1; |
567 | 0 | val |= val >> 2; |
568 | 0 | val |= val >> 4; |
569 | 0 | val |= val >> 8; |
570 | 0 | val |= val >> 16; |
571 | 0 |
|
572 | 0 | return static_cast<uint32_t>(lookup[(val * 0x07c4acddu) >> 27]); |
573 | 0 | } |
574 | | |
575 | | constexpr uint32_t log2_pow2_fast(uint32_t val) |
576 | 0 | { |
577 | 0 | constexpr uint8_t lookup[] = {0, 1, 28, 2, 29, 14, 24, 3, 30, 22, 20, |
578 | 0 | 15, 25, 17, 4, 8, 31, 27, 13, 23, 21, 19, |
579 | 0 | 16, 7, 26, 12, 18, 6, 11, 5, 10, 9}; |
580 | 0 |
|
581 | 0 | return static_cast<uint32_t>(lookup[(val * 0x077cb531u) >> 27]); |
582 | 0 | } |
583 | | |
584 | | constexpr uint64_t byteswap(uint64_t val) |
585 | 0 | { |
586 | 0 | return (val & 0xFF00000000000000) >> 56 | (val & 0x00FF000000000000) >> 40 | |
587 | 0 | (val & 0x0000FF0000000000) >> 24 | (val & 0x000000FF00000000) >> 8 | |
588 | 0 | (val & 0x00000000FF000000) << 8 | (val & 0x0000000000FF0000) << 24 | |
589 | 0 | (val & 0x000000000000FF00) << 40 | (val & 0x00000000000000FF) << 56; |
590 | 0 | } |
591 | | |
592 | | ///////////////////////////////////////////////////////////////// |
593 | | // <function_ref> |
594 | | ///////////////////////////////////////////////////////////////// |
595 | | |
596 | | namespace fnref_detail { |
597 | | template <class T> |
598 | | inline constexpr auto select_param_type = [] { |
599 | | if constexpr (std::is_trivially_copyable_v<T>) { |
600 | | return detail::type_identity<T>(); |
601 | | } |
602 | | else { |
603 | | return std::add_rvalue_reference<T>(); |
604 | | } |
605 | | }; |
606 | | |
607 | | template <class T> |
608 | | using param_t = |
609 | | typename std::invoke_result_t<decltype(select_param_type<T>)>::type; |
610 | | |
611 | | template <typename Sig> |
612 | | struct qual_fn_sig; |
613 | | |
614 | | template <typename R, typename... Args> |
615 | | struct qual_fn_sig<R(Args...)> { |
616 | | using function = R(Args...); |
617 | | |
618 | | static constexpr bool is_noexcept = false; |
619 | | |
620 | | template <typename... T> |
621 | | static constexpr bool is_invocable_using = |
622 | | std::is_invocable_r_v<R, T..., Args...>; |
623 | | |
624 | | template <typename T> |
625 | | using cv = T; |
626 | | }; |
627 | | |
628 | | template <typename R, typename... Args> |
629 | | struct qual_fn_sig<R(Args...) noexcept> { |
630 | | using function = R(Args...); |
631 | | |
632 | | static constexpr bool is_noexcept = true; |
633 | | |
634 | | template <typename... T> |
635 | | static constexpr bool is_invocable_using = |
636 | | std::is_nothrow_invocable_r_v<R, T..., Args...>; |
637 | | |
638 | | template <typename T> |
639 | | using cv = T; |
640 | | }; |
641 | | |
642 | | template <typename R, typename... Args> |
643 | | struct qual_fn_sig<R(Args...) const> : qual_fn_sig<R(Args...)> { |
644 | | template <typename T> |
645 | | using cv = T const; |
646 | | }; |
647 | | |
648 | | template <typename R, typename... Args> |
649 | | struct qual_fn_sig<R(Args...) const noexcept> |
650 | | : qual_fn_sig<R(Args...) noexcept> { |
651 | | template <typename T> |
652 | | using cv = T const; |
653 | | }; |
654 | | |
655 | | struct base { |
656 | | union storage { |
657 | | constexpr storage() = default; |
658 | | |
659 | | template <typename T, std::enable_if_t<std::is_object_v<T>>* = nullptr> |
660 | | constexpr explicit storage(T* p) noexcept : m_p(p) |
661 | 946k | { |
662 | 946k | } scn::v3::impl::fnref_detail::base::storage::storage<std::__1::__not_fn_t<scn::v3::impl::function_ref<bool (char), bool (char)> >, (void*)0>(std::__1::__not_fn_t<scn::v3::impl::function_ref<bool (char), bool (char)> >*) Line | Count | Source | 661 | 3.58k | { | 662 | 3.58k | } |
scn::v3::impl::fnref_detail::base::storage::storage<std::__1::__not_fn_t<scn::v3::impl::function_ref<bool (char32_t), bool (char32_t)> >, (void*)0>(std::__1::__not_fn_t<scn::v3::impl::function_ref<bool (char32_t), bool (char32_t)> >*) Line | Count | Source | 661 | 436k | { | 662 | 436k | } |
Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_24read_while_classic_spaceINS1_15take_width_viewINS7_INS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS8_18default_sentinel_tEEEEEEEEEDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESM_EUlDiE_LPv0EEEPSM_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_24read_while_classic_spaceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS8_18default_sentinel_tEEEEEEEDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESL_EUlDiE_LPv0EEEPSL_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_34parse_integer_digits_without_thsepINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS7_18default_sentinel_tEEENS1_15take_width_viewINSA_ISG_SH_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS7_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESS_iEUlcE_LPv0EEEPSS_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_34parse_integer_digits_without_thsepINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS7_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS7_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_iEUlcE_LPv0EEEPSK_ scn::v3::impl::fnref_detail::base::storage::storage<scn::v3::impl::calculate_text_width<char>(std::__1::basic_string_view<char, std::__1::char_traits<char> >)::{lambda(char32_t)#1}, (void*)0>(scn::v3::impl::calculate_text_width<char>(std::__1::basic_string_view<char, std::__1::char_traits<char> >)::{lambda(char32_t)#1}*)Line | Count | Source | 661 | 21.6k | { | 662 | 21.6k | } |
Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_24read_while_classic_spaceINS1_15take_width_viewINS7_INSt3__117basic_string_viewIcNS8_11char_traitsIcEEEEEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS8_9add_constIT_E4typeEEEEESH_EUlDiE_LPv0EEEPSH_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_24read_while_classic_spaceINS1_15take_width_viewINSt3__117basic_string_viewIcNS8_11char_traitsIcEEEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS8_9add_constIT_E4typeEEEEESG_EUlDiE_LPv0EEEPSG_ _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_34parse_integer_digits_without_thsepINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSE_EENS1_15take_width_viewINSA_ISE_SE_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS7_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESP_iEUlcE_LPv0EEEPSP_ Line | Count | Source | 661 | 796 | { | 662 | 796 | } |
_ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_24read_while_classic_spaceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSD_EEEEEEDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESI_EUlDiE_LPv0EEEPSI_ Line | Count | Source | 661 | 460 | { | 662 | 460 | } |
Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_12float_readerIcE8read_nanINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEENS1_15take_width_viewINSC_ISI_SJ_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_EUlcE_LPv0EEEPSU_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_12float_readerIcE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEENS1_15take_width_viewINSC_ISI_SJ_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_bEUlcE_LPv0EEEPSU_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_12float_readerIcE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEENS1_15take_width_viewINSC_ISI_SJ_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_bEUlcE0_LPv0EEEPSU_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_12float_readerIcE13read_exponentINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEENS1_15take_width_viewINSC_ISI_SJ_EEE8sentinelILb1EEEEEEEDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEST_NSR_17basic_string_viewIcNSR_11char_traitsIcEEEEEUlcE_LPv0EEEPST_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_12float_readerIcE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEENS1_15take_width_viewINSC_ISI_SJ_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_bEUlcE_LPv0EEEPSU_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_12float_readerIcE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEENS1_15take_width_viewINSC_ISI_SJ_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_bEUlcE0_LPv0EEEPSU_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENSA_18default_sentinel_tEEEEEfEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_RKNSE_12format_specsERT0_NSE_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E_LPv0EEEPSO_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENSA_18default_sentinel_tEEEEEfEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_RKNSE_12format_specsERT0_NSE_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E0_LPv0EEEPSO_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_12float_readerIcE8read_nanINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_EUlcE_LPv0EEEPSM_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_12float_readerIcE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_bEUlcE_LPv0EEEPSM_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_12float_readerIcE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_bEUlcE0_LPv0EEEPSM_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_12float_readerIcE13read_exponentINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEEEDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESL_NSJ_17basic_string_viewIcNSJ_11char_traitsIcEEEEEUlcE_LPv0EEEPSL_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_12float_readerIcE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_bEUlcE_LPv0EEEPSM_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_12float_readerIcE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_bEUlcE0_LPv0EEEPSM_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIcE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEfEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_RKNSD_12format_specsERT0_NSD_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E_LPv0EEEPSM_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIcE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEfEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_RKNSD_12format_specsERT0_NSD_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E0_LPv0EEEPSM_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_12float_readerIcE8read_nanINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSG_EENS1_15take_width_viewINSC_ISG_SG_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_EUlcE_LPv0EEEPSR_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_12float_readerIcE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSG_EENS1_15take_width_viewINSC_ISG_SG_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_bEUlcE_LPv0EEEPSR_ _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_12float_readerIcE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSG_EENS1_15take_width_viewINSC_ISG_SG_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_bEUlcE0_LPv0EEEPSR_ Line | Count | Source | 661 | 6 | { | 662 | 6 | } |
Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_12float_readerIcE13read_exponentINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSG_EENS1_15take_width_viewINSC_ISG_SG_EEE8sentinelILb1EEEEEEEDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESQ_NSO_17basic_string_viewIcNSO_11char_traitsIcEEEEEUlcE_LPv0EEEPSQ_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_12float_readerIcE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSG_EENS1_15take_width_viewINSC_ISG_SG_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_bEUlcE_LPv0EEEPSR_ _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_12float_readerIcE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSG_EENS1_15take_width_viewINSC_ISG_SG_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_bEUlcE0_LPv0EEEPSR_ Line | Count | Source | 661 | 264 | { | 662 | 264 | } |
Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSF_EEEEfEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNS0_6detail12format_specsERT0_NSR_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E_LPv0EEEPSL_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSF_EEEEfEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNS0_6detail12format_specsERT0_NSR_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E0_LPv0EEEPSL_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_12float_readerIcE8read_nanINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_EUlcE_LPv0EEEPSJ_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_12float_readerIcE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_bEUlcE_LPv0EEEPSJ_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_12float_readerIcE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_bEUlcE0_LPv0EEEPSJ_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_12float_readerIcE13read_exponentINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEEEDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESI_NSG_17basic_string_viewIcNSG_11char_traitsIcEEEEEUlcE_LPv0EEEPSI_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_12float_readerIcE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_bEUlcE_LPv0EEEPSJ_ _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_12float_readerIcE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_bEUlcE0_LPv0EEEPSJ_ Line | Count | Source | 661 | 28 | { | 662 | 28 | } |
Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIcE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEfEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_RKNS0_6detail12format_specsERT0_NSP_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E_LPv0EEEPSJ_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIcE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEfEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_RKNS0_6detail12format_specsERT0_NSP_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E0_LPv0EEEPSJ_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENSA_18default_sentinel_tEEEEEdEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_RKNSE_12format_specsERT0_NSE_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E_LPv0EEEPSO_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENSA_18default_sentinel_tEEEEEdEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_RKNSE_12format_specsERT0_NSE_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E0_LPv0EEEPSO_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIcE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEdEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_RKNSD_12format_specsERT0_NSD_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E_LPv0EEEPSM_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIcE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEdEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_RKNSD_12format_specsERT0_NSD_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E0_LPv0EEEPSM_ _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSF_EEEEdEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNS0_6detail12format_specsERT0_NSR_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E_LPv0EEEPSL_ Line | Count | Source | 661 | 8 | { | 662 | 8 | } |
_ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSF_EEEEdEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNS0_6detail12format_specsERT0_NSR_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E0_LPv0EEEPSL_ Line | Count | Source | 661 | 262 | { | 662 | 262 | } |
_ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIcE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEdEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_RKNS0_6detail12format_specsERT0_NSP_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E_LPv0EEEPSJ_ Line | Count | Source | 661 | 10 | { | 662 | 10 | } |
_ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIcE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEdEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_RKNS0_6detail12format_specsERT0_NSP_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E0_LPv0EEEPSJ_ Line | Count | Source | 661 | 246 | { | 662 | 246 | } |
Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENSA_18default_sentinel_tEEEEEeEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_RKNSE_12format_specsERT0_NSE_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E_LPv0EEEPSO_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENSA_18default_sentinel_tEEEEEeEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_RKNSE_12format_specsERT0_NSE_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E0_LPv0EEEPSO_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIcE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEeEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_RKNSD_12format_specsERT0_NSD_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E_LPv0EEEPSM_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIcE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEeEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_RKNSD_12format_specsERT0_NSD_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E0_LPv0EEEPSM_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSF_EEEEeEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNS0_6detail12format_specsERT0_NSR_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E_LPv0EEEPSL_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSF_EEEEeEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNS0_6detail12format_specsERT0_NSR_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E0_LPv0EEEPSL_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIcE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEeEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_RKNS0_6detail12format_specsERT0_NSP_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E_LPv0EEEPSJ_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIcE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEeEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_RKNS0_6detail12format_specsERT0_NSP_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E0_LPv0EEEPSJ_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_24read_until_classic_spaceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS8_18default_sentinel_tEEEEEEEDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESL_EUlDiE_LPv0EEEPSL_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_23custom_word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENSA_18default_sentinel_tEEEEEcEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_RKNSE_12format_specsERNSM_12basic_stringIT0_NSM_11char_traitsISY_EENSM_9allocatorISY_EEEEEUlcE_LPv0EEEPSO_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_24read_until_classic_spaceINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS7_18default_sentinel_tEEEEEDTclL_ZNS7_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESJ_EUlDiE_LPv0EEEPSJ_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_23custom_word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEcEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_RKNSD_12format_specsERNSK_12basic_stringIT0_NSK_11char_traitsISW_EENSK_9allocatorISW_EEEEEUlcE_LPv0EEEPSM_ _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_24read_until_classic_spaceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSD_EEEEEEDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESI_EUlDiE_LPv0EEEPSI_ Line | Count | Source | 661 | 732 | { | 662 | 732 | } |
_ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_23custom_word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSF_EEEEcEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNS0_6detail12format_specsERNSJ_12basic_stringIT0_NSJ_11char_traitsISW_EENSJ_9allocatorISW_EEEEEUlcE_LPv0EEEPSL_ Line | Count | Source | 661 | 32 | { | 662 | 32 | } |
_ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_23custom_word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEcEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_RKNS0_6detail12format_specsERNSH_12basic_stringIT0_NSH_11char_traitsISU_EENSH_9allocatorISU_EEEEEUlcE_LPv0EEEPSJ_ Line | Count | Source | 661 | 30 | { | 662 | 30 | } |
Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_23custom_word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENSA_18default_sentinel_tEEEEEwEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_RKNSE_12format_specsERNSM_12basic_stringIT0_NSM_11char_traitsISY_EENSM_9allocatorISY_EEEEEUlcE_LPv0EEEPSO_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_23custom_word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEwEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_RKNSD_12format_specsERNSK_12basic_stringIT0_NSK_11char_traitsISW_EENSK_9allocatorISW_EEEEEUlcE_LPv0EEEPSM_ _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_23custom_word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSF_EEEEwEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNS0_6detail12format_specsERNSJ_12basic_stringIT0_NSJ_11char_traitsISW_EENSJ_9allocatorISW_EEEEEUlcE_LPv0EEEPSL_ Line | Count | Source | 661 | 32 | { | 662 | 32 | } |
_ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_23custom_word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEwEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_RKNS0_6detail12format_specsERNSH_12basic_stringIT0_NSH_11char_traitsISU_EENSH_9allocatorISU_EEEEEUlcE_LPv0EEEPSJ_ Line | Count | Source | 661 | 30 | { | 662 | 30 | } |
Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_23custom_word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENSA_18default_sentinel_tEEEEEcEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_RKNSE_12format_specsERNSM_17basic_string_viewIT0_NSM_11char_traitsISY_EEEEEUlcE_LPv0EEEPSO_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_23custom_word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEcEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_RKNSD_12format_specsERNSK_17basic_string_viewIT0_NSK_11char_traitsISW_EEEEEUlcE_LPv0EEEPSM_ _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_23custom_word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSF_EEEEcEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNS0_6detail12format_specsERNSJ_17basic_string_viewIT0_NSJ_11char_traitsISW_EEEEEUlcE_LPv0EEEPSL_ Line | Count | Source | 661 | 32 | { | 662 | 32 | } |
_ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_23custom_word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEcEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_RKNS0_6detail12format_specsERNSH_17basic_string_viewIT0_NSH_11char_traitsISU_EEEEEUlcE_LPv0EEEPSJ_ Line | Count | Source | 661 | 30 | { | 662 | 30 | } |
Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_23custom_word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENSA_18default_sentinel_tEEEEEwEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_RKNSE_12format_specsERNSM_17basic_string_viewIT0_NSM_11char_traitsISY_EEEEEUlcE_LPv0EEEPSO_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_23custom_word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEwEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_RKNSD_12format_specsERNSK_17basic_string_viewIT0_NSK_11char_traitsISW_EEEEEUlcE_LPv0EEEPSM_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_23custom_word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSF_EEEEwEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNS0_6detail12format_specsERNSJ_17basic_string_viewIT0_NSJ_11char_traitsISW_EEEEEUlcE_LPv0EEEPSL_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_23custom_word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEwEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_RKNS0_6detail12format_specsERNSH_17basic_string_viewIT0_NSH_11char_traitsISU_EEEEEUlcE_LPv0EEEPSJ_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_24read_while_classic_spaceINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS7_18default_sentinel_tEEEEEDTclL_ZNS7_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESJ_EUlDiE_LPv0EEEPSJ_ scn::v3::impl::fnref_detail::base::storage::storage<std::__1::__not_fn_t<scn::v3::impl::function_ref<bool (wchar_t), bool (wchar_t)> >, (void*)0>(std::__1::__not_fn_t<scn::v3::impl::function_ref<bool (wchar_t), bool (wchar_t)> >*) Line | Count | Source | 661 | 1.19k | { | 662 | 1.19k | } |
Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_24read_while_classic_spaceINS1_15take_width_viewINS7_INS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS8_18default_sentinel_tEEEEEEEEEDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESM_EUlDiE_LPv0EEEPSM_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_24read_while_classic_spaceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS8_18default_sentinel_tEEEEEEEDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESL_EUlDiE_LPv0EEEPSL_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_34parse_integer_digits_without_thsepINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS7_18default_sentinel_tEEENS1_15take_width_viewINSA_ISG_SH_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS7_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESS_iEUlwE_LPv0EEEPSS_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_34parse_integer_digits_without_thsepINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS7_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS7_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_iEUlwE_LPv0EEEPSK_ scn::v3::impl::fnref_detail::base::storage::storage<scn::v3::impl::calculate_text_width<wchar_t>(std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> >)::{lambda(char32_t)#1}, (void*)0>(scn::v3::impl::calculate_text_width<wchar_t>(std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> >)::{lambda(char32_t)#1}*)Line | Count | Source | 661 | 3.47k | { | 662 | 3.47k | } |
Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_24read_while_classic_spaceINS1_15take_width_viewINS7_INSt3__117basic_string_viewIwNS8_11char_traitsIwEEEEEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS8_9add_constIT_E4typeEEEEESH_EUlDiE_LPv0EEEPSH_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_24read_while_classic_spaceINS1_15take_width_viewINSt3__117basic_string_viewIwNS8_11char_traitsIwEEEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS8_9add_constIT_E4typeEEEEESG_EUlDiE_LPv0EEEPSG_ _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_24read_while_classic_spaceINSt3__117basic_string_viewIwNS7_11char_traitsIwEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS7_9add_constIT_E4typeEEEEESE_EUlDiE_LPv0EEEPSE_ Line | Count | Source | 661 | 174k | { | 662 | 174k | } |
_ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_34parse_integer_digits_without_thsepINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSE_EENS1_15take_width_viewINSA_ISE_SE_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS7_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESP_iEUlwE_LPv0EEEPSP_ Line | Count | Source | 661 | 370 | { | 662 | 370 | } |
_ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_24read_while_classic_spaceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSD_EEEEEEDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESI_EUlDiE_LPv0EEEPSI_ Line | Count | Source | 661 | 86 | { | 662 | 86 | } |
_ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_24read_while_classic_spaceINS0_6ranges6detail9subrange_8subrangeIPKwSC_EEEEDTclL_ZNS7_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESG_EUlDiE_LPv0EEEPSG_ Line | Count | Source | 661 | 256k | { | 662 | 256k | } |
Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_12float_readerIwE8read_nanINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEENS1_15take_width_viewINSC_ISI_SJ_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_EUlwE_LPv0EEEPSU_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_12float_readerIwE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEENS1_15take_width_viewINSC_ISI_SJ_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_bEUlwE_LPv0EEEPSU_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_12float_readerIwE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEENS1_15take_width_viewINSC_ISI_SJ_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_bEUlwE0_LPv0EEEPSU_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_12float_readerIwE13read_exponentINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEENS1_15take_width_viewINSC_ISI_SJ_EEE8sentinelILb1EEEEEEEDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEST_NSR_17basic_string_viewIcNSR_11char_traitsIcEEEEEUlwE_LPv0EEEPST_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_12float_readerIwE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEENS1_15take_width_viewINSC_ISI_SJ_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_bEUlwE_LPv0EEEPSU_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_12float_readerIwE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEENS1_15take_width_viewINSC_ISI_SJ_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_bEUlwE0_LPv0EEEPSU_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENSA_18default_sentinel_tEEEEEfEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_RKNSE_12format_specsERT0_NSE_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E_LPv0EEEPSO_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENSA_18default_sentinel_tEEEEEfEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_RKNSE_12format_specsERT0_NSE_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E0_LPv0EEEPSO_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_12float_readerIwE8read_nanINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_EUlwE_LPv0EEEPSM_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_12float_readerIwE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_bEUlwE_LPv0EEEPSM_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_12float_readerIwE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_bEUlwE0_LPv0EEEPSM_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_12float_readerIwE13read_exponentINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEEEDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESL_NSJ_17basic_string_viewIcNSJ_11char_traitsIcEEEEEUlwE_LPv0EEEPSL_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_12float_readerIwE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_bEUlwE_LPv0EEEPSM_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_12float_readerIwE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_bEUlwE0_LPv0EEEPSM_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIwE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEfEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_RKNSD_12format_specsERT0_NSD_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E_LPv0EEEPSM_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIwE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEfEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_RKNSD_12format_specsERT0_NSD_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E0_LPv0EEEPSM_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_12float_readerIwE8read_nanINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSG_EENS1_15take_width_viewINSC_ISG_SG_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_EUlwE_LPv0EEEPSR_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_12float_readerIwE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSG_EENS1_15take_width_viewINSC_ISG_SG_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_bEUlwE_LPv0EEEPSR_ _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_12float_readerIwE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSG_EENS1_15take_width_viewINSC_ISG_SG_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_bEUlwE0_LPv0EEEPSR_ Line | Count | Source | 661 | 6 | { | 662 | 6 | } |
Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_12float_readerIwE13read_exponentINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSG_EENS1_15take_width_viewINSC_ISG_SG_EEE8sentinelILb1EEEEEEEDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESQ_NSO_17basic_string_viewIcNSO_11char_traitsIcEEEEEUlwE_LPv0EEEPSQ_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_12float_readerIwE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSG_EENS1_15take_width_viewINSC_ISG_SG_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_bEUlwE_LPv0EEEPSR_ _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_12float_readerIwE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSG_EENS1_15take_width_viewINSC_ISG_SG_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_bEUlwE0_LPv0EEEPSR_ Line | Count | Source | 661 | 116 | { | 662 | 116 | } |
Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSF_EEEEfEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNS0_6detail12format_specsERT0_NSR_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E_LPv0EEEPSL_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSF_EEEEfEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNS0_6detail12format_specsERT0_NSR_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E0_LPv0EEEPSL_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_12float_readerIwE8read_nanINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_EUlwE_LPv0EEEPSJ_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_12float_readerIwE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_bEUlwE_LPv0EEEPSJ_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_12float_readerIwE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_bEUlwE0_LPv0EEEPSJ_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_12float_readerIwE13read_exponentINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEEEDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESI_NSG_17basic_string_viewIcNSG_11char_traitsIcEEEEEUlwE_LPv0EEEPSI_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_12float_readerIwE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_bEUlwE_LPv0EEEPSJ_ _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_12float_readerIwE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_bEUlwE0_LPv0EEEPSJ_ Line | Count | Source | 661 | 6 | { | 662 | 6 | } |
Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIwE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEfEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_RKNS0_6detail12format_specsERT0_NSP_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E_LPv0EEEPSJ_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIwE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEfEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_RKNS0_6detail12format_specsERT0_NSP_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E0_LPv0EEEPSJ_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENSA_18default_sentinel_tEEEEEdEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_RKNSE_12format_specsERT0_NSE_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E_LPv0EEEPSO_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENSA_18default_sentinel_tEEEEEdEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_RKNSE_12format_specsERT0_NSE_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E0_LPv0EEEPSO_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIwE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEdEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_RKNSD_12format_specsERT0_NSD_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E_LPv0EEEPSM_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIwE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEdEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_RKNSD_12format_specsERT0_NSD_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E0_LPv0EEEPSM_ _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSF_EEEEdEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNS0_6detail12format_specsERT0_NSR_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E_LPv0EEEPSL_ Line | Count | Source | 661 | 6 | { | 662 | 6 | } |
_ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSF_EEEEdEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNS0_6detail12format_specsERT0_NSR_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E0_LPv0EEEPSL_ Line | Count | Source | 661 | 116 | { | 662 | 116 | } |
_ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIwE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEdEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_RKNS0_6detail12format_specsERT0_NSP_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E_LPv0EEEPSJ_ Line | Count | Source | 661 | 6 | { | 662 | 6 | } |
_ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIwE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEdEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_RKNS0_6detail12format_specsERT0_NSP_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E0_LPv0EEEPSJ_ Line | Count | Source | 661 | 320 | { | 662 | 320 | } |
Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENSA_18default_sentinel_tEEEEEeEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_RKNSE_12format_specsERT0_NSE_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E_LPv0EEEPSO_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENSA_18default_sentinel_tEEEEEeEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_RKNSE_12format_specsERT0_NSE_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E0_LPv0EEEPSO_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIwE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEeEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_RKNSD_12format_specsERT0_NSD_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E_LPv0EEEPSM_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIwE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEeEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_RKNSD_12format_specsERT0_NSD_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E0_LPv0EEEPSM_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSF_EEEEeEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNS0_6detail12format_specsERT0_NSR_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E_LPv0EEEPSL_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSF_EEEEeEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNS0_6detail12format_specsERT0_NSR_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E0_LPv0EEEPSL_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIwE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEeEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_RKNS0_6detail12format_specsERT0_NSP_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E_LPv0EEEPSJ_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIwE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEeEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_RKNS0_6detail12format_specsERT0_NSP_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E0_LPv0EEEPSJ_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_24read_until_classic_spaceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS8_18default_sentinel_tEEEEEEEDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESL_EUlDiE_LPv0EEEPSL_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_23custom_word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENSA_18default_sentinel_tEEEEEcEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_RKNSE_12format_specsERNSM_12basic_stringIT0_NSM_11char_traitsISY_EENSM_9allocatorISY_EEEEEUlwE_LPv0EEEPSO_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_24read_until_classic_spaceINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS7_18default_sentinel_tEEEEEDTclL_ZNS7_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESJ_EUlDiE_LPv0EEEPSJ_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_23custom_word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEcEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_RKNSD_12format_specsERNSK_12basic_stringIT0_NSK_11char_traitsISW_EENSK_9allocatorISW_EEEEEUlwE_LPv0EEEPSM_ _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_24read_until_classic_spaceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSD_EEEEEEDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESI_EUlDiE_LPv0EEEPSI_ Line | Count | Source | 661 | 324 | { | 662 | 324 | } |
_ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_23custom_word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSF_EEEEcEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNS0_6detail12format_specsERNSJ_12basic_stringIT0_NSJ_11char_traitsISW_EENSJ_9allocatorISW_EEEEEUlwE_LPv0EEEPSL_ Line | Count | Source | 661 | 20 | { | 662 | 20 | } |
_ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_24read_until_classic_spaceINS0_6ranges6detail9subrange_8subrangeIPKwSC_EEEEDTclL_ZNS7_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESG_EUlDiE_LPv0EEEPSG_ Line | Count | Source | 661 | 30.9k | { | 662 | 30.9k | } |
_ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_23custom_word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEcEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_RKNS0_6detail12format_specsERNSH_12basic_stringIT0_NSH_11char_traitsISU_EENSH_9allocatorISU_EEEEEUlwE_LPv0EEEPSJ_ Line | Count | Source | 661 | 26 | { | 662 | 26 | } |
Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_23custom_word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENSA_18default_sentinel_tEEEEEwEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_RKNSE_12format_specsERNSM_12basic_stringIT0_NSM_11char_traitsISY_EENSM_9allocatorISY_EEEEEUlwE_LPv0EEEPSO_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_23custom_word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEwEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_RKNSD_12format_specsERNSK_12basic_stringIT0_NSK_11char_traitsISW_EENSK_9allocatorISW_EEEEEUlwE_LPv0EEEPSM_ _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_23custom_word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSF_EEEEwEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNS0_6detail12format_specsERNSJ_12basic_stringIT0_NSJ_11char_traitsISW_EENSJ_9allocatorISW_EEEEEUlwE_LPv0EEEPSL_ Line | Count | Source | 661 | 20 | { | 662 | 20 | } |
_ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_23custom_word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEwEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_RKNS0_6detail12format_specsERNSH_12basic_stringIT0_NSH_11char_traitsISU_EENSH_9allocatorISU_EEEEEUlwE_LPv0EEEPSJ_ Line | Count | Source | 661 | 26 | { | 662 | 26 | } |
Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_23custom_word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENSA_18default_sentinel_tEEEEEcEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_RKNSE_12format_specsERNSM_17basic_string_viewIT0_NSM_11char_traitsISY_EEEEEUlwE_LPv0EEEPSO_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_23custom_word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEcEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_RKNSD_12format_specsERNSK_17basic_string_viewIT0_NSK_11char_traitsISW_EEEEEUlwE_LPv0EEEPSM_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_23custom_word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSF_EEEEcEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNS0_6detail12format_specsERNSJ_17basic_string_viewIT0_NSJ_11char_traitsISW_EEEEEUlwE_LPv0EEEPSL_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_23custom_word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEcEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_RKNS0_6detail12format_specsERNSH_17basic_string_viewIT0_NSH_11char_traitsISU_EEEEEUlwE_LPv0EEEPSJ_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_23custom_word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENSA_18default_sentinel_tEEEEEwEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_RKNSE_12format_specsERNSM_17basic_string_viewIT0_NSM_11char_traitsISY_EEEEEUlwE_LPv0EEEPSO_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_23custom_word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEwEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_RKNSD_12format_specsERNSK_17basic_string_viewIT0_NSK_11char_traitsISW_EEEEEUlwE_LPv0EEEPSM_ _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_23custom_word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSF_EEEEwEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNS0_6detail12format_specsERNSJ_17basic_string_viewIT0_NSJ_11char_traitsISW_EEEEEUlwE_LPv0EEEPSL_ Line | Count | Source | 661 | 20 | { | 662 | 20 | } |
_ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_23custom_word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEwEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_RKNS0_6detail12format_specsERNSH_17basic_string_viewIT0_NSH_11char_traitsISU_EEEEEUlwE_LPv0EEEPSJ_ Line | Count | Source | 661 | 26 | { | 662 | 26 | } |
Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_24read_while_classic_spaceINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS7_18default_sentinel_tEEEEEDTclL_ZNS7_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESJ_EUlDiE_LPv0EEEPSJ_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_24read_until_classic_spaceINSt3__117basic_string_viewIwNS7_11char_traitsIwEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS7_9add_constIT_E4typeEEEEESE_EUlDiE_LPv0EEEPSE_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEfEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_RT0_NS0_6detail10locale_refEEUlRNS1_12float_readerIcEEDpOT_E_LPv0EEEPSJ_ _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEdEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_RT0_NS0_6detail10locale_refEEUlRNS1_12float_readerIcEEDpOT_E_LPv0EEEPSJ_ Line | Count | Source | 661 | 628 | { | 662 | 628 | } |
Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEeEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_RT0_NS0_6detail10locale_refEEUlRNS1_12float_readerIcEEDpOT_E_LPv0EEEPSJ_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEfEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_RT0_NSD_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E_LPv0EEEPSM_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEdEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_RT0_NSD_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E_LPv0EEEPSM_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEeEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_RT0_NSD_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E_LPv0EEEPSM_ _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_24read_while_classic_spaceINS1_15take_width_viewINS7_INS0_6ranges6detail9subrange_8subrangeIPKcSD_EEEEEEEEDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESJ_EUlDiE_LPv0EEEPSJ_ Line | Count | Source | 661 | 1.87k | { | 662 | 1.87k | } |
Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEfEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_RT0_NS0_6detail10locale_refEEUlRNS1_12float_readerIwEEDpOT_E_LPv0EEEPSJ_ _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEdEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_RT0_NS0_6detail10locale_refEEUlRNS1_12float_readerIwEEDpOT_E_LPv0EEEPSJ_ Line | Count | Source | 661 | 10.0k | { | 662 | 10.0k | } |
Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEeEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_RT0_NS0_6detail10locale_refEEUlRNS1_12float_readerIwEEDpOT_E_LPv0EEEPSJ_ _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_24read_while_classic_spaceINS1_15take_width_viewINS7_INS0_6ranges6detail9subrange_8subrangeIPKwSD_EEEEEEEEDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESJ_EUlDiE_LPv0EEEPSJ_ Line | Count | Source | 661 | 794 | { | 662 | 794 | } |
Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEfEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_RT0_NSD_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E_LPv0EEEPSM_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEdEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_RT0_NSD_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E_LPv0EEEPSM_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_21reader_impl_for_floatIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEeEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_RT0_NSD_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E_LPv0EEEPSM_ |
663 | | |
664 | | template <typename T, std::enable_if_t<std::is_object_v<T>>* = nullptr> |
665 | | constexpr explicit storage(const T* p) noexcept : m_cp(p) |
666 | 6.42k | { |
667 | 6.42k | } Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_9skip_fillINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS8_18default_sentinel_tEEEEEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRT_EEEElEEEESM_lRKNSC_9fill_typeEbEUlcE_LPv0EEEPKSM_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_9skip_fillINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS7_18default_sentinel_tEEEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS7_5beginEEclsr3stdE7declvalIRT_EEEElEEEESK_lRKNSB_9fill_typeEbEUlcE_LPv0EEEPKSK_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_9skip_fillINS1_15take_width_viewINSt3__117basic_string_viewIcNS8_11char_traitsIcEEEEEEEENS0_13scan_expectedINS8_4pairIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT_EEEElEEEESH_lRKNS0_6detail9fill_typeEbEUlcE_LPv0EEEPKSH_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_9skip_fillINSt3__117basic_string_viewIcNS7_11char_traitsIcEEEEEENS0_13scan_expectedINS7_4pairIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT_EEEElEEEESF_lRKNS0_6detail9fill_typeEbEUlcE_LPv0EEEPKSF_ _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_9skip_fillINS0_6ranges6detail9subrange_8subrangeIPKcSC_EEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS7_5beginEEclsr3stdE7declvalIRT_EEEElEEEESH_lRKNS0_6detail9fill_typeEbEUlcE_LPv0EEEPKSH_ Line | Count | Source | 666 | 1.67k | { | 667 | 1.67k | } |
Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNKS1_25character_set_reader_implIcE16read_source_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENSA_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_NS7_12specs_helperEEUlDiE_LPv0EEEPKSO_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNKS1_25character_set_reader_implIcE16read_source_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENSA_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_NS7_12specs_helperEEUlcE_LPv0EEEPKSO_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNKS1_25character_set_reader_implIcE16read_source_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_NS7_12specs_helperEEUlDiE_LPv0EEEPKSM_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNKS1_25character_set_reader_implIcE16read_source_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_NS7_12specs_helperEEUlcE_LPv0EEEPKSM_ _ZN3scn2v34impl12fnref_detail4base7storageC2IZNKS1_25character_set_reader_implIcE16read_source_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSF_EEEEEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_NS7_12specs_helperEEUlDiE_LPv0EEEPKSL_ Line | Count | Source | 666 | 336 | { | 667 | 336 | } |
_ZN3scn2v34impl12fnref_detail4base7storageC2IZNKS1_25character_set_reader_implIcE16read_source_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSF_EEEEEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_NS7_12specs_helperEEUlcE_LPv0EEEPKSL_ Line | Count | Source | 666 | 300 | { | 667 | 300 | } |
_ZN3scn2v34impl12fnref_detail4base7storageC2IZNKS1_25character_set_reader_implIcE16read_source_implINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_NS7_12specs_helperEEUlDiE_LPv0EEEPKSJ_ Line | Count | Source | 666 | 2.32k | { | 667 | 2.32k | } |
_ZN3scn2v34impl12fnref_detail4base7storageC2IZNKS1_25character_set_reader_implIcE16read_source_implINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_NS7_12specs_helperEEUlcE_LPv0EEEPKSJ_ Line | Count | Source | 666 | 294 | { | 667 | 294 | } |
Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_9skip_fillINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS8_18default_sentinel_tEEEEEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRT_EEEElEEEESM_lRKNSC_9fill_typeEbEUlwE_LPv0EEEPKSM_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_9skip_fillINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS7_18default_sentinel_tEEEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS7_5beginEEclsr3stdE7declvalIRT_EEEElEEEESK_lRKNSB_9fill_typeEbEUlwE_LPv0EEEPKSK_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_9skip_fillINS1_15take_width_viewINSt3__117basic_string_viewIwNS8_11char_traitsIwEEEEEEEENS0_13scan_expectedINS8_4pairIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT_EEEElEEEESH_lRKNS0_6detail9fill_typeEbEUlwE_LPv0EEEPKSH_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_9skip_fillINSt3__117basic_string_viewIwNS7_11char_traitsIwEEEEEENS0_13scan_expectedINS7_4pairIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT_EEEElEEEESF_lRKNS0_6detail9fill_typeEbEUlwE_LPv0EEEPKSF_ _ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_9skip_fillINS0_6ranges6detail9subrange_8subrangeIPKwSC_EEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS7_5beginEEclsr3stdE7declvalIRT_EEEElEEEESH_lRKNS0_6detail9fill_typeEbEUlwE_LPv0EEEPKSH_ Line | Count | Source | 666 | 402 | { | 667 | 402 | } |
Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNKS1_25character_set_reader_implIwE16read_source_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENSA_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_NS7_12specs_helperEEUlDiE_LPv0EEEPKSO_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNKS1_25character_set_reader_implIwE16read_source_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENSA_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_NS7_12specs_helperEEUlwE_LPv0EEEPKSO_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNKS1_25character_set_reader_implIwE16read_source_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_NS7_12specs_helperEEUlDiE_LPv0EEEPKSM_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNKS1_25character_set_reader_implIwE16read_source_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_NS7_12specs_helperEEUlwE_LPv0EEEPKSM_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNKS1_25character_set_reader_implIwE16read_source_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSF_EEEEEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_NS7_12specs_helperEEUlDiE_LPv0EEEPKSL_ Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base7storageC2IZNKS1_25character_set_reader_implIwE16read_source_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSF_EEEEEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_NS7_12specs_helperEEUlwE_LPv0EEEPKSL_ _ZN3scn2v34impl12fnref_detail4base7storageC2IZNKS1_25character_set_reader_implIwE16read_source_implINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_NS7_12specs_helperEEUlDiE_LPv0EEEPKSJ_ Line | Count | Source | 666 | 258 | { | 667 | 258 | } |
_ZN3scn2v34impl12fnref_detail4base7storageC2IZNKS1_25character_set_reader_implIwE16read_source_implINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_NS7_12specs_helperEEUlwE_LPv0EEEPKSJ_ Line | Count | Source | 666 | 84 | { | 667 | 84 | } |
_ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_9skip_fillINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSD_EEEEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRT_EEEElEEEESJ_lRKNS0_6detail9fill_typeEbEUlcE_LPv0EEEPKSJ_ Line | Count | Source | 666 | 504 | { | 667 | 504 | } |
_ZN3scn2v34impl12fnref_detail4base7storageC2IZNS1_9skip_fillINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSD_EEEEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRT_EEEElEEEESJ_lRKNS0_6detail9fill_typeEbEUlwE_LPv0EEEPKSJ_ Line | Count | Source | 666 | 242 | { | 667 | 242 | } |
|
668 | | |
669 | | template <typename F, |
670 | | std::enable_if_t<std::is_function_v<F>>* = nullptr> |
671 | | constexpr explicit storage(F* f) noexcept |
672 | | : m_fp(reinterpret_cast<decltype(m_fp)>(f)) |
673 | | { |
674 | | } |
675 | | |
676 | | void* m_p{nullptr}; |
677 | | const void* m_cp; |
678 | | void (*m_fp)(); |
679 | | }; |
680 | | |
681 | | template <typename T> |
682 | | static constexpr auto get(storage s) |
683 | 1.98M | { |
684 | 1.98M | if constexpr (std::is_const_v<T>) { |
685 | 1.66M | return static_cast<T*>(s.m_cp); |
686 | 1.66M | } |
687 | 1.66M | else if constexpr (std::is_object_v<T>) { |
688 | 1.66M | return static_cast<T*>(s.m_p); |
689 | 1.66M | } |
690 | 1.98M | else { |
691 | 1.98M | return reinterpret_cast<T*>(s.m_fp); |
692 | 1.98M | } |
693 | 1.98M | } auto scn::v3::impl::fnref_detail::base::get<std::__1::__not_fn_t<scn::v3::impl::function_ref<bool (char), bool (char)> > >(scn::v3::impl::fnref_detail::base::storage) Line | Count | Source | 683 | 7.64k | { | 684 | 7.64k | if constexpr (std::is_const_v<T>) { | 685 | 7.64k | return static_cast<T*>(s.m_cp); | 686 | 7.64k | } | 687 | 7.64k | else if constexpr (std::is_object_v<T>) { | 688 | 7.64k | return static_cast<T*>(s.m_p); | 689 | 7.64k | } | 690 | 7.64k | else { | 691 | 7.64k | return reinterpret_cast<T*>(s.m_fp); | 692 | 7.64k | } | 693 | 7.64k | } |
Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIKZNS1_9skip_fillINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS7_18default_sentinel_tEEEEEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS7_5beginEEclsr3stdE7declvalIRT_EEEElEEEESL_lRKNSB_9fill_typeEbEUlcE_EEDaNS3_7storageE auto scn::v3::impl::fnref_detail::base::get<std::__1::__not_fn_t<scn::v3::impl::function_ref<bool (char32_t), bool (char32_t)> > >(scn::v3::impl::fnref_detail::base::storage) Line | Count | Source | 683 | 823k | { | 684 | 823k | if constexpr (std::is_const_v<T>) { | 685 | 823k | return static_cast<T*>(s.m_cp); | 686 | 823k | } | 687 | 823k | else if constexpr (std::is_object_v<T>) { | 688 | 823k | return static_cast<T*>(s.m_p); | 689 | 823k | } | 690 | 823k | else { | 691 | 823k | return reinterpret_cast<T*>(s.m_fp); | 692 | 823k | } | 693 | 823k | } |
Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_24read_while_classic_spaceINS1_15take_width_viewINS6_INS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS7_18default_sentinel_tEEEEEEEEEDTclL_ZNS7_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESL_EUlDiE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_24read_while_classic_spaceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS7_18default_sentinel_tEEEEEEEDTclL_ZNS7_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESK_EUlDiE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIKZNS1_9skip_fillINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRT_EEEElEEEESJ_lRKNSA_9fill_typeEbEUlcE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_34parse_integer_digits_without_thsepINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEENS1_15take_width_viewINS9_ISF_SG_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_iEUlcE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_34parse_integer_digits_without_thsepINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_iEUlcE_EEDaNS3_7storageE auto scn::v3::impl::fnref_detail::base::get<scn::v3::impl::calculate_text_width<char>(std::__1::basic_string_view<char, std::__1::char_traits<char> >)::{lambda(char32_t)#1}>(scn::v3::impl::fnref_detail::base::storage)Line | Count | Source | 683 | 37.3k | { | 684 | 37.3k | if constexpr (std::is_const_v<T>) { | 685 | 37.3k | return static_cast<T*>(s.m_cp); | 686 | 37.3k | } | 687 | 37.3k | else if constexpr (std::is_object_v<T>) { | 688 | 37.3k | return static_cast<T*>(s.m_p); | 689 | 37.3k | } | 690 | 37.3k | else { | 691 | 37.3k | return reinterpret_cast<T*>(s.m_fp); | 692 | 37.3k | } | 693 | 37.3k | } |
Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIKZNS1_9skip_fillINS1_15take_width_viewINSt3__117basic_string_viewIcNS7_11char_traitsIcEEEEEEEENS0_13scan_expectedINS7_4pairIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT_EEEElEEEESG_lRKNS0_6detail9fill_typeEbEUlcE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_24read_while_classic_spaceINS1_15take_width_viewINS6_INSt3__117basic_string_viewIcNS7_11char_traitsIcEEEEEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS7_9add_constIT_E4typeEEEEESG_EUlDiE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_24read_while_classic_spaceINS1_15take_width_viewINSt3__117basic_string_viewIcNS7_11char_traitsIcEEEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS7_9add_constIT_E4typeEEEEESF_EUlDiE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIKZNS1_9skip_fillINSt3__117basic_string_viewIcNS6_11char_traitsIcEEEEEENS0_13scan_expectedINS6_4pairIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT_EEEElEEEESE_lRKNS0_6detail9fill_typeEbEUlcE_EEDaNS3_7storageE _ZN3scn2v34impl12fnref_detail4base3getIZNS1_34parse_integer_digits_without_thsepINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSD_EENS1_15take_width_viewINS9_ISD_SD_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_iEUlcE_EEDaNS3_7storageE Line | Count | Source | 683 | 796 | { | 684 | 796 | if constexpr (std::is_const_v<T>) { | 685 | 796 | return static_cast<T*>(s.m_cp); | 686 | 796 | } | 687 | 796 | else if constexpr (std::is_object_v<T>) { | 688 | 796 | return static_cast<T*>(s.m_p); | 689 | 796 | } | 690 | 796 | else { | 691 | 796 | return reinterpret_cast<T*>(s.m_fp); | 692 | 796 | } | 693 | 796 | } |
_ZN3scn2v34impl12fnref_detail4base3getIKZNS1_9skip_fillINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRT_EEEElEEEESG_lRKNS0_6detail9fill_typeEbEUlcE_EEDaNS3_7storageE Line | Count | Source | 683 | 2.10k | { | 684 | 2.10k | if constexpr (std::is_const_v<T>) { | 685 | 2.10k | return static_cast<T*>(s.m_cp); | 686 | 2.10k | } | 687 | 2.10k | else if constexpr (std::is_object_v<T>) { | 688 | 2.10k | return static_cast<T*>(s.m_p); | 689 | 2.10k | } | 690 | 2.10k | else { | 691 | 2.10k | return reinterpret_cast<T*>(s.m_fp); | 692 | 2.10k | } | 693 | 2.10k | } |
_ZN3scn2v34impl12fnref_detail4base3getIZNS1_24read_while_classic_spaceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSC_EEEEEEDTclL_ZNS7_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESH_EUlDiE_EEDaNS3_7storageE Line | Count | Source | 683 | 1.30k | { | 684 | 1.30k | if constexpr (std::is_const_v<T>) { | 685 | 1.30k | return static_cast<T*>(s.m_cp); | 686 | 1.30k | } | 687 | 1.30k | else if constexpr (std::is_object_v<T>) { | 688 | 1.30k | return static_cast<T*>(s.m_p); | 689 | 1.30k | } | 690 | 1.30k | else { | 691 | 1.30k | return reinterpret_cast<T*>(s.m_fp); | 692 | 1.30k | } | 693 | 1.30k | } |
Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEEEfEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESN_RKNSD_12format_specsERT0_NSD_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_12float_readerIcE8read_nanINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS8_18default_sentinel_tEEENS1_15take_width_viewINSB_ISH_SI_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEEST_EUlcE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_12float_readerIcE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS8_18default_sentinel_tEEENS1_15take_width_viewINSB_ISH_SI_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEEST_bEUlcE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_12float_readerIcE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS8_18default_sentinel_tEEENS1_15take_width_viewINSB_ISH_SI_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEEST_bEUlcE0_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_12float_readerIcE13read_exponentINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS8_18default_sentinel_tEEENS1_15take_width_viewINSB_ISH_SI_EEE8sentinelILb1EEEEEEEDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESS_NSQ_17basic_string_viewIcNSQ_11char_traitsIcEEEEEUlcE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_12float_readerIcE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS8_18default_sentinel_tEEENS1_15take_width_viewINSB_ISH_SI_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEEST_bEUlcE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_12float_readerIcE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS8_18default_sentinel_tEEENS1_15take_width_viewINSB_ISH_SI_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEEST_bEUlcE0_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEEEfEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESN_RKNSD_12format_specsERT0_NSD_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E0_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIcE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS8_18default_sentinel_tEEEfEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNSC_12format_specsERT0_NSC_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_12float_readerIcE8read_nanINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS8_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_EUlcE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_12float_readerIcE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS8_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_bEUlcE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_12float_readerIcE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS8_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_bEUlcE0_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_12float_readerIcE13read_exponentINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS8_18default_sentinel_tEEEEEDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESK_NSI_17basic_string_viewIcNSI_11char_traitsIcEEEEEUlcE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_12float_readerIcE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS8_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_bEUlcE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_12float_readerIcE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS8_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_bEUlcE0_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIcE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS8_18default_sentinel_tEEEfEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNSC_12format_specsERT0_NSC_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E0_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEEEfEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNS0_6detail12format_specsERT0_NSQ_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_12float_readerIcE8read_nanINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSF_EENS1_15take_width_viewINSB_ISF_SF_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESQ_EUlcE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_12float_readerIcE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSF_EENS1_15take_width_viewINSB_ISF_SF_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESQ_bEUlcE_EEDaNS3_7storageE _ZN3scn2v34impl12fnref_detail4base3getIZNS1_12float_readerIcE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSF_EENS1_15take_width_viewINSB_ISF_SF_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESQ_bEUlcE0_EEDaNS3_7storageE Line | Count | Source | 683 | 6 | { | 684 | 6 | if constexpr (std::is_const_v<T>) { | 685 | 6 | return static_cast<T*>(s.m_cp); | 686 | 6 | } | 687 | 6 | else if constexpr (std::is_object_v<T>) { | 688 | 6 | return static_cast<T*>(s.m_p); | 689 | 6 | } | 690 | 6 | else { | 691 | 6 | return reinterpret_cast<T*>(s.m_fp); | 692 | 6 | } | 693 | 6 | } |
Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_12float_readerIcE13read_exponentINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSF_EENS1_15take_width_viewINSB_ISF_SF_EEE8sentinelILb1EEEEEEEDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESP_NSN_17basic_string_viewIcNSN_11char_traitsIcEEEEEUlcE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_12float_readerIcE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSF_EENS1_15take_width_viewINSB_ISF_SF_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESQ_bEUlcE_EEDaNS3_7storageE _ZN3scn2v34impl12fnref_detail4base3getIZNS1_12float_readerIcE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSF_EENS1_15take_width_viewINSB_ISF_SF_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESQ_bEUlcE0_EEDaNS3_7storageE Line | Count | Source | 683 | 264 | { | 684 | 264 | if constexpr (std::is_const_v<T>) { | 685 | 264 | return static_cast<T*>(s.m_cp); | 686 | 264 | } | 687 | 264 | else if constexpr (std::is_object_v<T>) { | 688 | 264 | return static_cast<T*>(s.m_p); | 689 | 264 | } | 690 | 264 | else { | 691 | 264 | return reinterpret_cast<T*>(s.m_fp); | 692 | 264 | } | 693 | 264 | } |
Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEEEfEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNS0_6detail12format_specsERT0_NSQ_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E0_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIcE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKcSD_EEfEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS0_6detail12format_specsERT0_NSO_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_12float_readerIcE8read_nanINS0_6ranges6detail9subrange_8subrangeIPKcSD_EEEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_EUlcE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_12float_readerIcE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeIPKcSD_EEEENS1_14parse_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_bEUlcE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_12float_readerIcE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeIPKcSD_EEEENS1_14parse_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_bEUlcE0_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_12float_readerIcE13read_exponentINS0_6ranges6detail9subrange_8subrangeIPKcSD_EEEEDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESH_NSF_17basic_string_viewIcNSF_11char_traitsIcEEEEEUlcE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_12float_readerIcE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeIPKcSD_EEEENS1_14parse_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_bEUlcE_EEDaNS3_7storageE _ZN3scn2v34impl12fnref_detail4base3getIZNS1_12float_readerIcE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeIPKcSD_EEEENS1_14parse_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_bEUlcE0_EEDaNS3_7storageE Line | Count | Source | 683 | 28 | { | 684 | 28 | if constexpr (std::is_const_v<T>) { | 685 | 28 | return static_cast<T*>(s.m_cp); | 686 | 28 | } | 687 | 28 | else if constexpr (std::is_object_v<T>) { | 688 | 28 | return static_cast<T*>(s.m_p); | 689 | 28 | } | 690 | 28 | else { | 691 | 28 | return reinterpret_cast<T*>(s.m_fp); | 692 | 28 | } | 693 | 28 | } |
Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIcE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKcSD_EEfEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS0_6detail12format_specsERT0_NSO_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E0_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEEEdEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESN_RKNSD_12format_specsERT0_NSD_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEEEdEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESN_RKNSD_12format_specsERT0_NSD_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E0_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIcE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS8_18default_sentinel_tEEEdEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNSC_12format_specsERT0_NSC_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIcE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS8_18default_sentinel_tEEEdEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNSC_12format_specsERT0_NSC_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E0_EEDaNS3_7storageE _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEEEdEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNS0_6detail12format_specsERT0_NSQ_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E_EEDaNS3_7storageE Line | Count | Source | 683 | 8 | { | 684 | 8 | if constexpr (std::is_const_v<T>) { | 685 | 8 | return static_cast<T*>(s.m_cp); | 686 | 8 | } | 687 | 8 | else if constexpr (std::is_object_v<T>) { | 688 | 8 | return static_cast<T*>(s.m_p); | 689 | 8 | } | 690 | 8 | else { | 691 | 8 | return reinterpret_cast<T*>(s.m_fp); | 692 | 8 | } | 693 | 8 | } |
_ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEEEdEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNS0_6detail12format_specsERT0_NSQ_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E0_EEDaNS3_7storageE Line | Count | Source | 683 | 262 | { | 684 | 262 | if constexpr (std::is_const_v<T>) { | 685 | 262 | return static_cast<T*>(s.m_cp); | 686 | 262 | } | 687 | 262 | else if constexpr (std::is_object_v<T>) { | 688 | 262 | return static_cast<T*>(s.m_p); | 689 | 262 | } | 690 | 262 | else { | 691 | 262 | return reinterpret_cast<T*>(s.m_fp); | 692 | 262 | } | 693 | 262 | } |
_ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIcE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKcSD_EEdEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS0_6detail12format_specsERT0_NSO_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E_EEDaNS3_7storageE Line | Count | Source | 683 | 10 | { | 684 | 10 | if constexpr (std::is_const_v<T>) { | 685 | 10 | return static_cast<T*>(s.m_cp); | 686 | 10 | } | 687 | 10 | else if constexpr (std::is_object_v<T>) { | 688 | 10 | return static_cast<T*>(s.m_p); | 689 | 10 | } | 690 | 10 | else { | 691 | 10 | return reinterpret_cast<T*>(s.m_fp); | 692 | 10 | } | 693 | 10 | } |
_ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIcE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKcSD_EEdEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS0_6detail12format_specsERT0_NSO_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E0_EEDaNS3_7storageE Line | Count | Source | 683 | 246 | { | 684 | 246 | if constexpr (std::is_const_v<T>) { | 685 | 246 | return static_cast<T*>(s.m_cp); | 686 | 246 | } | 687 | 246 | else if constexpr (std::is_object_v<T>) { | 688 | 246 | return static_cast<T*>(s.m_p); | 689 | 246 | } | 690 | 246 | else { | 691 | 246 | return reinterpret_cast<T*>(s.m_fp); | 692 | 246 | } | 693 | 246 | } |
Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEEEeEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESN_RKNSD_12format_specsERT0_NSD_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEEEeEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESN_RKNSD_12format_specsERT0_NSD_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E0_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIcE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS8_18default_sentinel_tEEEeEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNSC_12format_specsERT0_NSC_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIcE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS8_18default_sentinel_tEEEeEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNSC_12format_specsERT0_NSC_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E0_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEEEeEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNS0_6detail12format_specsERT0_NSQ_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEEEeEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNS0_6detail12format_specsERT0_NSQ_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E0_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIcE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKcSD_EEeEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS0_6detail12format_specsERT0_NSO_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIcE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKcSD_EEeEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS0_6detail12format_specsERT0_NSO_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E0_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_24read_until_classic_spaceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS7_18default_sentinel_tEEEEEEEDTclL_ZNS7_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESK_EUlDiE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_23custom_word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEEEcEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESN_RKNSD_12format_specsERNSL_12basic_stringIT0_NSL_11char_traitsISX_EENSL_9allocatorISX_EEEEEUlcE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIKZNKS1_25character_set_reader_implIcE16read_source_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESN_NS6_12specs_helperEEUlDiE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIKZNKS1_25character_set_reader_implIcE16read_source_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESN_NS6_12specs_helperEEUlcE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_24read_until_classic_spaceINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESI_EUlDiE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_23custom_word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS8_18default_sentinel_tEEEcEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNSC_12format_specsERNSJ_12basic_stringIT0_NSJ_11char_traitsISV_EENSJ_9allocatorISV_EEEEEUlcE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIKZNKS1_25character_set_reader_implIcE16read_source_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS8_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_NS6_12specs_helperEEUlDiE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIKZNKS1_25character_set_reader_implIcE16read_source_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS8_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_NS6_12specs_helperEEUlcE_EEDaNS3_7storageE _ZN3scn2v34impl12fnref_detail4base3getIZNS1_24read_until_classic_spaceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSC_EEEEEEDTclL_ZNS7_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESH_EUlDiE_EEDaNS3_7storageE Line | Count | Source | 683 | 8.44k | { | 684 | 8.44k | if constexpr (std::is_const_v<T>) { | 685 | 8.44k | return static_cast<T*>(s.m_cp); | 686 | 8.44k | } | 687 | 8.44k | else if constexpr (std::is_object_v<T>) { | 688 | 8.44k | return static_cast<T*>(s.m_p); | 689 | 8.44k | } | 690 | 8.44k | else { | 691 | 8.44k | return reinterpret_cast<T*>(s.m_fp); | 692 | 8.44k | } | 693 | 8.44k | } |
_ZN3scn2v34impl12fnref_detail4base3getIZNS1_23custom_word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEEEcEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNS0_6detail12format_specsERNSI_12basic_stringIT0_NSI_11char_traitsISV_EENSI_9allocatorISV_EEEEEUlcE_EEDaNS3_7storageE Line | Count | Source | 683 | 654 | { | 684 | 654 | if constexpr (std::is_const_v<T>) { | 685 | 654 | return static_cast<T*>(s.m_cp); | 686 | 654 | } | 687 | 654 | else if constexpr (std::is_object_v<T>) { | 688 | 654 | return static_cast<T*>(s.m_p); | 689 | 654 | } | 690 | 654 | else { | 691 | 654 | return reinterpret_cast<T*>(s.m_fp); | 692 | 654 | } | 693 | 654 | } |
_ZN3scn2v34impl12fnref_detail4base3getIKZNKS1_25character_set_reader_implIcE16read_source_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_NS6_12specs_helperEEUlDiE_EEDaNS3_7storageE Line | Count | Source | 683 | 19.4k | { | 684 | 19.4k | if constexpr (std::is_const_v<T>) { | 685 | 19.4k | return static_cast<T*>(s.m_cp); | 686 | 19.4k | } | 687 | 19.4k | else if constexpr (std::is_object_v<T>) { | 688 | 19.4k | return static_cast<T*>(s.m_p); | 689 | 19.4k | } | 690 | 19.4k | else { | 691 | 19.4k | return reinterpret_cast<T*>(s.m_fp); | 692 | 19.4k | } | 693 | 19.4k | } |
_ZN3scn2v34impl12fnref_detail4base3getIKZNKS1_25character_set_reader_implIcE16read_source_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_NS6_12specs_helperEEUlcE_EEDaNS3_7storageE Line | Count | Source | 683 | 6.15k | { | 684 | 6.15k | if constexpr (std::is_const_v<T>) { | 685 | 6.15k | return static_cast<T*>(s.m_cp); | 686 | 6.15k | } | 687 | 6.15k | else if constexpr (std::is_object_v<T>) { | 688 | 6.15k | return static_cast<T*>(s.m_p); | 689 | 6.15k | } | 690 | 6.15k | else { | 691 | 6.15k | return reinterpret_cast<T*>(s.m_fp); | 692 | 6.15k | } | 693 | 6.15k | } |
_ZN3scn2v34impl12fnref_detail4base3getIZNS1_23custom_word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeIPKcSD_EEcEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS0_6detail12format_specsERNSG_12basic_stringIT0_NSG_11char_traitsIST_EENSG_9allocatorIST_EEEEEUlcE_EEDaNS3_7storageE Line | Count | Source | 683 | 442 | { | 684 | 442 | if constexpr (std::is_const_v<T>) { | 685 | 442 | return static_cast<T*>(s.m_cp); | 686 | 442 | } | 687 | 442 | else if constexpr (std::is_object_v<T>) { | 688 | 442 | return static_cast<T*>(s.m_p); | 689 | 442 | } | 690 | 442 | else { | 691 | 442 | return reinterpret_cast<T*>(s.m_fp); | 692 | 442 | } | 693 | 442 | } |
_ZN3scn2v34impl12fnref_detail4base3getIKZNKS1_25character_set_reader_implIcE16read_source_implINS0_6ranges6detail9subrange_8subrangeIPKcSD_EEEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_NS6_12specs_helperEEUlDiE_EEDaNS3_7storageE Line | Count | Source | 683 | 283k | { | 684 | 283k | if constexpr (std::is_const_v<T>) { | 685 | 283k | return static_cast<T*>(s.m_cp); | 686 | 283k | } | 687 | 283k | else if constexpr (std::is_object_v<T>) { | 688 | 283k | return static_cast<T*>(s.m_p); | 689 | 283k | } | 690 | 283k | else { | 691 | 283k | return reinterpret_cast<T*>(s.m_fp); | 692 | 283k | } | 693 | 283k | } |
_ZN3scn2v34impl12fnref_detail4base3getIKZNKS1_25character_set_reader_implIcE16read_source_implINS0_6ranges6detail9subrange_8subrangeIPKcSD_EEEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_NS6_12specs_helperEEUlcE_EEDaNS3_7storageE Line | Count | Source | 683 | 3.55k | { | 684 | 3.55k | if constexpr (std::is_const_v<T>) { | 685 | 3.55k | return static_cast<T*>(s.m_cp); | 686 | 3.55k | } | 687 | 3.55k | else if constexpr (std::is_object_v<T>) { | 688 | 3.55k | return static_cast<T*>(s.m_p); | 689 | 3.55k | } | 690 | 3.55k | else { | 691 | 3.55k | return reinterpret_cast<T*>(s.m_fp); | 692 | 3.55k | } | 693 | 3.55k | } |
Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_23custom_word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEEEwEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESN_RKNSD_12format_specsERNSL_12basic_stringIT0_NSL_11char_traitsISX_EENSL_9allocatorISX_EEEEEUlcE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_23custom_word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS8_18default_sentinel_tEEEwEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNSC_12format_specsERNSJ_12basic_stringIT0_NSJ_11char_traitsISV_EENSJ_9allocatorISV_EEEEEUlcE_EEDaNS3_7storageE _ZN3scn2v34impl12fnref_detail4base3getIZNS1_23custom_word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEEEwEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNS0_6detail12format_specsERNSI_12basic_stringIT0_NSI_11char_traitsISV_EENSI_9allocatorISV_EEEEEUlcE_EEDaNS3_7storageE Line | Count | Source | 683 | 654 | { | 684 | 654 | if constexpr (std::is_const_v<T>) { | 685 | 654 | return static_cast<T*>(s.m_cp); | 686 | 654 | } | 687 | 654 | else if constexpr (std::is_object_v<T>) { | 688 | 654 | return static_cast<T*>(s.m_p); | 689 | 654 | } | 690 | 654 | else { | 691 | 654 | return reinterpret_cast<T*>(s.m_fp); | 692 | 654 | } | 693 | 654 | } |
_ZN3scn2v34impl12fnref_detail4base3getIZNS1_23custom_word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeIPKcSD_EEwEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS0_6detail12format_specsERNSG_12basic_stringIT0_NSG_11char_traitsIST_EENSG_9allocatorIST_EEEEEUlcE_EEDaNS3_7storageE Line | Count | Source | 683 | 442 | { | 684 | 442 | if constexpr (std::is_const_v<T>) { | 685 | 442 | return static_cast<T*>(s.m_cp); | 686 | 442 | } | 687 | 442 | else if constexpr (std::is_object_v<T>) { | 688 | 442 | return static_cast<T*>(s.m_p); | 689 | 442 | } | 690 | 442 | else { | 691 | 442 | return reinterpret_cast<T*>(s.m_fp); | 692 | 442 | } | 693 | 442 | } |
Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_23custom_word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEEEcEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESN_RKNSD_12format_specsERNSL_17basic_string_viewIT0_NSL_11char_traitsISX_EEEEEUlcE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_23custom_word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS8_18default_sentinel_tEEEcEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNSC_12format_specsERNSJ_17basic_string_viewIT0_NSJ_11char_traitsISV_EEEEEUlcE_EEDaNS3_7storageE _ZN3scn2v34impl12fnref_detail4base3getIZNS1_23custom_word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEEEcEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNS0_6detail12format_specsERNSI_17basic_string_viewIT0_NSI_11char_traitsISV_EEEEEUlcE_EEDaNS3_7storageE Line | Count | Source | 683 | 654 | { | 684 | 654 | if constexpr (std::is_const_v<T>) { | 685 | 654 | return static_cast<T*>(s.m_cp); | 686 | 654 | } | 687 | 654 | else if constexpr (std::is_object_v<T>) { | 688 | 654 | return static_cast<T*>(s.m_p); | 689 | 654 | } | 690 | 654 | else { | 691 | 654 | return reinterpret_cast<T*>(s.m_fp); | 692 | 654 | } | 693 | 654 | } |
_ZN3scn2v34impl12fnref_detail4base3getIZNS1_23custom_word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeIPKcSD_EEcEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS0_6detail12format_specsERNSG_17basic_string_viewIT0_NSG_11char_traitsIST_EEEEEUlcE_EEDaNS3_7storageE Line | Count | Source | 683 | 442 | { | 684 | 442 | if constexpr (std::is_const_v<T>) { | 685 | 442 | return static_cast<T*>(s.m_cp); | 686 | 442 | } | 687 | 442 | else if constexpr (std::is_object_v<T>) { | 688 | 442 | return static_cast<T*>(s.m_p); | 689 | 442 | } | 690 | 442 | else { | 691 | 442 | return reinterpret_cast<T*>(s.m_fp); | 692 | 442 | } | 693 | 442 | } |
Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_23custom_word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEEEwEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESN_RKNSD_12format_specsERNSL_17basic_string_viewIT0_NSL_11char_traitsISX_EEEEEUlcE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_23custom_word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS8_18default_sentinel_tEEEwEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNSC_12format_specsERNSJ_17basic_string_viewIT0_NSJ_11char_traitsISV_EEEEEUlcE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_23custom_word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEEEwEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNS0_6detail12format_specsERNSI_17basic_string_viewIT0_NSI_11char_traitsISV_EEEEEUlcE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_23custom_word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeIPKcSD_EEwEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS0_6detail12format_specsERNSG_17basic_string_viewIT0_NSG_11char_traitsIST_EEEEEUlcE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_24read_while_classic_spaceINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESI_EUlDiE_EEDaNS3_7storageE auto scn::v3::impl::fnref_detail::base::get<std::__1::__not_fn_t<scn::v3::impl::function_ref<bool (wchar_t), bool (wchar_t)> > >(scn::v3::impl::fnref_detail::base::storage) Line | Count | Source | 683 | 2.38k | { | 684 | 2.38k | if constexpr (std::is_const_v<T>) { | 685 | 2.38k | return static_cast<T*>(s.m_cp); | 686 | 2.38k | } | 687 | 2.38k | else if constexpr (std::is_object_v<T>) { | 688 | 2.38k | return static_cast<T*>(s.m_p); | 689 | 2.38k | } | 690 | 2.38k | else { | 691 | 2.38k | return reinterpret_cast<T*>(s.m_fp); | 692 | 2.38k | } | 693 | 2.38k | } |
Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIKZNS1_9skip_fillINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS7_18default_sentinel_tEEEEEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS7_5beginEEclsr3stdE7declvalIRT_EEEElEEEESL_lRKNSB_9fill_typeEbEUlwE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_24read_while_classic_spaceINS1_15take_width_viewINS6_INS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS7_18default_sentinel_tEEEEEEEEEDTclL_ZNS7_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESL_EUlDiE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_24read_while_classic_spaceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS7_18default_sentinel_tEEEEEEEDTclL_ZNS7_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESK_EUlDiE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIKZNS1_9skip_fillINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRT_EEEElEEEESJ_lRKNSA_9fill_typeEbEUlwE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_34parse_integer_digits_without_thsepINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEENS1_15take_width_viewINS9_ISF_SG_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_iEUlwE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_34parse_integer_digits_without_thsepINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_iEUlwE_EEDaNS3_7storageE auto scn::v3::impl::fnref_detail::base::get<scn::v3::impl::calculate_text_width<wchar_t>(std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> >)::{lambda(char32_t)#1}>(scn::v3::impl::fnref_detail::base::storage)Line | Count | Source | 683 | 5.96k | { | 684 | 5.96k | if constexpr (std::is_const_v<T>) { | 685 | 5.96k | return static_cast<T*>(s.m_cp); | 686 | 5.96k | } | 687 | 5.96k | else if constexpr (std::is_object_v<T>) { | 688 | 5.96k | return static_cast<T*>(s.m_p); | 689 | 5.96k | } | 690 | 5.96k | else { | 691 | 5.96k | return reinterpret_cast<T*>(s.m_fp); | 692 | 5.96k | } | 693 | 5.96k | } |
Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIKZNS1_9skip_fillINS1_15take_width_viewINSt3__117basic_string_viewIwNS7_11char_traitsIwEEEEEEEENS0_13scan_expectedINS7_4pairIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT_EEEElEEEESG_lRKNS0_6detail9fill_typeEbEUlwE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_24read_while_classic_spaceINS1_15take_width_viewINS6_INSt3__117basic_string_viewIwNS7_11char_traitsIwEEEEEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS7_9add_constIT_E4typeEEEEESG_EUlDiE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_24read_while_classic_spaceINS1_15take_width_viewINSt3__117basic_string_viewIwNS7_11char_traitsIwEEEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS7_9add_constIT_E4typeEEEEESF_EUlDiE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIKZNS1_9skip_fillINSt3__117basic_string_viewIwNS6_11char_traitsIwEEEEEENS0_13scan_expectedINS6_4pairIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT_EEEElEEEESE_lRKNS0_6detail9fill_typeEbEUlwE_EEDaNS3_7storageE _ZN3scn2v34impl12fnref_detail4base3getIZNS1_24read_while_classic_spaceINSt3__117basic_string_viewIwNS6_11char_traitsIwEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS6_9add_constIT_E4typeEEEEESD_EUlDiE_EEDaNS3_7storageE Line | Count | Source | 683 | 88.7k | { | 684 | 88.7k | if constexpr (std::is_const_v<T>) { | 685 | 88.7k | return static_cast<T*>(s.m_cp); | 686 | 88.7k | } | 687 | 88.7k | else if constexpr (std::is_object_v<T>) { | 688 | 88.7k | return static_cast<T*>(s.m_p); | 689 | 88.7k | } | 690 | 88.7k | else { | 691 | 88.7k | return reinterpret_cast<T*>(s.m_fp); | 692 | 88.7k | } | 693 | 88.7k | } |
_ZN3scn2v34impl12fnref_detail4base3getIZNS1_34parse_integer_digits_without_thsepINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSD_EENS1_15take_width_viewINS9_ISD_SD_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_iEUlwE_EEDaNS3_7storageE Line | Count | Source | 683 | 370 | { | 684 | 370 | if constexpr (std::is_const_v<T>) { | 685 | 370 | return static_cast<T*>(s.m_cp); | 686 | 370 | } | 687 | 370 | else if constexpr (std::is_object_v<T>) { | 688 | 370 | return static_cast<T*>(s.m_p); | 689 | 370 | } | 690 | 370 | else { | 691 | 370 | return reinterpret_cast<T*>(s.m_fp); | 692 | 370 | } | 693 | 370 | } |
_ZN3scn2v34impl12fnref_detail4base3getIKZNS1_9skip_fillINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRT_EEEElEEEESG_lRKNS0_6detail9fill_typeEbEUlwE_EEDaNS3_7storageE Line | Count | Source | 683 | 514 | { | 684 | 514 | if constexpr (std::is_const_v<T>) { | 685 | 514 | return static_cast<T*>(s.m_cp); | 686 | 514 | } | 687 | 514 | else if constexpr (std::is_object_v<T>) { | 688 | 514 | return static_cast<T*>(s.m_p); | 689 | 514 | } | 690 | 514 | else { | 691 | 514 | return reinterpret_cast<T*>(s.m_fp); | 692 | 514 | } | 693 | 514 | } |
_ZN3scn2v34impl12fnref_detail4base3getIZNS1_24read_while_classic_spaceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSC_EEEEEEDTclL_ZNS7_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESH_EUlDiE_EEDaNS3_7storageE Line | Count | Source | 683 | 86 | { | 684 | 86 | if constexpr (std::is_const_v<T>) { | 685 | 86 | return static_cast<T*>(s.m_cp); | 686 | 86 | } | 687 | 86 | else if constexpr (std::is_object_v<T>) { | 688 | 86 | return static_cast<T*>(s.m_p); | 689 | 86 | } | 690 | 86 | else { | 691 | 86 | return reinterpret_cast<T*>(s.m_fp); | 692 | 86 | } | 693 | 86 | } |
_ZN3scn2v34impl12fnref_detail4base3getIZNS1_24read_while_classic_spaceINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESF_EUlDiE_EEDaNS3_7storageE Line | Count | Source | 683 | 429k | { | 684 | 429k | if constexpr (std::is_const_v<T>) { | 685 | 429k | return static_cast<T*>(s.m_cp); | 686 | 429k | } | 687 | 429k | else if constexpr (std::is_object_v<T>) { | 688 | 429k | return static_cast<T*>(s.m_p); | 689 | 429k | } | 690 | 429k | else { | 691 | 429k | return reinterpret_cast<T*>(s.m_fp); | 692 | 429k | } | 693 | 429k | } |
Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEEEfEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESN_RKNSD_12format_specsERT0_NSD_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_12float_readerIwE8read_nanINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS8_18default_sentinel_tEEENS1_15take_width_viewINSB_ISH_SI_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEEST_EUlwE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_12float_readerIwE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS8_18default_sentinel_tEEENS1_15take_width_viewINSB_ISH_SI_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEEST_bEUlwE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_12float_readerIwE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS8_18default_sentinel_tEEENS1_15take_width_viewINSB_ISH_SI_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEEST_bEUlwE0_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_12float_readerIwE13read_exponentINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS8_18default_sentinel_tEEENS1_15take_width_viewINSB_ISH_SI_EEE8sentinelILb1EEEEEEEDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESS_NSQ_17basic_string_viewIcNSQ_11char_traitsIcEEEEEUlwE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_12float_readerIwE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS8_18default_sentinel_tEEENS1_15take_width_viewINSB_ISH_SI_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEEST_bEUlwE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_12float_readerIwE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS8_18default_sentinel_tEEENS1_15take_width_viewINSB_ISH_SI_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEEST_bEUlwE0_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEEEfEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESN_RKNSD_12format_specsERT0_NSD_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E0_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIwE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS8_18default_sentinel_tEEEfEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNSC_12format_specsERT0_NSC_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_12float_readerIwE8read_nanINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS8_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_EUlwE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_12float_readerIwE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS8_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_bEUlwE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_12float_readerIwE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS8_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_bEUlwE0_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_12float_readerIwE13read_exponentINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS8_18default_sentinel_tEEEEEDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESK_NSI_17basic_string_viewIcNSI_11char_traitsIcEEEEEUlwE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_12float_readerIwE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS8_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_bEUlwE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_12float_readerIwE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS8_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_bEUlwE0_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIwE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS8_18default_sentinel_tEEEfEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNSC_12format_specsERT0_NSC_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E0_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEEEfEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNS0_6detail12format_specsERT0_NSQ_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_12float_readerIwE8read_nanINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSF_EENS1_15take_width_viewINSB_ISF_SF_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESQ_EUlwE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_12float_readerIwE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSF_EENS1_15take_width_viewINSB_ISF_SF_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESQ_bEUlwE_EEDaNS3_7storageE _ZN3scn2v34impl12fnref_detail4base3getIZNS1_12float_readerIwE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSF_EENS1_15take_width_viewINSB_ISF_SF_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESQ_bEUlwE0_EEDaNS3_7storageE Line | Count | Source | 683 | 6 | { | 684 | 6 | if constexpr (std::is_const_v<T>) { | 685 | 6 | return static_cast<T*>(s.m_cp); | 686 | 6 | } | 687 | 6 | else if constexpr (std::is_object_v<T>) { | 688 | 6 | return static_cast<T*>(s.m_p); | 689 | 6 | } | 690 | 6 | else { | 691 | 6 | return reinterpret_cast<T*>(s.m_fp); | 692 | 6 | } | 693 | 6 | } |
Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_12float_readerIwE13read_exponentINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSF_EENS1_15take_width_viewINSB_ISF_SF_EEE8sentinelILb1EEEEEEEDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESP_NSN_17basic_string_viewIcNSN_11char_traitsIcEEEEEUlwE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_12float_readerIwE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSF_EENS1_15take_width_viewINSB_ISF_SF_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESQ_bEUlwE_EEDaNS3_7storageE _ZN3scn2v34impl12fnref_detail4base3getIZNS1_12float_readerIwE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSF_EENS1_15take_width_viewINSB_ISF_SF_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESQ_bEUlwE0_EEDaNS3_7storageE Line | Count | Source | 683 | 116 | { | 684 | 116 | if constexpr (std::is_const_v<T>) { | 685 | 116 | return static_cast<T*>(s.m_cp); | 686 | 116 | } | 687 | 116 | else if constexpr (std::is_object_v<T>) { | 688 | 116 | return static_cast<T*>(s.m_p); | 689 | 116 | } | 690 | 116 | else { | 691 | 116 | return reinterpret_cast<T*>(s.m_fp); | 692 | 116 | } | 693 | 116 | } |
Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEEEfEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNS0_6detail12format_specsERT0_NSQ_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E0_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIwE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKwSD_EEfEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS0_6detail12format_specsERT0_NSO_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_12float_readerIwE8read_nanINS0_6ranges6detail9subrange_8subrangeIPKwSD_EEEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_EUlwE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_12float_readerIwE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeIPKwSD_EEEENS1_14parse_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_bEUlwE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_12float_readerIwE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeIPKwSD_EEEENS1_14parse_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_bEUlwE0_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_12float_readerIwE13read_exponentINS0_6ranges6detail9subrange_8subrangeIPKwSD_EEEEDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESH_NSF_17basic_string_viewIcNSF_11char_traitsIcEEEEEUlwE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_12float_readerIwE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeIPKwSD_EEEENS1_14parse_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_bEUlwE_EEDaNS3_7storageE _ZN3scn2v34impl12fnref_detail4base3getIZNS1_12float_readerIwE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeIPKwSD_EEEENS1_14parse_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_bEUlwE0_EEDaNS3_7storageE Line | Count | Source | 683 | 6 | { | 684 | 6 | if constexpr (std::is_const_v<T>) { | 685 | 6 | return static_cast<T*>(s.m_cp); | 686 | 6 | } | 687 | 6 | else if constexpr (std::is_object_v<T>) { | 688 | 6 | return static_cast<T*>(s.m_p); | 689 | 6 | } | 690 | 6 | else { | 691 | 6 | return reinterpret_cast<T*>(s.m_fp); | 692 | 6 | } | 693 | 6 | } |
Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIwE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKwSD_EEfEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS0_6detail12format_specsERT0_NSO_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E0_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEEEdEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESN_RKNSD_12format_specsERT0_NSD_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEEEdEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESN_RKNSD_12format_specsERT0_NSD_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E0_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIwE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS8_18default_sentinel_tEEEdEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNSC_12format_specsERT0_NSC_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIwE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS8_18default_sentinel_tEEEdEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNSC_12format_specsERT0_NSC_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E0_EEDaNS3_7storageE _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEEEdEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNS0_6detail12format_specsERT0_NSQ_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E_EEDaNS3_7storageE Line | Count | Source | 683 | 6 | { | 684 | 6 | if constexpr (std::is_const_v<T>) { | 685 | 6 | return static_cast<T*>(s.m_cp); | 686 | 6 | } | 687 | 6 | else if constexpr (std::is_object_v<T>) { | 688 | 6 | return static_cast<T*>(s.m_p); | 689 | 6 | } | 690 | 6 | else { | 691 | 6 | return reinterpret_cast<T*>(s.m_fp); | 692 | 6 | } | 693 | 6 | } |
_ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEEEdEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNS0_6detail12format_specsERT0_NSQ_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E0_EEDaNS3_7storageE Line | Count | Source | 683 | 116 | { | 684 | 116 | if constexpr (std::is_const_v<T>) { | 685 | 116 | return static_cast<T*>(s.m_cp); | 686 | 116 | } | 687 | 116 | else if constexpr (std::is_object_v<T>) { | 688 | 116 | return static_cast<T*>(s.m_p); | 689 | 116 | } | 690 | 116 | else { | 691 | 116 | return reinterpret_cast<T*>(s.m_fp); | 692 | 116 | } | 693 | 116 | } |
_ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIwE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKwSD_EEdEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS0_6detail12format_specsERT0_NSO_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E_EEDaNS3_7storageE Line | Count | Source | 683 | 6 | { | 684 | 6 | if constexpr (std::is_const_v<T>) { | 685 | 6 | return static_cast<T*>(s.m_cp); | 686 | 6 | } | 687 | 6 | else if constexpr (std::is_object_v<T>) { | 688 | 6 | return static_cast<T*>(s.m_p); | 689 | 6 | } | 690 | 6 | else { | 691 | 6 | return reinterpret_cast<T*>(s.m_fp); | 692 | 6 | } | 693 | 6 | } |
_ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIwE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKwSD_EEdEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS0_6detail12format_specsERT0_NSO_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E0_EEDaNS3_7storageE Line | Count | Source | 683 | 320 | { | 684 | 320 | if constexpr (std::is_const_v<T>) { | 685 | 320 | return static_cast<T*>(s.m_cp); | 686 | 320 | } | 687 | 320 | else if constexpr (std::is_object_v<T>) { | 688 | 320 | return static_cast<T*>(s.m_p); | 689 | 320 | } | 690 | 320 | else { | 691 | 320 | return reinterpret_cast<T*>(s.m_fp); | 692 | 320 | } | 693 | 320 | } |
Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEEEeEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESN_RKNSD_12format_specsERT0_NSD_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEEEeEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESN_RKNSD_12format_specsERT0_NSD_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E0_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIwE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS8_18default_sentinel_tEEEeEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNSC_12format_specsERT0_NSC_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIwE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS8_18default_sentinel_tEEEeEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNSC_12format_specsERT0_NSC_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E0_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEEEeEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNS0_6detail12format_specsERT0_NSQ_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEEEeEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNS0_6detail12format_specsERT0_NSQ_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E0_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIwE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKwSD_EEeEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS0_6detail12format_specsERT0_NSO_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIwE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKwSD_EEeEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS0_6detail12format_specsERT0_NSO_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E0_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_24read_until_classic_spaceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS7_18default_sentinel_tEEEEEEEDTclL_ZNS7_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESK_EUlDiE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_23custom_word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEEEcEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESN_RKNSD_12format_specsERNSL_12basic_stringIT0_NSL_11char_traitsISX_EENSL_9allocatorISX_EEEEEUlwE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIKZNKS1_25character_set_reader_implIwE16read_source_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESN_NS6_12specs_helperEEUlDiE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIKZNKS1_25character_set_reader_implIwE16read_source_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESN_NS6_12specs_helperEEUlwE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_24read_until_classic_spaceINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESI_EUlDiE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_23custom_word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS8_18default_sentinel_tEEEcEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNSC_12format_specsERNSJ_12basic_stringIT0_NSJ_11char_traitsISV_EENSJ_9allocatorISV_EEEEEUlwE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIKZNKS1_25character_set_reader_implIwE16read_source_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS8_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_NS6_12specs_helperEEUlDiE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIKZNKS1_25character_set_reader_implIwE16read_source_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS8_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_NS6_12specs_helperEEUlwE_EEDaNS3_7storageE _ZN3scn2v34impl12fnref_detail4base3getIZNS1_24read_until_classic_spaceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSC_EEEEEEDTclL_ZNS7_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESH_EUlDiE_EEDaNS3_7storageE Line | Count | Source | 683 | 7.60k | { | 684 | 7.60k | if constexpr (std::is_const_v<T>) { | 685 | 7.60k | return static_cast<T*>(s.m_cp); | 686 | 7.60k | } | 687 | 7.60k | else if constexpr (std::is_object_v<T>) { | 688 | 7.60k | return static_cast<T*>(s.m_p); | 689 | 7.60k | } | 690 | 7.60k | else { | 691 | 7.60k | return reinterpret_cast<T*>(s.m_fp); | 692 | 7.60k | } | 693 | 7.60k | } |
_ZN3scn2v34impl12fnref_detail4base3getIZNS1_23custom_word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEEEcEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNS0_6detail12format_specsERNSI_12basic_stringIT0_NSI_11char_traitsISV_EENSI_9allocatorISV_EEEEEUlwE_EEDaNS3_7storageE Line | Count | Source | 683 | 350 | { | 684 | 350 | if constexpr (std::is_const_v<T>) { | 685 | 350 | return static_cast<T*>(s.m_cp); | 686 | 350 | } | 687 | 350 | else if constexpr (std::is_object_v<T>) { | 688 | 350 | return static_cast<T*>(s.m_p); | 689 | 350 | } | 690 | 350 | else { | 691 | 350 | return reinterpret_cast<T*>(s.m_fp); | 692 | 350 | } | 693 | 350 | } |
Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIKZNKS1_25character_set_reader_implIwE16read_source_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_NS6_12specs_helperEEUlDiE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIKZNKS1_25character_set_reader_implIwE16read_source_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_NS6_12specs_helperEEUlwE_EEDaNS3_7storageE _ZN3scn2v34impl12fnref_detail4base3getIZNS1_24read_until_classic_spaceINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESF_EUlDiE_EEDaNS3_7storageE Line | Count | Source | 683 | 225k | { | 684 | 225k | if constexpr (std::is_const_v<T>) { | 685 | 225k | return static_cast<T*>(s.m_cp); | 686 | 225k | } | 687 | 225k | else if constexpr (std::is_object_v<T>) { | 688 | 225k | return static_cast<T*>(s.m_p); | 689 | 225k | } | 690 | 225k | else { | 691 | 225k | return reinterpret_cast<T*>(s.m_fp); | 692 | 225k | } | 693 | 225k | } |
_ZN3scn2v34impl12fnref_detail4base3getIZNS1_23custom_word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeIPKwSD_EEcEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS0_6detail12format_specsERNSG_12basic_stringIT0_NSG_11char_traitsIST_EENSG_9allocatorIST_EEEEEUlwE_EEDaNS3_7storageE Line | Count | Source | 683 | 410 | { | 684 | 410 | if constexpr (std::is_const_v<T>) { | 685 | 410 | return static_cast<T*>(s.m_cp); | 686 | 410 | } | 687 | 410 | else if constexpr (std::is_object_v<T>) { | 688 | 410 | return static_cast<T*>(s.m_p); | 689 | 410 | } | 690 | 410 | else { | 691 | 410 | return reinterpret_cast<T*>(s.m_fp); | 692 | 410 | } | 693 | 410 | } |
_ZN3scn2v34impl12fnref_detail4base3getIKZNKS1_25character_set_reader_implIwE16read_source_implINS0_6ranges6detail9subrange_8subrangeIPKwSD_EEEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_NS6_12specs_helperEEUlDiE_EEDaNS3_7storageE Line | Count | Source | 683 | 3.57k | { | 684 | 3.57k | if constexpr (std::is_const_v<T>) { | 685 | 3.57k | return static_cast<T*>(s.m_cp); | 686 | 3.57k | } | 687 | 3.57k | else if constexpr (std::is_object_v<T>) { | 688 | 3.57k | return static_cast<T*>(s.m_p); | 689 | 3.57k | } | 690 | 3.57k | else { | 691 | 3.57k | return reinterpret_cast<T*>(s.m_fp); | 692 | 3.57k | } | 693 | 3.57k | } |
_ZN3scn2v34impl12fnref_detail4base3getIKZNKS1_25character_set_reader_implIwE16read_source_implINS0_6ranges6detail9subrange_8subrangeIPKwSD_EEEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_NS6_12specs_helperEEUlwE_EEDaNS3_7storageE Line | Count | Source | 683 | 1.18k | { | 684 | 1.18k | if constexpr (std::is_const_v<T>) { | 685 | 1.18k | return static_cast<T*>(s.m_cp); | 686 | 1.18k | } | 687 | 1.18k | else if constexpr (std::is_object_v<T>) { | 688 | 1.18k | return static_cast<T*>(s.m_p); | 689 | 1.18k | } | 690 | 1.18k | else { | 691 | 1.18k | return reinterpret_cast<T*>(s.m_fp); | 692 | 1.18k | } | 693 | 1.18k | } |
Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_23custom_word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEEEwEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESN_RKNSD_12format_specsERNSL_12basic_stringIT0_NSL_11char_traitsISX_EENSL_9allocatorISX_EEEEEUlwE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_23custom_word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS8_18default_sentinel_tEEEwEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNSC_12format_specsERNSJ_12basic_stringIT0_NSJ_11char_traitsISV_EENSJ_9allocatorISV_EEEEEUlwE_EEDaNS3_7storageE _ZN3scn2v34impl12fnref_detail4base3getIZNS1_23custom_word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEEEwEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNS0_6detail12format_specsERNSI_12basic_stringIT0_NSI_11char_traitsISV_EENSI_9allocatorISV_EEEEEUlwE_EEDaNS3_7storageE Line | Count | Source | 683 | 350 | { | 684 | 350 | if constexpr (std::is_const_v<T>) { | 685 | 350 | return static_cast<T*>(s.m_cp); | 686 | 350 | } | 687 | 350 | else if constexpr (std::is_object_v<T>) { | 688 | 350 | return static_cast<T*>(s.m_p); | 689 | 350 | } | 690 | 350 | else { | 691 | 350 | return reinterpret_cast<T*>(s.m_fp); | 692 | 350 | } | 693 | 350 | } |
_ZN3scn2v34impl12fnref_detail4base3getIZNS1_23custom_word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeIPKwSD_EEwEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS0_6detail12format_specsERNSG_12basic_stringIT0_NSG_11char_traitsIST_EENSG_9allocatorIST_EEEEEUlwE_EEDaNS3_7storageE Line | Count | Source | 683 | 410 | { | 684 | 410 | if constexpr (std::is_const_v<T>) { | 685 | 410 | return static_cast<T*>(s.m_cp); | 686 | 410 | } | 687 | 410 | else if constexpr (std::is_object_v<T>) { | 688 | 410 | return static_cast<T*>(s.m_p); | 689 | 410 | } | 690 | 410 | else { | 691 | 410 | return reinterpret_cast<T*>(s.m_fp); | 692 | 410 | } | 693 | 410 | } |
Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_23custom_word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEEEcEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESN_RKNSD_12format_specsERNSL_17basic_string_viewIT0_NSL_11char_traitsISX_EEEEEUlwE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_23custom_word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS8_18default_sentinel_tEEEcEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNSC_12format_specsERNSJ_17basic_string_viewIT0_NSJ_11char_traitsISV_EEEEEUlwE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_23custom_word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEEEcEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNS0_6detail12format_specsERNSI_17basic_string_viewIT0_NSI_11char_traitsISV_EEEEEUlwE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_23custom_word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeIPKwSD_EEcEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS0_6detail12format_specsERNSG_17basic_string_viewIT0_NSG_11char_traitsIST_EEEEEUlwE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_23custom_word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEEEwEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESN_RKNSD_12format_specsERNSL_17basic_string_viewIT0_NSL_11char_traitsISX_EEEEEUlwE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_23custom_word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS8_18default_sentinel_tEEEwEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNSC_12format_specsERNSJ_17basic_string_viewIT0_NSJ_11char_traitsISV_EEEEEUlwE_EEDaNS3_7storageE _ZN3scn2v34impl12fnref_detail4base3getIZNS1_23custom_word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEEEwEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNS0_6detail12format_specsERNSI_17basic_string_viewIT0_NSI_11char_traitsISV_EEEEEUlwE_EEDaNS3_7storageE Line | Count | Source | 683 | 350 | { | 684 | 350 | if constexpr (std::is_const_v<T>) { | 685 | 350 | return static_cast<T*>(s.m_cp); | 686 | 350 | } | 687 | 350 | else if constexpr (std::is_object_v<T>) { | 688 | 350 | return static_cast<T*>(s.m_p); | 689 | 350 | } | 690 | 350 | else { | 691 | 350 | return reinterpret_cast<T*>(s.m_fp); | 692 | 350 | } | 693 | 350 | } |
_ZN3scn2v34impl12fnref_detail4base3getIZNS1_23custom_word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeIPKwSD_EEwEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS0_6detail12format_specsERNSG_17basic_string_viewIT0_NSG_11char_traitsIST_EEEEEUlwE_EEDaNS3_7storageE Line | Count | Source | 683 | 410 | { | 684 | 410 | if constexpr (std::is_const_v<T>) { | 685 | 410 | return static_cast<T*>(s.m_cp); | 686 | 410 | } | 687 | 410 | else if constexpr (std::is_object_v<T>) { | 688 | 410 | return static_cast<T*>(s.m_p); | 689 | 410 | } | 690 | 410 | else { | 691 | 410 | return reinterpret_cast<T*>(s.m_fp); | 692 | 410 | } | 693 | 410 | } |
Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_24read_while_classic_spaceINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESI_EUlDiE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_24read_until_classic_spaceINSt3__117basic_string_viewIwNS6_11char_traitsIwEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS6_9add_constIT_E4typeEEEEESD_EUlDiE_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKcSD_EEfEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_NS0_6detail10locale_refEEUlRNS1_12float_readerIcEEDpOT_E_EEDaNS3_7storageE _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKcSD_EEdEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_NS0_6detail10locale_refEEUlRNS1_12float_readerIcEEDpOT_E_EEDaNS3_7storageE Line | Count | Source | 683 | 628 | { | 684 | 628 | if constexpr (std::is_const_v<T>) { | 685 | 628 | return static_cast<T*>(s.m_cp); | 686 | 628 | } | 687 | 628 | else if constexpr (std::is_object_v<T>) { | 688 | 628 | return static_cast<T*>(s.m_p); | 689 | 628 | } | 690 | 628 | else { | 691 | 628 | return reinterpret_cast<T*>(s.m_fp); | 692 | 628 | } | 693 | 628 | } |
Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKcSD_EEeEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_NS0_6detail10locale_refEEUlRNS1_12float_readerIcEEDpOT_E_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS8_18default_sentinel_tEEEfEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RT0_NSC_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS8_18default_sentinel_tEEEdEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RT0_NSC_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS8_18default_sentinel_tEEEeEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RT0_NSC_10locale_refEEUlRNS1_12float_readerIcEEDpOT_E_EEDaNS3_7storageE _ZN3scn2v34impl12fnref_detail4base3getIKZNS1_9skip_fillINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSC_EEEEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS7_5beginEEclsr3stdE7declvalIRT_EEEElEEEESI_lRKNS0_6detail9fill_typeEbEUlcE_EEDaNS3_7storageE Line | Count | Source | 683 | 812 | { | 684 | 812 | if constexpr (std::is_const_v<T>) { | 685 | 812 | return static_cast<T*>(s.m_cp); | 686 | 812 | } | 687 | 812 | else if constexpr (std::is_object_v<T>) { | 688 | 812 | return static_cast<T*>(s.m_p); | 689 | 812 | } | 690 | 812 | else { | 691 | 812 | return reinterpret_cast<T*>(s.m_fp); | 692 | 812 | } | 693 | 812 | } |
_ZN3scn2v34impl12fnref_detail4base3getIZNS1_24read_while_classic_spaceINS1_15take_width_viewINS6_INS0_6ranges6detail9subrange_8subrangeIPKcSC_EEEEEEEEDTclL_ZNS7_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESI_EUlDiE_EEDaNS3_7storageE Line | Count | Source | 683 | 2.86k | { | 684 | 2.86k | if constexpr (std::is_const_v<T>) { | 685 | 2.86k | return static_cast<T*>(s.m_cp); | 686 | 2.86k | } | 687 | 2.86k | else if constexpr (std::is_object_v<T>) { | 688 | 2.86k | return static_cast<T*>(s.m_p); | 689 | 2.86k | } | 690 | 2.86k | else { | 691 | 2.86k | return reinterpret_cast<T*>(s.m_fp); | 692 | 2.86k | } | 693 | 2.86k | } |
Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKwSD_EEfEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_NS0_6detail10locale_refEEUlRNS1_12float_readerIwEEDpOT_E_EEDaNS3_7storageE _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKwSD_EEdEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_NS0_6detail10locale_refEEUlRNS1_12float_readerIwEEDpOT_E_EEDaNS3_7storageE Line | Count | Source | 683 | 10.0k | { | 684 | 10.0k | if constexpr (std::is_const_v<T>) { | 685 | 10.0k | return static_cast<T*>(s.m_cp); | 686 | 10.0k | } | 687 | 10.0k | else if constexpr (std::is_object_v<T>) { | 688 | 10.0k | return static_cast<T*>(s.m_p); | 689 | 10.0k | } | 690 | 10.0k | else { | 691 | 10.0k | return reinterpret_cast<T*>(s.m_fp); | 692 | 10.0k | } | 693 | 10.0k | } |
Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKwSD_EEeEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_NS0_6detail10locale_refEEUlRNS1_12float_readerIwEEDpOT_E_EEDaNS3_7storageE _ZN3scn2v34impl12fnref_detail4base3getIKZNS1_9skip_fillINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSC_EEEEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS7_5beginEEclsr3stdE7declvalIRT_EEEElEEEESI_lRKNS0_6detail9fill_typeEbEUlwE_EEDaNS3_7storageE Line | Count | Source | 683 | 288 | { | 684 | 288 | if constexpr (std::is_const_v<T>) { | 685 | 288 | return static_cast<T*>(s.m_cp); | 686 | 288 | } | 687 | 288 | else if constexpr (std::is_object_v<T>) { | 688 | 288 | return static_cast<T*>(s.m_p); | 689 | 288 | } | 690 | 288 | else { | 691 | 288 | return reinterpret_cast<T*>(s.m_fp); | 692 | 288 | } | 693 | 288 | } |
_ZN3scn2v34impl12fnref_detail4base3getIZNS1_24read_while_classic_spaceINS1_15take_width_viewINS6_INS0_6ranges6detail9subrange_8subrangeIPKwSC_EEEEEEEEDTclL_ZNS7_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESI_EUlDiE_EEDaNS3_7storageE Line | Count | Source | 683 | 794 | { | 684 | 794 | if constexpr (std::is_const_v<T>) { | 685 | 794 | return static_cast<T*>(s.m_cp); | 686 | 794 | } | 687 | 794 | else if constexpr (std::is_object_v<T>) { | 688 | 794 | return static_cast<T*>(s.m_p); | 689 | 794 | } | 690 | 794 | else { | 691 | 794 | return reinterpret_cast<T*>(s.m_fp); | 692 | 794 | } | 693 | 794 | } |
Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS8_18default_sentinel_tEEEfEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RT0_NSC_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS8_18default_sentinel_tEEEdEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RT0_NSC_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E_EEDaNS3_7storageE Unexecuted instantiation: _ZN3scn2v34impl12fnref_detail4base3getIZNS1_21reader_impl_for_floatIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS8_18default_sentinel_tEEEeEENS0_13scan_expectedIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RT0_NSC_10locale_refEEUlRNS1_12float_readerIwEEDpOT_E_EEDaNS3_7storageE |
694 | | }; |
695 | | } // namespace fnref_detail |
696 | | |
697 | | template <typename Sig, |
698 | | typename = typename fnref_detail::qual_fn_sig<Sig>::function> |
699 | | class function_ref; |
700 | | |
701 | | template <typename Sig, typename R, typename... Args> |
702 | | class function_ref<Sig, R(Args...)> : fnref_detail::base { |
703 | | using signature = fnref_detail::qual_fn_sig<Sig>; |
704 | | |
705 | | template <typename T> |
706 | | using cv = typename signature::template cv<T>; |
707 | | template <typename T> |
708 | | using cvref = cv<T>&; |
709 | | static constexpr bool noex = signature::is_noexcept; |
710 | | |
711 | | template <typename... T> |
712 | | static constexpr bool is_invocable_using = |
713 | | signature::template is_invocable_using<T...>; |
714 | | |
715 | | using fwd_t = R(storage, fnref_detail::param_t<Args>...) noexcept(noex); |
716 | | |
717 | | public: |
718 | | template <typename F, |
719 | | std::enable_if_t<std::is_function_v<F> && |
720 | | is_invocable_using<F>>* = nullptr> |
721 | | /*implicit*/ function_ref(F* f) noexcept |
722 | | : m_fptr([](storage fn, |
723 | | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { |
724 | | if constexpr (std::is_void_v<R>) { |
725 | | get<F>(fn)(static_cast<decltype(args)>(args)...); |
726 | | } |
727 | | else { |
728 | | return get<F>(fn)(static_cast<decltype(args)>(args)...); |
729 | | } |
730 | | }), |
731 | | m_storage(f) |
732 | | { |
733 | | SCN_EXPECT(f != nullptr); |
734 | | } |
735 | | |
736 | | template <typename F, |
737 | | typename T = std::remove_reference_t<F>, |
738 | | std::enable_if_t<detail::is_not_self<F, function_ref> && |
739 | | !std::is_member_pointer_v<T> && |
740 | | is_invocable_using<cvref<T>>>* = nullptr> |
741 | | /*implicit*/ constexpr function_ref(F&& f) noexcept |
742 | | : m_fptr([](storage fn, |
743 | 1.98M | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { |
744 | 1.98M | cvref<T> obj = *get<T>(fn); |
745 | 1.98M | if constexpr (std::is_void_v<R>) { |
746 | 1.93M | obj(static_cast<decltype(args)>(args)...); |
747 | 1.93M | } |
748 | 1.93M | else { |
749 | 1.93M | return obj(static_cast<decltype(args)>(args)...); |
750 | 1.93M | } |
751 | 1.98M | }), scn::v3::impl::function_ref<bool (char), bool (char)>::function_ref<std::__1::__not_fn_t<scn::v3::impl::function_ref<bool (char), bool (char)> >, std::__1::__not_fn_t<scn::v3::impl::function_ref<bool (char), bool (char)> >, (void*)0>(std::__1::__not_fn_t<scn::v3::impl::function_ref<bool (char), bool (char)> >&&)::{lambda(scn::v3::impl::fnref_detail::base::storage, char)#1}::operator()(scn::v3::impl::fnref_detail::base::storage, char) constLine | Count | Source | 743 | 7.64k | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 7.64k | cvref<T> obj = *get<T>(fn); | 745 | 7.64k | if constexpr (std::is_void_v<R>) { | 746 | 7.64k | obj(static_cast<decltype(args)>(args)...); | 747 | 7.64k | } | 748 | 7.64k | else { | 749 | 7.64k | return obj(static_cast<decltype(args)>(args)...); | 750 | 7.64k | } | 751 | 7.64k | }), |
Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbcES3_EC1IRKZNS1_9skip_fillINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS8_18default_sentinel_tEEEEEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRT_EEEElEEEESM_lRKNSC_9fill_typeEbEUlcE_SV_LPv0EEEOSM_ENKUlNS1_12fnref_detail4base7storageEcE_clES11_c scn::v3::impl::function_ref<bool (char32_t), bool (char32_t)>::function_ref<std::__1::__not_fn_t<scn::v3::impl::function_ref<bool (char32_t), bool (char32_t)> >, std::__1::__not_fn_t<scn::v3::impl::function_ref<bool (char32_t), bool (char32_t)> >, (void*)0>(std::__1::__not_fn_t<scn::v3::impl::function_ref<bool (char32_t), bool (char32_t)> >&&)::{lambda(scn::v3::impl::fnref_detail::base::storage, char32_t)#1}::operator()(scn::v3::impl::fnref_detail::base::storage, char32_t) constLine | Count | Source | 743 | 823k | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 823k | cvref<T> obj = *get<T>(fn); | 745 | 823k | if constexpr (std::is_void_v<R>) { | 746 | 823k | obj(static_cast<decltype(args)>(args)...); | 747 | 823k | } | 748 | 823k | else { | 749 | 823k | return obj(static_cast<decltype(args)>(args)...); | 750 | 823k | } | 751 | 823k | }), |
Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbDiES3_EC1IZNS1_24read_while_classic_spaceINS1_15take_width_viewINS7_INS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS8_18default_sentinel_tEEEEEEEEEDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESM_EUlDiE_SR_LPv0EEEOSM_ENKUlNS1_12fnref_detail4base7storageEDiE_clESW_Di Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbDiES3_EC1IZNS1_24read_while_classic_spaceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS8_18default_sentinel_tEEEEEEEDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESL_EUlDiE_SQ_LPv0EEEOSL_ENKUlNS1_12fnref_detail4base7storageEDiE_clESV_Di Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbcES3_EC1IRKZNS1_9skip_fillINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS7_18default_sentinel_tEEEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS7_5beginEEclsr3stdE7declvalIRT_EEEElEEEESK_lRKNSB_9fill_typeEbEUlcE_ST_LPv0EEEOSK_ENKUlNS1_12fnref_detail4base7storageEcE_clESZ_c Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbcES3_EC1IZNS1_34parse_integer_digits_without_thsepINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS7_18default_sentinel_tEEENS1_15take_width_viewINSA_ISG_SH_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS7_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESS_iEUlcE_SY_LPv0EEEOSS_ENKUlNS1_12fnref_detail4base7storageEcE_clES13_c Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbcES3_EC1IZNS1_34parse_integer_digits_without_thsepINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS7_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS7_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_iEUlcE_SQ_LPv0EEEOSK_ENKUlNS1_12fnref_detail4base7storageEcE_clESV_c scn::v3::impl::function_ref<void (char32_t), void (char32_t)>::function_ref<scn::v3::impl::calculate_text_width<char>(std::__1::basic_string_view<char, std::__1::char_traits<char> >)::{lambda(char32_t)#1}, {lambda(char32_t)#1}, (void*)0>(scn::v3::impl::calculate_text_width<char>(std::__1::basic_string_view<char, std::__1::char_traits<char> >)::{lambda(char32_t)#1}&&)::{lambda(scn::v3::impl::fnref_detail::base::storage, char32_t)#1}::operator()(scn::v3::impl::fnref_detail::base, char32_t) constLine | Count | Source | 743 | 37.3k | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 37.3k | cvref<T> obj = *get<T>(fn); | 745 | 37.3k | if constexpr (std::is_void_v<R>) { | 746 | 37.3k | obj(static_cast<decltype(args)>(args)...); | 747 | 37.3k | } | 748 | 37.3k | else { | 749 | 37.3k | return obj(static_cast<decltype(args)>(args)...); | 750 | 37.3k | } | 751 | 37.3k | }), |
Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbcES3_EC1IRKZNS1_9skip_fillINS1_15take_width_viewINSt3__117basic_string_viewIcNS8_11char_traitsIcEEEEEEEENS0_13scan_expectedINS8_4pairIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT_EEEElEEEESH_lRKNS0_6detail9fill_typeEbEUlcE_SR_LPv0EEEOSH_ENKUlNS1_12fnref_detail4base7storageEcE_clESX_c Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbDiES3_EC1IZNS1_24read_while_classic_spaceINS1_15take_width_viewINS7_INSt3__117basic_string_viewIcNS8_11char_traitsIcEEEEEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS8_9add_constIT_E4typeEEEEESH_EUlDiE_SM_LPv0EEEOSH_ENKUlNS1_12fnref_detail4base7storageEDiE_clESR_Di Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbDiES3_EC1IZNS1_24read_while_classic_spaceINS1_15take_width_viewINSt3__117basic_string_viewIcNS8_11char_traitsIcEEEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS8_9add_constIT_E4typeEEEEESG_EUlDiE_SL_LPv0EEEOSG_ENKUlNS1_12fnref_detail4base7storageEDiE_clESQ_Di Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbcES3_EC1IRKZNS1_9skip_fillINSt3__117basic_string_viewIcNS7_11char_traitsIcEEEEEENS0_13scan_expectedINS7_4pairIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT_EEEElEEEESF_lRKNS0_6detail9fill_typeEbEUlcE_SP_LPv0EEEOSF_ENKUlNS1_12fnref_detail4base7storageEcE_clESV_c _ZZN3scn2v34impl12function_refIFbcES3_EC1IZNS1_34parse_integer_digits_without_thsepINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSE_EENS1_15take_width_viewINSA_ISE_SE_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS7_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESP_iEUlcE_SV_LPv0EEEOSP_ENKUlNS1_12fnref_detail4base7storageEcE_clES10_c Line | Count | Source | 743 | 796 | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 796 | cvref<T> obj = *get<T>(fn); | 745 | 796 | if constexpr (std::is_void_v<R>) { | 746 | 796 | obj(static_cast<decltype(args)>(args)...); | 747 | 796 | } | 748 | 796 | else { | 749 | 796 | return obj(static_cast<decltype(args)>(args)...); | 750 | 796 | } | 751 | 796 | }), |
_ZZN3scn2v34impl12function_refIFbcES3_EC1IRKZNS1_9skip_fillINS0_6ranges6detail9subrange_8subrangeIPKcSC_EEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS7_5beginEEclsr3stdE7declvalIRT_EEEElEEEESH_lRKNS0_6detail9fill_typeEbEUlcE_SR_LPv0EEEOSH_ENKUlNS1_12fnref_detail4base7storageEcE_clESX_c Line | Count | Source | 743 | 2.10k | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 2.10k | cvref<T> obj = *get<T>(fn); | 745 | 2.10k | if constexpr (std::is_void_v<R>) { | 746 | 2.10k | obj(static_cast<decltype(args)>(args)...); | 747 | 2.10k | } | 748 | 2.10k | else { | 749 | 2.10k | return obj(static_cast<decltype(args)>(args)...); | 750 | 2.10k | } | 751 | 2.10k | }), |
_ZZN3scn2v34impl12function_refIFbDiES3_EC1IZNS1_24read_while_classic_spaceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSD_EEEEEEDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESI_EUlDiE_SN_LPv0EEEOSI_ENKUlNS1_12fnref_detail4base7storageEDiE_clESS_Di Line | Count | Source | 743 | 1.30k | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 1.30k | cvref<T> obj = *get<T>(fn); | 745 | 1.30k | if constexpr (std::is_void_v<R>) { | 746 | 1.30k | obj(static_cast<decltype(args)>(args)...); | 747 | 1.30k | } | 748 | 1.30k | else { | 749 | 1.30k | return obj(static_cast<decltype(args)>(args)...); | 750 | 1.30k | } | 751 | 1.30k | }), |
Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS0_6ranges18default_sentinel_tEEEEERNS1_12float_readerIcEENS1_15take_width_viewINSA_6detail9subrange_8subrangeIS9_SB_EEEENS6_10locale_refEESO_EC1IZNS1_21reader_impl_for_floatIcE10read_specsISM_fEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESW_RKNS6_12format_specsERT0_SN_EUlSG_DpOT_E_S1A_LPv0EEEOSW_ENKUlNS1_12fnref_detail4base7storageESG_SM_SN_E_clES1F_SG_SM_SN_ Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbcES3_EC1IZNS1_12float_readerIcE8read_nanINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEENS1_15take_width_viewINSC_ISI_SJ_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_EUlcE_S10_LPv0EEEOSU_ENKUlNS1_12fnref_detail4base7storageEcE_clES15_c Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbcES3_EC1IZNS1_12float_readerIcE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEENS1_15take_width_viewINSC_ISI_SJ_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_bEUlcE_S10_LPv0EEEOSU_ENKUlNS1_12fnref_detail4base7storageEcE_clES15_c Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbcES3_EC1IZNS1_12float_readerIcE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEENS1_15take_width_viewINSC_ISI_SJ_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_bEUlcE0_S10_LPv0EEEOSU_ENKUlNS1_12fnref_detail4base7storageEcE_clES15_c Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbcES3_EC1IZNS1_12float_readerIcE13read_exponentINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEENS1_15take_width_viewINSC_ISI_SJ_EEE8sentinelILb1EEEEEEEDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEST_NSR_17basic_string_viewIcNSR_11char_traitsIcEEEEEUlcE_S12_LPv0EEEOST_ENKUlNS1_12fnref_detail4base7storageEcE_clES17_c Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbcES3_EC1IZNS1_12float_readerIcE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEENS1_15take_width_viewINSC_ISI_SJ_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_bEUlcE_S10_LPv0EEEOSU_ENKUlNS1_12fnref_detail4base7storageEcE_clES15_c Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbcES3_EC1IZNS1_12float_readerIcE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEENS1_15take_width_viewINSC_ISI_SJ_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_bEUlcE0_S10_LPv0EEEOSU_ENKUlNS1_12fnref_detail4base7storageEcE_clES15_c Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS0_6ranges18default_sentinel_tEEEEERNS1_12float_readerIcEENS1_15take_width_viewINSA_6detail9subrange_8subrangeIS9_SB_EEEENS6_10locale_refEESO_EC1IZNS1_21reader_impl_for_floatIcE10read_specsISM_fEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESW_RKNS6_12format_specsERT0_SN_EUlSG_DpOT_E0_S1A_LPv0EEEOSW_ENKUlNS1_12fnref_detail4base7storageESG_SM_SN_E_clES1F_SG_SM_SN_ Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedINS0_6detail17basic_scan_bufferIcE16forward_iteratorEEERNS1_12float_readerIcEENS0_6ranges6detail9subrange_8subrangeIS7_NSC_18default_sentinel_tEEENS4_10locale_refEESJ_EC1IZNS1_21reader_impl_for_floatIcE10read_specsISH_fEENS3_IDTclL_ZNSC_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_RKNS4_12format_specsERT0_SI_EUlSB_DpOT_E_S15_LPv0EEEOSR_ENKUlNS1_12fnref_detail4base7storageESB_SH_SI_E_clES1A_SB_SH_SI_ Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbcES3_EC1IZNS1_12float_readerIcE8read_nanINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_EUlcE_SS_LPv0EEEOSM_ENKUlNS1_12fnref_detail4base7storageEcE_clESX_c Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbcES3_EC1IZNS1_12float_readerIcE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_bEUlcE_SS_LPv0EEEOSM_ENKUlNS1_12fnref_detail4base7storageEcE_clESX_c Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbcES3_EC1IZNS1_12float_readerIcE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_bEUlcE0_SS_LPv0EEEOSM_ENKUlNS1_12fnref_detail4base7storageEcE_clESX_c Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbcES3_EC1IZNS1_12float_readerIcE13read_exponentINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEEEDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESL_NSJ_17basic_string_viewIcNSJ_11char_traitsIcEEEEEUlcE_SU_LPv0EEEOSL_ENKUlNS1_12fnref_detail4base7storageEcE_clESZ_c Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbcES3_EC1IZNS1_12float_readerIcE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_bEUlcE_SS_LPv0EEEOSM_ENKUlNS1_12fnref_detail4base7storageEcE_clESX_c Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbcES3_EC1IZNS1_12float_readerIcE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_bEUlcE0_SS_LPv0EEEOSM_ENKUlNS1_12fnref_detail4base7storageEcE_clESX_c Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedINS0_6detail17basic_scan_bufferIcE16forward_iteratorEEERNS1_12float_readerIcEENS0_6ranges6detail9subrange_8subrangeIS7_NSC_18default_sentinel_tEEENS4_10locale_refEESJ_EC1IZNS1_21reader_impl_for_floatIcE10read_specsISH_fEENS3_IDTclL_ZNSC_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_RKNS4_12format_specsERT0_SI_EUlSB_DpOT_E0_S15_LPv0EEEOSR_ENKUlNS1_12fnref_detail4base7storageESB_SH_SI_E_clES1A_SB_SH_SI_ Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcS7_EEEERNS1_12float_readerIcEENS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIS7_S7_EEEENS0_6detail10locale_refEESM_EC1IZNS1_21reader_impl_for_floatIcE10read_specsISJ_fEENS3_IDTclL_ZNSE_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_RKNSK_12format_specsERT0_SL_EUlSC_DpOT_E_S18_LPv0EEEOSU_ENKUlNS1_12fnref_detail4base7storageESC_SJ_SL_E_clES1D_SC_SJ_SL_ Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbcES3_EC1IZNS1_12float_readerIcE8read_nanINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSG_EENS1_15take_width_viewINSC_ISG_SG_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_EUlcE_SX_LPv0EEEOSR_ENKUlNS1_12fnref_detail4base7storageEcE_clES12_c Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbcES3_EC1IZNS1_12float_readerIcE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSG_EENS1_15take_width_viewINSC_ISG_SG_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_bEUlcE_SX_LPv0EEEOSR_ENKUlNS1_12fnref_detail4base7storageEcE_clES12_c _ZZN3scn2v34impl12function_refIFbcES3_EC1IZNS1_12float_readerIcE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSG_EENS1_15take_width_viewINSC_ISG_SG_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_bEUlcE0_SX_LPv0EEEOSR_ENKUlNS1_12fnref_detail4base7storageEcE_clES12_c Line | Count | Source | 743 | 6 | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 6 | cvref<T> obj = *get<T>(fn); | 745 | 6 | if constexpr (std::is_void_v<R>) { | 746 | 6 | obj(static_cast<decltype(args)>(args)...); | 747 | 6 | } | 748 | 6 | else { | 749 | 6 | return obj(static_cast<decltype(args)>(args)...); | 750 | 6 | } | 751 | 6 | }), |
Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbcES3_EC1IZNS1_12float_readerIcE13read_exponentINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSG_EENS1_15take_width_viewINSC_ISG_SG_EEE8sentinelILb1EEEEEEEDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESQ_NSO_17basic_string_viewIcNSO_11char_traitsIcEEEEEUlcE_SZ_LPv0EEEOSQ_ENKUlNS1_12fnref_detail4base7storageEcE_clES14_c Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbcES3_EC1IZNS1_12float_readerIcE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSG_EENS1_15take_width_viewINSC_ISG_SG_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_bEUlcE_SX_LPv0EEEOSR_ENKUlNS1_12fnref_detail4base7storageEcE_clES12_c _ZZN3scn2v34impl12function_refIFbcES3_EC1IZNS1_12float_readerIcE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSG_EENS1_15take_width_viewINSC_ISG_SG_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_bEUlcE0_SX_LPv0EEEOSR_ENKUlNS1_12fnref_detail4base7storageEcE_clES12_c Line | Count | Source | 743 | 264 | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 264 | cvref<T> obj = *get<T>(fn); | 745 | 264 | if constexpr (std::is_void_v<R>) { | 746 | 264 | obj(static_cast<decltype(args)>(args)...); | 747 | 264 | } | 748 | 264 | else { | 749 | 264 | return obj(static_cast<decltype(args)>(args)...); | 750 | 264 | } | 751 | 264 | }), |
Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcS7_EEEERNS1_12float_readerIcEENS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIS7_S7_EEEENS0_6detail10locale_refEESM_EC1IZNS1_21reader_impl_for_floatIcE10read_specsISJ_fEENS3_IDTclL_ZNSE_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_RKNSK_12format_specsERT0_SL_EUlSC_DpOT_E0_S18_LPv0EEEOSU_ENKUlNS1_12fnref_detail4base7storageESC_SJ_SL_E_clES1D_SC_SJ_SL_ Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedIPKcEERNS1_12float_readerIcEENS0_6ranges6detail9subrange_8subrangeIS5_S5_EENS0_6detail10locale_refEESH_EC1IZNS1_21reader_impl_for_floatIcE10read_specsISE_fEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESP_RKNSF_12format_specsERT0_SG_EUlS9_DpOT_E_S13_LPv0EEEOSP_ENKUlNS1_12fnref_detail4base7storageES9_SE_SG_E_clES18_S9_SE_SG_ Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbcES3_EC1IZNS1_12float_readerIcE8read_nanINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_EUlcE_SP_LPv0EEEOSJ_ENKUlNS1_12fnref_detail4base7storageEcE_clESU_c Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbcES3_EC1IZNS1_12float_readerIcE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_bEUlcE_SP_LPv0EEEOSJ_ENKUlNS1_12fnref_detail4base7storageEcE_clESU_c Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbcES3_EC1IZNS1_12float_readerIcE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_bEUlcE0_SP_LPv0EEEOSJ_ENKUlNS1_12fnref_detail4base7storageEcE_clESU_c Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbcES3_EC1IZNS1_12float_readerIcE13read_exponentINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEEEDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESI_NSG_17basic_string_viewIcNSG_11char_traitsIcEEEEEUlcE_SR_LPv0EEEOSI_ENKUlNS1_12fnref_detail4base7storageEcE_clESW_c Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbcES3_EC1IZNS1_12float_readerIcE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_bEUlcE_SP_LPv0EEEOSJ_ENKUlNS1_12fnref_detail4base7storageEcE_clESU_c _ZZN3scn2v34impl12function_refIFbcES3_EC1IZNS1_12float_readerIcE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_bEUlcE0_SP_LPv0EEEOSJ_ENKUlNS1_12fnref_detail4base7storageEcE_clESU_c Line | Count | Source | 743 | 28 | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 28 | cvref<T> obj = *get<T>(fn); | 745 | 28 | if constexpr (std::is_void_v<R>) { | 746 | 28 | obj(static_cast<decltype(args)>(args)...); | 747 | 28 | } | 748 | 28 | else { | 749 | 28 | return obj(static_cast<decltype(args)>(args)...); | 750 | 28 | } | 751 | 28 | }), |
Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedIPKcEERNS1_12float_readerIcEENS0_6ranges6detail9subrange_8subrangeIS5_S5_EENS0_6detail10locale_refEESH_EC1IZNS1_21reader_impl_for_floatIcE10read_specsISE_fEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESP_RKNSF_12format_specsERT0_SG_EUlS9_DpOT_E0_S13_LPv0EEEOSP_ENKUlNS1_12fnref_detail4base7storageES9_SE_SG_E_clES18_S9_SE_SG_ Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS0_6ranges18default_sentinel_tEEEEERNS1_12float_readerIcEENS1_15take_width_viewINSA_6detail9subrange_8subrangeIS9_SB_EEEENS6_10locale_refEESO_EC1IZNS1_21reader_impl_for_floatIcE10read_specsISM_dEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESW_RKNS6_12format_specsERT0_SN_EUlSG_DpOT_E_S1A_LPv0EEEOSW_ENKUlNS1_12fnref_detail4base7storageESG_SM_SN_E_clES1F_SG_SM_SN_ Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS0_6ranges18default_sentinel_tEEEEERNS1_12float_readerIcEENS1_15take_width_viewINSA_6detail9subrange_8subrangeIS9_SB_EEEENS6_10locale_refEESO_EC1IZNS1_21reader_impl_for_floatIcE10read_specsISM_dEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESW_RKNS6_12format_specsERT0_SN_EUlSG_DpOT_E0_S1A_LPv0EEEOSW_ENKUlNS1_12fnref_detail4base7storageESG_SM_SN_E_clES1F_SG_SM_SN_ Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedINS0_6detail17basic_scan_bufferIcE16forward_iteratorEEERNS1_12float_readerIcEENS0_6ranges6detail9subrange_8subrangeIS7_NSC_18default_sentinel_tEEENS4_10locale_refEESJ_EC1IZNS1_21reader_impl_for_floatIcE10read_specsISH_dEENS3_IDTclL_ZNSC_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_RKNS4_12format_specsERT0_SI_EUlSB_DpOT_E_S15_LPv0EEEOSR_ENKUlNS1_12fnref_detail4base7storageESB_SH_SI_E_clES1A_SB_SH_SI_ Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedINS0_6detail17basic_scan_bufferIcE16forward_iteratorEEERNS1_12float_readerIcEENS0_6ranges6detail9subrange_8subrangeIS7_NSC_18default_sentinel_tEEENS4_10locale_refEESJ_EC1IZNS1_21reader_impl_for_floatIcE10read_specsISH_dEENS3_IDTclL_ZNSC_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_RKNS4_12format_specsERT0_SI_EUlSB_DpOT_E0_S15_LPv0EEEOSR_ENKUlNS1_12fnref_detail4base7storageESB_SH_SI_E_clES1A_SB_SH_SI_ _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcS7_EEEERNS1_12float_readerIcEENS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIS7_S7_EEEENS0_6detail10locale_refEESM_EC1IZNS1_21reader_impl_for_floatIcE10read_specsISJ_dEENS3_IDTclL_ZNSE_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_RKNSK_12format_specsERT0_SL_EUlSC_DpOT_E_S18_LPv0EEEOSU_ENKUlNS1_12fnref_detail4base7storageESC_SJ_SL_E_clES1D_SC_SJ_SL_ Line | Count | Source | 743 | 8 | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 8 | cvref<T> obj = *get<T>(fn); | 745 | 8 | if constexpr (std::is_void_v<R>) { | 746 | 8 | obj(static_cast<decltype(args)>(args)...); | 747 | 8 | } | 748 | 8 | else { | 749 | 8 | return obj(static_cast<decltype(args)>(args)...); | 750 | 8 | } | 751 | 8 | }), |
_ZZN3scn2v34impl12function_refIFNS0_13scan_expectedINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcS7_EEEERNS1_12float_readerIcEENS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIS7_S7_EEEENS0_6detail10locale_refEESM_EC1IZNS1_21reader_impl_for_floatIcE10read_specsISJ_dEENS3_IDTclL_ZNSE_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_RKNSK_12format_specsERT0_SL_EUlSC_DpOT_E0_S18_LPv0EEEOSU_ENKUlNS1_12fnref_detail4base7storageESC_SJ_SL_E_clES1D_SC_SJ_SL_ Line | Count | Source | 743 | 262 | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 262 | cvref<T> obj = *get<T>(fn); | 745 | 262 | if constexpr (std::is_void_v<R>) { | 746 | 262 | obj(static_cast<decltype(args)>(args)...); | 747 | 262 | } | 748 | 262 | else { | 749 | 262 | return obj(static_cast<decltype(args)>(args)...); | 750 | 262 | } | 751 | 262 | }), |
_ZZN3scn2v34impl12function_refIFNS0_13scan_expectedIPKcEERNS1_12float_readerIcEENS0_6ranges6detail9subrange_8subrangeIS5_S5_EENS0_6detail10locale_refEESH_EC1IZNS1_21reader_impl_for_floatIcE10read_specsISE_dEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESP_RKNSF_12format_specsERT0_SG_EUlS9_DpOT_E_S13_LPv0EEEOSP_ENKUlNS1_12fnref_detail4base7storageES9_SE_SG_E_clES18_S9_SE_SG_ Line | Count | Source | 743 | 10 | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 10 | cvref<T> obj = *get<T>(fn); | 745 | 10 | if constexpr (std::is_void_v<R>) { | 746 | 10 | obj(static_cast<decltype(args)>(args)...); | 747 | 10 | } | 748 | 10 | else { | 749 | 10 | return obj(static_cast<decltype(args)>(args)...); | 750 | 10 | } | 751 | 10 | }), |
_ZZN3scn2v34impl12function_refIFNS0_13scan_expectedIPKcEERNS1_12float_readerIcEENS0_6ranges6detail9subrange_8subrangeIS5_S5_EENS0_6detail10locale_refEESH_EC1IZNS1_21reader_impl_for_floatIcE10read_specsISE_dEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESP_RKNSF_12format_specsERT0_SG_EUlS9_DpOT_E0_S13_LPv0EEEOSP_ENKUlNS1_12fnref_detail4base7storageES9_SE_SG_E_clES18_S9_SE_SG_ Line | Count | Source | 743 | 246 | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 246 | cvref<T> obj = *get<T>(fn); | 745 | 246 | if constexpr (std::is_void_v<R>) { | 746 | 246 | obj(static_cast<decltype(args)>(args)...); | 747 | 246 | } | 748 | 246 | else { | 749 | 246 | return obj(static_cast<decltype(args)>(args)...); | 750 | 246 | } | 751 | 246 | }), |
Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS0_6ranges18default_sentinel_tEEEEERNS1_12float_readerIcEENS1_15take_width_viewINSA_6detail9subrange_8subrangeIS9_SB_EEEENS6_10locale_refEESO_EC1IZNS1_21reader_impl_for_floatIcE10read_specsISM_eEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESW_RKNS6_12format_specsERT0_SN_EUlSG_DpOT_E_S1A_LPv0EEEOSW_ENKUlNS1_12fnref_detail4base7storageESG_SM_SN_E_clES1F_SG_SM_SN_ Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS0_6ranges18default_sentinel_tEEEEERNS1_12float_readerIcEENS1_15take_width_viewINSA_6detail9subrange_8subrangeIS9_SB_EEEENS6_10locale_refEESO_EC1IZNS1_21reader_impl_for_floatIcE10read_specsISM_eEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESW_RKNS6_12format_specsERT0_SN_EUlSG_DpOT_E0_S1A_LPv0EEEOSW_ENKUlNS1_12fnref_detail4base7storageESG_SM_SN_E_clES1F_SG_SM_SN_ Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedINS0_6detail17basic_scan_bufferIcE16forward_iteratorEEERNS1_12float_readerIcEENS0_6ranges6detail9subrange_8subrangeIS7_NSC_18default_sentinel_tEEENS4_10locale_refEESJ_EC1IZNS1_21reader_impl_for_floatIcE10read_specsISH_eEENS3_IDTclL_ZNSC_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_RKNS4_12format_specsERT0_SI_EUlSB_DpOT_E_S15_LPv0EEEOSR_ENKUlNS1_12fnref_detail4base7storageESB_SH_SI_E_clES1A_SB_SH_SI_ Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedINS0_6detail17basic_scan_bufferIcE16forward_iteratorEEERNS1_12float_readerIcEENS0_6ranges6detail9subrange_8subrangeIS7_NSC_18default_sentinel_tEEENS4_10locale_refEESJ_EC1IZNS1_21reader_impl_for_floatIcE10read_specsISH_eEENS3_IDTclL_ZNSC_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_RKNS4_12format_specsERT0_SI_EUlSB_DpOT_E0_S15_LPv0EEEOSR_ENKUlNS1_12fnref_detail4base7storageESB_SH_SI_E_clES1A_SB_SH_SI_ Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcS7_EEEERNS1_12float_readerIcEENS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIS7_S7_EEEENS0_6detail10locale_refEESM_EC1IZNS1_21reader_impl_for_floatIcE10read_specsISJ_eEENS3_IDTclL_ZNSE_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_RKNSK_12format_specsERT0_SL_EUlSC_DpOT_E_S18_LPv0EEEOSU_ENKUlNS1_12fnref_detail4base7storageESC_SJ_SL_E_clES1D_SC_SJ_SL_ Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcS7_EEEERNS1_12float_readerIcEENS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIS7_S7_EEEENS0_6detail10locale_refEESM_EC1IZNS1_21reader_impl_for_floatIcE10read_specsISJ_eEENS3_IDTclL_ZNSE_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_RKNSK_12format_specsERT0_SL_EUlSC_DpOT_E0_S18_LPv0EEEOSU_ENKUlNS1_12fnref_detail4base7storageESC_SJ_SL_E_clES1D_SC_SJ_SL_ Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedIPKcEERNS1_12float_readerIcEENS0_6ranges6detail9subrange_8subrangeIS5_S5_EENS0_6detail10locale_refEESH_EC1IZNS1_21reader_impl_for_floatIcE10read_specsISE_eEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESP_RKNSF_12format_specsERT0_SG_EUlS9_DpOT_E_S13_LPv0EEEOSP_ENKUlNS1_12fnref_detail4base7storageES9_SE_SG_E_clES18_S9_SE_SG_ Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedIPKcEERNS1_12float_readerIcEENS0_6ranges6detail9subrange_8subrangeIS5_S5_EENS0_6detail10locale_refEESH_EC1IZNS1_21reader_impl_for_floatIcE10read_specsISE_eEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESP_RKNSF_12format_specsERT0_SG_EUlS9_DpOT_E0_S13_LPv0EEEOSP_ENKUlNS1_12fnref_detail4base7storageES9_SE_SG_E_clES18_S9_SE_SG_ Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbDiES3_EC1IZNS1_24read_until_classic_spaceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS8_18default_sentinel_tEEEEEEEDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESL_EUlDiE_SQ_LPv0EEEOSL_ENKUlNS1_12fnref_detail4base7storageEDiE_clESV_Di Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbcES3_EC1IZNS1_23custom_word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENSA_18default_sentinel_tEEEEEcEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_RKNSE_12format_specsERNSM_12basic_stringIT0_NSM_11char_traitsISY_EENSM_9allocatorISY_EEEEEUlcE_S15_LPv0EEEOSO_ENKUlNS1_12fnref_detail4base7storageEcE_clES1A_c Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbDiES3_EC1IRKZNKS1_25character_set_reader_implIcE16read_source_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENSA_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_NS7_12specs_helperEEUlDiE_SW_LPv0EEEOSO_ENKUlNS1_12fnref_detail4base7storageEDiE_clES12_Di Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbcES3_EC1IRKZNKS1_25character_set_reader_implIcE16read_source_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENSA_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_NS7_12specs_helperEEUlcE_SW_LPv0EEEOSO_ENKUlNS1_12fnref_detail4base7storageEcE_clES12_c Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbDiES3_EC1IZNS1_24read_until_classic_spaceINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS7_18default_sentinel_tEEEEEDTclL_ZNS7_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESJ_EUlDiE_SO_LPv0EEEOSJ_ENKUlNS1_12fnref_detail4base7storageEDiE_clEST_Di Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbcES3_EC1IZNS1_23custom_word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEcEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_RKNSD_12format_specsERNSK_12basic_stringIT0_NSK_11char_traitsISW_EENSK_9allocatorISW_EEEEEUlcE_S13_LPv0EEEOSM_ENKUlNS1_12fnref_detail4base7storageEcE_clES18_c Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbDiES3_EC1IRKZNKS1_25character_set_reader_implIcE16read_source_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_NS7_12specs_helperEEUlDiE_SU_LPv0EEEOSM_ENKUlNS1_12fnref_detail4base7storageEDiE_clES10_Di Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbcES3_EC1IRKZNKS1_25character_set_reader_implIcE16read_source_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_NS7_12specs_helperEEUlcE_SU_LPv0EEEOSM_ENKUlNS1_12fnref_detail4base7storageEcE_clES10_c _ZZN3scn2v34impl12function_refIFbDiES3_EC1IZNS1_24read_until_classic_spaceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSD_EEEEEEDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESI_EUlDiE_SN_LPv0EEEOSI_ENKUlNS1_12fnref_detail4base7storageEDiE_clESS_Di Line | Count | Source | 743 | 8.44k | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 8.44k | cvref<T> obj = *get<T>(fn); | 745 | 8.44k | if constexpr (std::is_void_v<R>) { | 746 | 8.44k | obj(static_cast<decltype(args)>(args)...); | 747 | 8.44k | } | 748 | 8.44k | else { | 749 | 8.44k | return obj(static_cast<decltype(args)>(args)...); | 750 | 8.44k | } | 751 | 8.44k | }), |
_ZZN3scn2v34impl12function_refIFbcES3_EC1IZNS1_23custom_word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSF_EEEEcEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNS0_6detail12format_specsERNSJ_12basic_stringIT0_NSJ_11char_traitsISW_EENSJ_9allocatorISW_EEEEEUlcE_S13_LPv0EEEOSL_ENKUlNS1_12fnref_detail4base7storageEcE_clES18_c Line | Count | Source | 743 | 654 | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 654 | cvref<T> obj = *get<T>(fn); | 745 | 654 | if constexpr (std::is_void_v<R>) { | 746 | 654 | obj(static_cast<decltype(args)>(args)...); | 747 | 654 | } | 748 | 654 | else { | 749 | 654 | return obj(static_cast<decltype(args)>(args)...); | 750 | 654 | } | 751 | 654 | }), |
_ZZN3scn2v34impl12function_refIFbDiES3_EC1IRKZNKS1_25character_set_reader_implIcE16read_source_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSF_EEEEEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_NS7_12specs_helperEEUlDiE_ST_LPv0EEEOSL_ENKUlNS1_12fnref_detail4base7storageEDiE_clESZ_Di Line | Count | Source | 743 | 19.4k | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 19.4k | cvref<T> obj = *get<T>(fn); | 745 | 19.4k | if constexpr (std::is_void_v<R>) { | 746 | 19.4k | obj(static_cast<decltype(args)>(args)...); | 747 | 19.4k | } | 748 | 19.4k | else { | 749 | 19.4k | return obj(static_cast<decltype(args)>(args)...); | 750 | 19.4k | } | 751 | 19.4k | }), |
_ZZN3scn2v34impl12function_refIFbcES3_EC1IRKZNKS1_25character_set_reader_implIcE16read_source_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSF_EEEEEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_NS7_12specs_helperEEUlcE_ST_LPv0EEEOSL_ENKUlNS1_12fnref_detail4base7storageEcE_clESZ_c Line | Count | Source | 743 | 6.15k | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 6.15k | cvref<T> obj = *get<T>(fn); | 745 | 6.15k | if constexpr (std::is_void_v<R>) { | 746 | 6.15k | obj(static_cast<decltype(args)>(args)...); | 747 | 6.15k | } | 748 | 6.15k | else { | 749 | 6.15k | return obj(static_cast<decltype(args)>(args)...); | 750 | 6.15k | } | 751 | 6.15k | }), |
_ZZN3scn2v34impl12function_refIFbcES3_EC1IZNS1_23custom_word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEcEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_RKNS0_6detail12format_specsERNSH_12basic_stringIT0_NSH_11char_traitsISU_EENSH_9allocatorISU_EEEEEUlcE_S11_LPv0EEEOSJ_ENKUlNS1_12fnref_detail4base7storageEcE_clES16_c Line | Count | Source | 743 | 442 | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 442 | cvref<T> obj = *get<T>(fn); | 745 | 442 | if constexpr (std::is_void_v<R>) { | 746 | 442 | obj(static_cast<decltype(args)>(args)...); | 747 | 442 | } | 748 | 442 | else { | 749 | 442 | return obj(static_cast<decltype(args)>(args)...); | 750 | 442 | } | 751 | 442 | }), |
_ZZN3scn2v34impl12function_refIFbDiES3_EC1IRKZNKS1_25character_set_reader_implIcE16read_source_implINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_NS7_12specs_helperEEUlDiE_SR_LPv0EEEOSJ_ENKUlNS1_12fnref_detail4base7storageEDiE_clESX_Di Line | Count | Source | 743 | 283k | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 283k | cvref<T> obj = *get<T>(fn); | 745 | 283k | if constexpr (std::is_void_v<R>) { | 746 | 283k | obj(static_cast<decltype(args)>(args)...); | 747 | 283k | } | 748 | 283k | else { | 749 | 283k | return obj(static_cast<decltype(args)>(args)...); | 750 | 283k | } | 751 | 283k | }), |
_ZZN3scn2v34impl12function_refIFbcES3_EC1IRKZNKS1_25character_set_reader_implIcE16read_source_implINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_NS7_12specs_helperEEUlcE_SR_LPv0EEEOSJ_ENKUlNS1_12fnref_detail4base7storageEcE_clESX_c Line | Count | Source | 743 | 3.55k | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 3.55k | cvref<T> obj = *get<T>(fn); | 745 | 3.55k | if constexpr (std::is_void_v<R>) { | 746 | 3.55k | obj(static_cast<decltype(args)>(args)...); | 747 | 3.55k | } | 748 | 3.55k | else { | 749 | 3.55k | return obj(static_cast<decltype(args)>(args)...); | 750 | 3.55k | } | 751 | 3.55k | }), |
Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbcES3_EC1IZNS1_23custom_word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENSA_18default_sentinel_tEEEEEwEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_RKNSE_12format_specsERNSM_12basic_stringIT0_NSM_11char_traitsISY_EENSM_9allocatorISY_EEEEEUlcE_S15_LPv0EEEOSO_ENKUlNS1_12fnref_detail4base7storageEcE_clES1A_c Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbcES3_EC1IZNS1_23custom_word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEwEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_RKNSD_12format_specsERNSK_12basic_stringIT0_NSK_11char_traitsISW_EENSK_9allocatorISW_EEEEEUlcE_S13_LPv0EEEOSM_ENKUlNS1_12fnref_detail4base7storageEcE_clES18_c _ZZN3scn2v34impl12function_refIFbcES3_EC1IZNS1_23custom_word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSF_EEEEwEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNS0_6detail12format_specsERNSJ_12basic_stringIT0_NSJ_11char_traitsISW_EENSJ_9allocatorISW_EEEEEUlcE_S13_LPv0EEEOSL_ENKUlNS1_12fnref_detail4base7storageEcE_clES18_c Line | Count | Source | 743 | 654 | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 654 | cvref<T> obj = *get<T>(fn); | 745 | 654 | if constexpr (std::is_void_v<R>) { | 746 | 654 | obj(static_cast<decltype(args)>(args)...); | 747 | 654 | } | 748 | 654 | else { | 749 | 654 | return obj(static_cast<decltype(args)>(args)...); | 750 | 654 | } | 751 | 654 | }), |
_ZZN3scn2v34impl12function_refIFbcES3_EC1IZNS1_23custom_word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEwEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_RKNS0_6detail12format_specsERNSH_12basic_stringIT0_NSH_11char_traitsISU_EENSH_9allocatorISU_EEEEEUlcE_S11_LPv0EEEOSJ_ENKUlNS1_12fnref_detail4base7storageEcE_clES16_c Line | Count | Source | 743 | 442 | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 442 | cvref<T> obj = *get<T>(fn); | 745 | 442 | if constexpr (std::is_void_v<R>) { | 746 | 442 | obj(static_cast<decltype(args)>(args)...); | 747 | 442 | } | 748 | 442 | else { | 749 | 442 | return obj(static_cast<decltype(args)>(args)...); | 750 | 442 | } | 751 | 442 | }), |
Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbcES3_EC1IZNS1_23custom_word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENSA_18default_sentinel_tEEEEEcEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_RKNSE_12format_specsERNSM_17basic_string_viewIT0_NSM_11char_traitsISY_EEEEEUlcE_S13_LPv0EEEOSO_ENKUlNS1_12fnref_detail4base7storageEcE_clES18_c Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbcES3_EC1IZNS1_23custom_word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEcEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_RKNSD_12format_specsERNSK_17basic_string_viewIT0_NSK_11char_traitsISW_EEEEEUlcE_S11_LPv0EEEOSM_ENKUlNS1_12fnref_detail4base7storageEcE_clES16_c _ZZN3scn2v34impl12function_refIFbcES3_EC1IZNS1_23custom_word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSF_EEEEcEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNS0_6detail12format_specsERNSJ_17basic_string_viewIT0_NSJ_11char_traitsISW_EEEEEUlcE_S11_LPv0EEEOSL_ENKUlNS1_12fnref_detail4base7storageEcE_clES16_c Line | Count | Source | 743 | 654 | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 654 | cvref<T> obj = *get<T>(fn); | 745 | 654 | if constexpr (std::is_void_v<R>) { | 746 | 654 | obj(static_cast<decltype(args)>(args)...); | 747 | 654 | } | 748 | 654 | else { | 749 | 654 | return obj(static_cast<decltype(args)>(args)...); | 750 | 654 | } | 751 | 654 | }), |
_ZZN3scn2v34impl12function_refIFbcES3_EC1IZNS1_23custom_word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEcEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_RKNS0_6detail12format_specsERNSH_17basic_string_viewIT0_NSH_11char_traitsISU_EEEEEUlcE_SZ_LPv0EEEOSJ_ENKUlNS1_12fnref_detail4base7storageEcE_clES14_c Line | Count | Source | 743 | 442 | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 442 | cvref<T> obj = *get<T>(fn); | 745 | 442 | if constexpr (std::is_void_v<R>) { | 746 | 442 | obj(static_cast<decltype(args)>(args)...); | 747 | 442 | } | 748 | 442 | else { | 749 | 442 | return obj(static_cast<decltype(args)>(args)...); | 750 | 442 | } | 751 | 442 | }), |
Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbcES3_EC1IZNS1_23custom_word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENSA_18default_sentinel_tEEEEEwEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_RKNSE_12format_specsERNSM_17basic_string_viewIT0_NSM_11char_traitsISY_EEEEEUlcE_S13_LPv0EEEOSO_ENKUlNS1_12fnref_detail4base7storageEcE_clES18_c Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbcES3_EC1IZNS1_23custom_word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEwEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_RKNSD_12format_specsERNSK_17basic_string_viewIT0_NSK_11char_traitsISW_EEEEEUlcE_S11_LPv0EEEOSM_ENKUlNS1_12fnref_detail4base7storageEcE_clES16_c Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbcES3_EC1IZNS1_23custom_word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSF_EEEEwEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNS0_6detail12format_specsERNSJ_17basic_string_viewIT0_NSJ_11char_traitsISW_EEEEEUlcE_S11_LPv0EEEOSL_ENKUlNS1_12fnref_detail4base7storageEcE_clES16_c Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbcES3_EC1IZNS1_23custom_word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEwEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_RKNS0_6detail12format_specsERNSH_17basic_string_viewIT0_NSH_11char_traitsISU_EEEEEUlcE_SZ_LPv0EEEOSJ_ENKUlNS1_12fnref_detail4base7storageEcE_clES14_c Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbDiES3_EC1IZNS1_24read_while_classic_spaceINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS7_18default_sentinel_tEEEEEDTclL_ZNS7_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESJ_EUlDiE_SO_LPv0EEEOSJ_ENKUlNS1_12fnref_detail4base7storageEDiE_clEST_Di scn::v3::impl::function_ref<bool (wchar_t), bool (wchar_t)>::function_ref<std::__1::__not_fn_t<scn::v3::impl::function_ref<bool (wchar_t), bool (wchar_t)> >, std::__1::__not_fn_t<scn::v3::impl::function_ref<bool (wchar_t), bool (wchar_t)> >, (void*)0>(std::__1::__not_fn_t<scn::v3::impl::function_ref<bool (wchar_t), bool (wchar_t)> >&&)::{lambda(scn::v3::impl::fnref_detail::base::storage, wchar_t)#1}::operator()(scn::v3::impl::fnref_detail::base::storage, wchar_t) constLine | Count | Source | 743 | 2.38k | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 2.38k | cvref<T> obj = *get<T>(fn); | 745 | 2.38k | if constexpr (std::is_void_v<R>) { | 746 | 2.38k | obj(static_cast<decltype(args)>(args)...); | 747 | 2.38k | } | 748 | 2.38k | else { | 749 | 2.38k | return obj(static_cast<decltype(args)>(args)...); | 750 | 2.38k | } | 751 | 2.38k | }), |
Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbwES3_EC1IRKZNS1_9skip_fillINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS8_18default_sentinel_tEEEEEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRT_EEEElEEEESM_lRKNSC_9fill_typeEbEUlwE_SV_LPv0EEEOSM_ENKUlNS1_12fnref_detail4base7storageEwE_clES11_w Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbDiES3_EC1IZNS1_24read_while_classic_spaceINS1_15take_width_viewINS7_INS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS8_18default_sentinel_tEEEEEEEEEDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESM_EUlDiE_SR_LPv0EEEOSM_ENKUlNS1_12fnref_detail4base7storageEDiE_clESW_Di Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbDiES3_EC1IZNS1_24read_while_classic_spaceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS8_18default_sentinel_tEEEEEEEDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESL_EUlDiE_SQ_LPv0EEEOSL_ENKUlNS1_12fnref_detail4base7storageEDiE_clESV_Di Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbwES3_EC1IRKZNS1_9skip_fillINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS7_18default_sentinel_tEEEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS7_5beginEEclsr3stdE7declvalIRT_EEEElEEEESK_lRKNSB_9fill_typeEbEUlwE_ST_LPv0EEEOSK_ENKUlNS1_12fnref_detail4base7storageEwE_clESZ_w Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbwES3_EC1IZNS1_34parse_integer_digits_without_thsepINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS7_18default_sentinel_tEEENS1_15take_width_viewINSA_ISG_SH_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS7_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESS_iEUlwE_SY_LPv0EEEOSS_ENKUlNS1_12fnref_detail4base7storageEwE_clES13_w Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbwES3_EC1IZNS1_34parse_integer_digits_without_thsepINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS7_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS7_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_iEUlwE_SQ_LPv0EEEOSK_ENKUlNS1_12fnref_detail4base7storageEwE_clESV_w scn::v3::impl::function_ref<void (char32_t), void (char32_t)>::function_ref<scn::v3::impl::calculate_text_width<wchar_t>(std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> >)::{lambda(char32_t)#1}, {lambda(char32_t)#1}, (void*)0>(scn::v3::impl::calculate_text_width<wchar_t>(std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> >)::{lambda(char32_t)#1}&&)::{lambda(scn::v3::impl::fnref_detail::base::storage, char32_t)#1}::operator()(scn::v3::impl::fnref_detail::base, char32_t) constLine | Count | Source | 743 | 5.96k | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 5.96k | cvref<T> obj = *get<T>(fn); | 745 | 5.96k | if constexpr (std::is_void_v<R>) { | 746 | 5.96k | obj(static_cast<decltype(args)>(args)...); | 747 | 5.96k | } | 748 | 5.96k | else { | 749 | 5.96k | return obj(static_cast<decltype(args)>(args)...); | 750 | 5.96k | } | 751 | 5.96k | }), |
Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbwES3_EC1IRKZNS1_9skip_fillINS1_15take_width_viewINSt3__117basic_string_viewIwNS8_11char_traitsIwEEEEEEEENS0_13scan_expectedINS8_4pairIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT_EEEElEEEESH_lRKNS0_6detail9fill_typeEbEUlwE_SR_LPv0EEEOSH_ENKUlNS1_12fnref_detail4base7storageEwE_clESX_w Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbDiES3_EC1IZNS1_24read_while_classic_spaceINS1_15take_width_viewINS7_INSt3__117basic_string_viewIwNS8_11char_traitsIwEEEEEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS8_9add_constIT_E4typeEEEEESH_EUlDiE_SM_LPv0EEEOSH_ENKUlNS1_12fnref_detail4base7storageEDiE_clESR_Di Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbDiES3_EC1IZNS1_24read_while_classic_spaceINS1_15take_width_viewINSt3__117basic_string_viewIwNS8_11char_traitsIwEEEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS8_9add_constIT_E4typeEEEEESG_EUlDiE_SL_LPv0EEEOSG_ENKUlNS1_12fnref_detail4base7storageEDiE_clESQ_Di Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbwES3_EC1IRKZNS1_9skip_fillINSt3__117basic_string_viewIwNS7_11char_traitsIwEEEEEENS0_13scan_expectedINS7_4pairIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT_EEEElEEEESF_lRKNS0_6detail9fill_typeEbEUlwE_SP_LPv0EEEOSF_ENKUlNS1_12fnref_detail4base7storageEwE_clESV_w _ZZN3scn2v34impl12function_refIFbDiES3_EC1IZNS1_24read_while_classic_spaceINSt3__117basic_string_viewIwNS7_11char_traitsIwEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS7_9add_constIT_E4typeEEEEESE_EUlDiE_SJ_LPv0EEEOSE_ENKUlNS1_12fnref_detail4base7storageEDiE_clESO_Di Line | Count | Source | 743 | 88.7k | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 88.7k | cvref<T> obj = *get<T>(fn); | 745 | 88.7k | if constexpr (std::is_void_v<R>) { | 746 | 88.7k | obj(static_cast<decltype(args)>(args)...); | 747 | 88.7k | } | 748 | 88.7k | else { | 749 | 88.7k | return obj(static_cast<decltype(args)>(args)...); | 750 | 88.7k | } | 751 | 88.7k | }), |
_ZZN3scn2v34impl12function_refIFbwES3_EC1IZNS1_34parse_integer_digits_without_thsepINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSE_EENS1_15take_width_viewINSA_ISE_SE_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS7_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESP_iEUlwE_SV_LPv0EEEOSP_ENKUlNS1_12fnref_detail4base7storageEwE_clES10_w Line | Count | Source | 743 | 370 | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 370 | cvref<T> obj = *get<T>(fn); | 745 | 370 | if constexpr (std::is_void_v<R>) { | 746 | 370 | obj(static_cast<decltype(args)>(args)...); | 747 | 370 | } | 748 | 370 | else { | 749 | 370 | return obj(static_cast<decltype(args)>(args)...); | 750 | 370 | } | 751 | 370 | }), |
_ZZN3scn2v34impl12function_refIFbwES3_EC1IRKZNS1_9skip_fillINS0_6ranges6detail9subrange_8subrangeIPKwSC_EEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS7_5beginEEclsr3stdE7declvalIRT_EEEElEEEESH_lRKNS0_6detail9fill_typeEbEUlwE_SR_LPv0EEEOSH_ENKUlNS1_12fnref_detail4base7storageEwE_clESX_w Line | Count | Source | 743 | 514 | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 514 | cvref<T> obj = *get<T>(fn); | 745 | 514 | if constexpr (std::is_void_v<R>) { | 746 | 514 | obj(static_cast<decltype(args)>(args)...); | 747 | 514 | } | 748 | 514 | else { | 749 | 514 | return obj(static_cast<decltype(args)>(args)...); | 750 | 514 | } | 751 | 514 | }), |
_ZZN3scn2v34impl12function_refIFbDiES3_EC1IZNS1_24read_while_classic_spaceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSD_EEEEEEDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESI_EUlDiE_SN_LPv0EEEOSI_ENKUlNS1_12fnref_detail4base7storageEDiE_clESS_Di Line | Count | Source | 743 | 86 | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 86 | cvref<T> obj = *get<T>(fn); | 745 | 86 | if constexpr (std::is_void_v<R>) { | 746 | 86 | obj(static_cast<decltype(args)>(args)...); | 747 | 86 | } | 748 | 86 | else { | 749 | 86 | return obj(static_cast<decltype(args)>(args)...); | 750 | 86 | } | 751 | 86 | }), |
_ZZN3scn2v34impl12function_refIFbDiES3_EC1IZNS1_24read_while_classic_spaceINS0_6ranges6detail9subrange_8subrangeIPKwSC_EEEEDTclL_ZNS7_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESG_EUlDiE_SL_LPv0EEEOSG_ENKUlNS1_12fnref_detail4base7storageEDiE_clESQ_Di Line | Count | Source | 743 | 429k | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 429k | cvref<T> obj = *get<T>(fn); | 745 | 429k | if constexpr (std::is_void_v<R>) { | 746 | 429k | obj(static_cast<decltype(args)>(args)...); | 747 | 429k | } | 748 | 429k | else { | 749 | 429k | return obj(static_cast<decltype(args)>(args)...); | 750 | 429k | } | 751 | 429k | }), |
Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS0_6ranges18default_sentinel_tEEEEERNS1_12float_readerIwEENS1_15take_width_viewINSA_6detail9subrange_8subrangeIS9_SB_EEEENS6_10locale_refEESO_EC1IZNS1_21reader_impl_for_floatIwE10read_specsISM_fEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESW_RKNS6_12format_specsERT0_SN_EUlSG_DpOT_E_S1A_LPv0EEEOSW_ENKUlNS1_12fnref_detail4base7storageESG_SM_SN_E_clES1F_SG_SM_SN_ Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbwES3_EC1IZNS1_12float_readerIwE8read_nanINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEENS1_15take_width_viewINSC_ISI_SJ_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_EUlwE_S10_LPv0EEEOSU_ENKUlNS1_12fnref_detail4base7storageEwE_clES15_w Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbwES3_EC1IZNS1_12float_readerIwE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEENS1_15take_width_viewINSC_ISI_SJ_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_bEUlwE_S10_LPv0EEEOSU_ENKUlNS1_12fnref_detail4base7storageEwE_clES15_w Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbwES3_EC1IZNS1_12float_readerIwE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEENS1_15take_width_viewINSC_ISI_SJ_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_bEUlwE0_S10_LPv0EEEOSU_ENKUlNS1_12fnref_detail4base7storageEwE_clES15_w Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbwES3_EC1IZNS1_12float_readerIwE13read_exponentINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEENS1_15take_width_viewINSC_ISI_SJ_EEE8sentinelILb1EEEEEEEDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEST_NSR_17basic_string_viewIcNSR_11char_traitsIcEEEEEUlwE_S12_LPv0EEEOST_ENKUlNS1_12fnref_detail4base7storageEwE_clES17_w Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbwES3_EC1IZNS1_12float_readerIwE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEENS1_15take_width_viewINSC_ISI_SJ_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_bEUlwE_S10_LPv0EEEOSU_ENKUlNS1_12fnref_detail4base7storageEwE_clES15_w Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbwES3_EC1IZNS1_12float_readerIwE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEENS1_15take_width_viewINSC_ISI_SJ_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_bEUlwE0_S10_LPv0EEEOSU_ENKUlNS1_12fnref_detail4base7storageEwE_clES15_w Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS0_6ranges18default_sentinel_tEEEEERNS1_12float_readerIwEENS1_15take_width_viewINSA_6detail9subrange_8subrangeIS9_SB_EEEENS6_10locale_refEESO_EC1IZNS1_21reader_impl_for_floatIwE10read_specsISM_fEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESW_RKNS6_12format_specsERT0_SN_EUlSG_DpOT_E0_S1A_LPv0EEEOSW_ENKUlNS1_12fnref_detail4base7storageESG_SM_SN_E_clES1F_SG_SM_SN_ Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedINS0_6detail17basic_scan_bufferIwE16forward_iteratorEEERNS1_12float_readerIwEENS0_6ranges6detail9subrange_8subrangeIS7_NSC_18default_sentinel_tEEENS4_10locale_refEESJ_EC1IZNS1_21reader_impl_for_floatIwE10read_specsISH_fEENS3_IDTclL_ZNSC_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_RKNS4_12format_specsERT0_SI_EUlSB_DpOT_E_S15_LPv0EEEOSR_ENKUlNS1_12fnref_detail4base7storageESB_SH_SI_E_clES1A_SB_SH_SI_ Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbwES3_EC1IZNS1_12float_readerIwE8read_nanINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_EUlwE_SS_LPv0EEEOSM_ENKUlNS1_12fnref_detail4base7storageEwE_clESX_w Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbwES3_EC1IZNS1_12float_readerIwE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_bEUlwE_SS_LPv0EEEOSM_ENKUlNS1_12fnref_detail4base7storageEwE_clESX_w Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbwES3_EC1IZNS1_12float_readerIwE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_bEUlwE0_SS_LPv0EEEOSM_ENKUlNS1_12fnref_detail4base7storageEwE_clESX_w Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbwES3_EC1IZNS1_12float_readerIwE13read_exponentINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEEEDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESL_NSJ_17basic_string_viewIcNSJ_11char_traitsIcEEEEEUlwE_SU_LPv0EEEOSL_ENKUlNS1_12fnref_detail4base7storageEwE_clESZ_w Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbwES3_EC1IZNS1_12float_readerIwE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_bEUlwE_SS_LPv0EEEOSM_ENKUlNS1_12fnref_detail4base7storageEwE_clESX_w Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbwES3_EC1IZNS1_12float_readerIwE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_bEUlwE0_SS_LPv0EEEOSM_ENKUlNS1_12fnref_detail4base7storageEwE_clESX_w Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedINS0_6detail17basic_scan_bufferIwE16forward_iteratorEEERNS1_12float_readerIwEENS0_6ranges6detail9subrange_8subrangeIS7_NSC_18default_sentinel_tEEENS4_10locale_refEESJ_EC1IZNS1_21reader_impl_for_floatIwE10read_specsISH_fEENS3_IDTclL_ZNSC_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_RKNS4_12format_specsERT0_SI_EUlSB_DpOT_E0_S15_LPv0EEEOSR_ENKUlNS1_12fnref_detail4base7storageESB_SH_SI_E_clES1A_SB_SH_SI_ Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwS7_EEEERNS1_12float_readerIwEENS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIS7_S7_EEEENS0_6detail10locale_refEESM_EC1IZNS1_21reader_impl_for_floatIwE10read_specsISJ_fEENS3_IDTclL_ZNSE_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_RKNSK_12format_specsERT0_SL_EUlSC_DpOT_E_S18_LPv0EEEOSU_ENKUlNS1_12fnref_detail4base7storageESC_SJ_SL_E_clES1D_SC_SJ_SL_ Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbwES3_EC1IZNS1_12float_readerIwE8read_nanINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSG_EENS1_15take_width_viewINSC_ISG_SG_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_EUlwE_SX_LPv0EEEOSR_ENKUlNS1_12fnref_detail4base7storageEwE_clES12_w Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbwES3_EC1IZNS1_12float_readerIwE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSG_EENS1_15take_width_viewINSC_ISG_SG_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_bEUlwE_SX_LPv0EEEOSR_ENKUlNS1_12fnref_detail4base7storageEwE_clES12_w _ZZN3scn2v34impl12function_refIFbwES3_EC1IZNS1_12float_readerIwE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSG_EENS1_15take_width_viewINSC_ISG_SG_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_bEUlwE0_SX_LPv0EEEOSR_ENKUlNS1_12fnref_detail4base7storageEwE_clES12_w Line | Count | Source | 743 | 6 | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 6 | cvref<T> obj = *get<T>(fn); | 745 | 6 | if constexpr (std::is_void_v<R>) { | 746 | 6 | obj(static_cast<decltype(args)>(args)...); | 747 | 6 | } | 748 | 6 | else { | 749 | 6 | return obj(static_cast<decltype(args)>(args)...); | 750 | 6 | } | 751 | 6 | }), |
Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbwES3_EC1IZNS1_12float_readerIwE13read_exponentINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSG_EENS1_15take_width_viewINSC_ISG_SG_EEE8sentinelILb1EEEEEEEDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESQ_NSO_17basic_string_viewIcNSO_11char_traitsIcEEEEEUlwE_SZ_LPv0EEEOSQ_ENKUlNS1_12fnref_detail4base7storageEwE_clES14_w Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbwES3_EC1IZNS1_12float_readerIwE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSG_EENS1_15take_width_viewINSC_ISG_SG_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_bEUlwE_SX_LPv0EEEOSR_ENKUlNS1_12fnref_detail4base7storageEwE_clES12_w _ZZN3scn2v34impl12function_refIFbwES3_EC1IZNS1_12float_readerIwE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSG_EENS1_15take_width_viewINSC_ISG_SG_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_bEUlwE0_SX_LPv0EEEOSR_ENKUlNS1_12fnref_detail4base7storageEwE_clES12_w Line | Count | Source | 743 | 116 | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 116 | cvref<T> obj = *get<T>(fn); | 745 | 116 | if constexpr (std::is_void_v<R>) { | 746 | 116 | obj(static_cast<decltype(args)>(args)...); | 747 | 116 | } | 748 | 116 | else { | 749 | 116 | return obj(static_cast<decltype(args)>(args)...); | 750 | 116 | } | 751 | 116 | }), |
Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwS7_EEEERNS1_12float_readerIwEENS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIS7_S7_EEEENS0_6detail10locale_refEESM_EC1IZNS1_21reader_impl_for_floatIwE10read_specsISJ_fEENS3_IDTclL_ZNSE_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_RKNSK_12format_specsERT0_SL_EUlSC_DpOT_E0_S18_LPv0EEEOSU_ENKUlNS1_12fnref_detail4base7storageESC_SJ_SL_E_clES1D_SC_SJ_SL_ Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedIPKwEERNS1_12float_readerIwEENS0_6ranges6detail9subrange_8subrangeIS5_S5_EENS0_6detail10locale_refEESH_EC1IZNS1_21reader_impl_for_floatIwE10read_specsISE_fEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESP_RKNSF_12format_specsERT0_SG_EUlS9_DpOT_E_S13_LPv0EEEOSP_ENKUlNS1_12fnref_detail4base7storageES9_SE_SG_E_clES18_S9_SE_SG_ Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbwES3_EC1IZNS1_12float_readerIwE8read_nanINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_EUlwE_SP_LPv0EEEOSJ_ENKUlNS1_12fnref_detail4base7storageEwE_clESU_w Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbwES3_EC1IZNS1_12float_readerIwE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_bEUlwE_SP_LPv0EEEOSJ_ENKUlNS1_12fnref_detail4base7storageEwE_clESU_w Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbwES3_EC1IZNS1_12float_readerIwE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_bEUlwE0_SP_LPv0EEEOSJ_ENKUlNS1_12fnref_detail4base7storageEwE_clESU_w Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbwES3_EC1IZNS1_12float_readerIwE13read_exponentINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEEEDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESI_NSG_17basic_string_viewIcNSG_11char_traitsIcEEEEEUlwE_SR_LPv0EEEOSI_ENKUlNS1_12fnref_detail4base7storageEwE_clESW_w Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbwES3_EC1IZNS1_12float_readerIwE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_bEUlwE_SP_LPv0EEEOSJ_ENKUlNS1_12fnref_detail4base7storageEwE_clESU_w _ZZN3scn2v34impl12function_refIFbwES3_EC1IZNS1_12float_readerIwE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_bEUlwE0_SP_LPv0EEEOSJ_ENKUlNS1_12fnref_detail4base7storageEwE_clESU_w Line | Count | Source | 743 | 6 | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 6 | cvref<T> obj = *get<T>(fn); | 745 | 6 | if constexpr (std::is_void_v<R>) { | 746 | 6 | obj(static_cast<decltype(args)>(args)...); | 747 | 6 | } | 748 | 6 | else { | 749 | 6 | return obj(static_cast<decltype(args)>(args)...); | 750 | 6 | } | 751 | 6 | }), |
Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedIPKwEERNS1_12float_readerIwEENS0_6ranges6detail9subrange_8subrangeIS5_S5_EENS0_6detail10locale_refEESH_EC1IZNS1_21reader_impl_for_floatIwE10read_specsISE_fEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESP_RKNSF_12format_specsERT0_SG_EUlS9_DpOT_E0_S13_LPv0EEEOSP_ENKUlNS1_12fnref_detail4base7storageES9_SE_SG_E_clES18_S9_SE_SG_ Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS0_6ranges18default_sentinel_tEEEEERNS1_12float_readerIwEENS1_15take_width_viewINSA_6detail9subrange_8subrangeIS9_SB_EEEENS6_10locale_refEESO_EC1IZNS1_21reader_impl_for_floatIwE10read_specsISM_dEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESW_RKNS6_12format_specsERT0_SN_EUlSG_DpOT_E_S1A_LPv0EEEOSW_ENKUlNS1_12fnref_detail4base7storageESG_SM_SN_E_clES1F_SG_SM_SN_ Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS0_6ranges18default_sentinel_tEEEEERNS1_12float_readerIwEENS1_15take_width_viewINSA_6detail9subrange_8subrangeIS9_SB_EEEENS6_10locale_refEESO_EC1IZNS1_21reader_impl_for_floatIwE10read_specsISM_dEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESW_RKNS6_12format_specsERT0_SN_EUlSG_DpOT_E0_S1A_LPv0EEEOSW_ENKUlNS1_12fnref_detail4base7storageESG_SM_SN_E_clES1F_SG_SM_SN_ Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedINS0_6detail17basic_scan_bufferIwE16forward_iteratorEEERNS1_12float_readerIwEENS0_6ranges6detail9subrange_8subrangeIS7_NSC_18default_sentinel_tEEENS4_10locale_refEESJ_EC1IZNS1_21reader_impl_for_floatIwE10read_specsISH_dEENS3_IDTclL_ZNSC_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_RKNS4_12format_specsERT0_SI_EUlSB_DpOT_E_S15_LPv0EEEOSR_ENKUlNS1_12fnref_detail4base7storageESB_SH_SI_E_clES1A_SB_SH_SI_ Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedINS0_6detail17basic_scan_bufferIwE16forward_iteratorEEERNS1_12float_readerIwEENS0_6ranges6detail9subrange_8subrangeIS7_NSC_18default_sentinel_tEEENS4_10locale_refEESJ_EC1IZNS1_21reader_impl_for_floatIwE10read_specsISH_dEENS3_IDTclL_ZNSC_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_RKNS4_12format_specsERT0_SI_EUlSB_DpOT_E0_S15_LPv0EEEOSR_ENKUlNS1_12fnref_detail4base7storageESB_SH_SI_E_clES1A_SB_SH_SI_ _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwS7_EEEERNS1_12float_readerIwEENS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIS7_S7_EEEENS0_6detail10locale_refEESM_EC1IZNS1_21reader_impl_for_floatIwE10read_specsISJ_dEENS3_IDTclL_ZNSE_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_RKNSK_12format_specsERT0_SL_EUlSC_DpOT_E_S18_LPv0EEEOSU_ENKUlNS1_12fnref_detail4base7storageESC_SJ_SL_E_clES1D_SC_SJ_SL_ Line | Count | Source | 743 | 6 | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 6 | cvref<T> obj = *get<T>(fn); | 745 | 6 | if constexpr (std::is_void_v<R>) { | 746 | 6 | obj(static_cast<decltype(args)>(args)...); | 747 | 6 | } | 748 | 6 | else { | 749 | 6 | return obj(static_cast<decltype(args)>(args)...); | 750 | 6 | } | 751 | 6 | }), |
_ZZN3scn2v34impl12function_refIFNS0_13scan_expectedINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwS7_EEEERNS1_12float_readerIwEENS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIS7_S7_EEEENS0_6detail10locale_refEESM_EC1IZNS1_21reader_impl_for_floatIwE10read_specsISJ_dEENS3_IDTclL_ZNSE_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_RKNSK_12format_specsERT0_SL_EUlSC_DpOT_E0_S18_LPv0EEEOSU_ENKUlNS1_12fnref_detail4base7storageESC_SJ_SL_E_clES1D_SC_SJ_SL_ Line | Count | Source | 743 | 116 | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 116 | cvref<T> obj = *get<T>(fn); | 745 | 116 | if constexpr (std::is_void_v<R>) { | 746 | 116 | obj(static_cast<decltype(args)>(args)...); | 747 | 116 | } | 748 | 116 | else { | 749 | 116 | return obj(static_cast<decltype(args)>(args)...); | 750 | 116 | } | 751 | 116 | }), |
_ZZN3scn2v34impl12function_refIFNS0_13scan_expectedIPKwEERNS1_12float_readerIwEENS0_6ranges6detail9subrange_8subrangeIS5_S5_EENS0_6detail10locale_refEESH_EC1IZNS1_21reader_impl_for_floatIwE10read_specsISE_dEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESP_RKNSF_12format_specsERT0_SG_EUlS9_DpOT_E_S13_LPv0EEEOSP_ENKUlNS1_12fnref_detail4base7storageES9_SE_SG_E_clES18_S9_SE_SG_ Line | Count | Source | 743 | 6 | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 6 | cvref<T> obj = *get<T>(fn); | 745 | 6 | if constexpr (std::is_void_v<R>) { | 746 | 6 | obj(static_cast<decltype(args)>(args)...); | 747 | 6 | } | 748 | 6 | else { | 749 | 6 | return obj(static_cast<decltype(args)>(args)...); | 750 | 6 | } | 751 | 6 | }), |
_ZZN3scn2v34impl12function_refIFNS0_13scan_expectedIPKwEERNS1_12float_readerIwEENS0_6ranges6detail9subrange_8subrangeIS5_S5_EENS0_6detail10locale_refEESH_EC1IZNS1_21reader_impl_for_floatIwE10read_specsISE_dEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESP_RKNSF_12format_specsERT0_SG_EUlS9_DpOT_E0_S13_LPv0EEEOSP_ENKUlNS1_12fnref_detail4base7storageES9_SE_SG_E_clES18_S9_SE_SG_ Line | Count | Source | 743 | 320 | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 320 | cvref<T> obj = *get<T>(fn); | 745 | 320 | if constexpr (std::is_void_v<R>) { | 746 | 320 | obj(static_cast<decltype(args)>(args)...); | 747 | 320 | } | 748 | 320 | else { | 749 | 320 | return obj(static_cast<decltype(args)>(args)...); | 750 | 320 | } | 751 | 320 | }), |
Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS0_6ranges18default_sentinel_tEEEEERNS1_12float_readerIwEENS1_15take_width_viewINSA_6detail9subrange_8subrangeIS9_SB_EEEENS6_10locale_refEESO_EC1IZNS1_21reader_impl_for_floatIwE10read_specsISM_eEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESW_RKNS6_12format_specsERT0_SN_EUlSG_DpOT_E_S1A_LPv0EEEOSW_ENKUlNS1_12fnref_detail4base7storageESG_SM_SN_E_clES1F_SG_SM_SN_ Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS0_6ranges18default_sentinel_tEEEEERNS1_12float_readerIwEENS1_15take_width_viewINSA_6detail9subrange_8subrangeIS9_SB_EEEENS6_10locale_refEESO_EC1IZNS1_21reader_impl_for_floatIwE10read_specsISM_eEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESW_RKNS6_12format_specsERT0_SN_EUlSG_DpOT_E0_S1A_LPv0EEEOSW_ENKUlNS1_12fnref_detail4base7storageESG_SM_SN_E_clES1F_SG_SM_SN_ Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedINS0_6detail17basic_scan_bufferIwE16forward_iteratorEEERNS1_12float_readerIwEENS0_6ranges6detail9subrange_8subrangeIS7_NSC_18default_sentinel_tEEENS4_10locale_refEESJ_EC1IZNS1_21reader_impl_for_floatIwE10read_specsISH_eEENS3_IDTclL_ZNSC_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_RKNS4_12format_specsERT0_SI_EUlSB_DpOT_E_S15_LPv0EEEOSR_ENKUlNS1_12fnref_detail4base7storageESB_SH_SI_E_clES1A_SB_SH_SI_ Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedINS0_6detail17basic_scan_bufferIwE16forward_iteratorEEERNS1_12float_readerIwEENS0_6ranges6detail9subrange_8subrangeIS7_NSC_18default_sentinel_tEEENS4_10locale_refEESJ_EC1IZNS1_21reader_impl_for_floatIwE10read_specsISH_eEENS3_IDTclL_ZNSC_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_RKNS4_12format_specsERT0_SI_EUlSB_DpOT_E0_S15_LPv0EEEOSR_ENKUlNS1_12fnref_detail4base7storageESB_SH_SI_E_clES1A_SB_SH_SI_ Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwS7_EEEERNS1_12float_readerIwEENS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIS7_S7_EEEENS0_6detail10locale_refEESM_EC1IZNS1_21reader_impl_for_floatIwE10read_specsISJ_eEENS3_IDTclL_ZNSE_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_RKNSK_12format_specsERT0_SL_EUlSC_DpOT_E_S18_LPv0EEEOSU_ENKUlNS1_12fnref_detail4base7storageESC_SJ_SL_E_clES1D_SC_SJ_SL_ Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwS7_EEEERNS1_12float_readerIwEENS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIS7_S7_EEEENS0_6detail10locale_refEESM_EC1IZNS1_21reader_impl_for_floatIwE10read_specsISJ_eEENS3_IDTclL_ZNSE_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_RKNSK_12format_specsERT0_SL_EUlSC_DpOT_E0_S18_LPv0EEEOSU_ENKUlNS1_12fnref_detail4base7storageESC_SJ_SL_E_clES1D_SC_SJ_SL_ Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedIPKwEERNS1_12float_readerIwEENS0_6ranges6detail9subrange_8subrangeIS5_S5_EENS0_6detail10locale_refEESH_EC1IZNS1_21reader_impl_for_floatIwE10read_specsISE_eEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESP_RKNSF_12format_specsERT0_SG_EUlS9_DpOT_E_S13_LPv0EEEOSP_ENKUlNS1_12fnref_detail4base7storageES9_SE_SG_E_clES18_S9_SE_SG_ Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedIPKwEERNS1_12float_readerIwEENS0_6ranges6detail9subrange_8subrangeIS5_S5_EENS0_6detail10locale_refEESH_EC1IZNS1_21reader_impl_for_floatIwE10read_specsISE_eEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESP_RKNSF_12format_specsERT0_SG_EUlS9_DpOT_E0_S13_LPv0EEEOSP_ENKUlNS1_12fnref_detail4base7storageES9_SE_SG_E_clES18_S9_SE_SG_ Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbDiES3_EC1IZNS1_24read_until_classic_spaceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS8_18default_sentinel_tEEEEEEEDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESL_EUlDiE_SQ_LPv0EEEOSL_ENKUlNS1_12fnref_detail4base7storageEDiE_clESV_Di Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbwES3_EC1IZNS1_23custom_word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENSA_18default_sentinel_tEEEEEcEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_RKNSE_12format_specsERNSM_12basic_stringIT0_NSM_11char_traitsISY_EENSM_9allocatorISY_EEEEEUlwE_S15_LPv0EEEOSO_ENKUlNS1_12fnref_detail4base7storageEwE_clES1A_w Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbDiES3_EC1IRKZNKS1_25character_set_reader_implIwE16read_source_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENSA_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_NS7_12specs_helperEEUlDiE_SW_LPv0EEEOSO_ENKUlNS1_12fnref_detail4base7storageEDiE_clES12_Di Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbwES3_EC1IRKZNKS1_25character_set_reader_implIwE16read_source_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENSA_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_NS7_12specs_helperEEUlwE_SW_LPv0EEEOSO_ENKUlNS1_12fnref_detail4base7storageEwE_clES12_w Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbDiES3_EC1IZNS1_24read_until_classic_spaceINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS7_18default_sentinel_tEEEEEDTclL_ZNS7_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESJ_EUlDiE_SO_LPv0EEEOSJ_ENKUlNS1_12fnref_detail4base7storageEDiE_clEST_Di Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbwES3_EC1IZNS1_23custom_word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEcEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_RKNSD_12format_specsERNSK_12basic_stringIT0_NSK_11char_traitsISW_EENSK_9allocatorISW_EEEEEUlwE_S13_LPv0EEEOSM_ENKUlNS1_12fnref_detail4base7storageEwE_clES18_w Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbDiES3_EC1IRKZNKS1_25character_set_reader_implIwE16read_source_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_NS7_12specs_helperEEUlDiE_SU_LPv0EEEOSM_ENKUlNS1_12fnref_detail4base7storageEDiE_clES10_Di Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbwES3_EC1IRKZNKS1_25character_set_reader_implIwE16read_source_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_NS7_12specs_helperEEUlwE_SU_LPv0EEEOSM_ENKUlNS1_12fnref_detail4base7storageEwE_clES10_w _ZZN3scn2v34impl12function_refIFbDiES3_EC1IZNS1_24read_until_classic_spaceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSD_EEEEEEDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESI_EUlDiE_SN_LPv0EEEOSI_ENKUlNS1_12fnref_detail4base7storageEDiE_clESS_Di Line | Count | Source | 743 | 7.60k | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 7.60k | cvref<T> obj = *get<T>(fn); | 745 | 7.60k | if constexpr (std::is_void_v<R>) { | 746 | 7.60k | obj(static_cast<decltype(args)>(args)...); | 747 | 7.60k | } | 748 | 7.60k | else { | 749 | 7.60k | return obj(static_cast<decltype(args)>(args)...); | 750 | 7.60k | } | 751 | 7.60k | }), |
_ZZN3scn2v34impl12function_refIFbwES3_EC1IZNS1_23custom_word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSF_EEEEcEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNS0_6detail12format_specsERNSJ_12basic_stringIT0_NSJ_11char_traitsISW_EENSJ_9allocatorISW_EEEEEUlwE_S13_LPv0EEEOSL_ENKUlNS1_12fnref_detail4base7storageEwE_clES18_w Line | Count | Source | 743 | 350 | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 350 | cvref<T> obj = *get<T>(fn); | 745 | 350 | if constexpr (std::is_void_v<R>) { | 746 | 350 | obj(static_cast<decltype(args)>(args)...); | 747 | 350 | } | 748 | 350 | else { | 749 | 350 | return obj(static_cast<decltype(args)>(args)...); | 750 | 350 | } | 751 | 350 | }), |
Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbDiES3_EC1IRKZNKS1_25character_set_reader_implIwE16read_source_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSF_EEEEEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_NS7_12specs_helperEEUlDiE_ST_LPv0EEEOSL_ENKUlNS1_12fnref_detail4base7storageEDiE_clESZ_Di Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbwES3_EC1IRKZNKS1_25character_set_reader_implIwE16read_source_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSF_EEEEEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_NS7_12specs_helperEEUlwE_ST_LPv0EEEOSL_ENKUlNS1_12fnref_detail4base7storageEwE_clESZ_w _ZZN3scn2v34impl12function_refIFbDiES3_EC1IZNS1_24read_until_classic_spaceINS0_6ranges6detail9subrange_8subrangeIPKwSC_EEEEDTclL_ZNS7_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESG_EUlDiE_SL_LPv0EEEOSG_ENKUlNS1_12fnref_detail4base7storageEDiE_clESQ_Di Line | Count | Source | 743 | 225k | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 225k | cvref<T> obj = *get<T>(fn); | 745 | 225k | if constexpr (std::is_void_v<R>) { | 746 | 225k | obj(static_cast<decltype(args)>(args)...); | 747 | 225k | } | 748 | 225k | else { | 749 | 225k | return obj(static_cast<decltype(args)>(args)...); | 750 | 225k | } | 751 | 225k | }), |
_ZZN3scn2v34impl12function_refIFbwES3_EC1IZNS1_23custom_word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEcEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_RKNS0_6detail12format_specsERNSH_12basic_stringIT0_NSH_11char_traitsISU_EENSH_9allocatorISU_EEEEEUlwE_S11_LPv0EEEOSJ_ENKUlNS1_12fnref_detail4base7storageEwE_clES16_w Line | Count | Source | 743 | 410 | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 410 | cvref<T> obj = *get<T>(fn); | 745 | 410 | if constexpr (std::is_void_v<R>) { | 746 | 410 | obj(static_cast<decltype(args)>(args)...); | 747 | 410 | } | 748 | 410 | else { | 749 | 410 | return obj(static_cast<decltype(args)>(args)...); | 750 | 410 | } | 751 | 410 | }), |
_ZZN3scn2v34impl12function_refIFbDiES3_EC1IRKZNKS1_25character_set_reader_implIwE16read_source_implINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_NS7_12specs_helperEEUlDiE_SR_LPv0EEEOSJ_ENKUlNS1_12fnref_detail4base7storageEDiE_clESX_Di Line | Count | Source | 743 | 3.57k | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 3.57k | cvref<T> obj = *get<T>(fn); | 745 | 3.57k | if constexpr (std::is_void_v<R>) { | 746 | 3.57k | obj(static_cast<decltype(args)>(args)...); | 747 | 3.57k | } | 748 | 3.57k | else { | 749 | 3.57k | return obj(static_cast<decltype(args)>(args)...); | 750 | 3.57k | } | 751 | 3.57k | }), |
_ZZN3scn2v34impl12function_refIFbwES3_EC1IRKZNKS1_25character_set_reader_implIwE16read_source_implINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_NS7_12specs_helperEEUlwE_SR_LPv0EEEOSJ_ENKUlNS1_12fnref_detail4base7storageEwE_clESX_w Line | Count | Source | 743 | 1.18k | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 1.18k | cvref<T> obj = *get<T>(fn); | 745 | 1.18k | if constexpr (std::is_void_v<R>) { | 746 | 1.18k | obj(static_cast<decltype(args)>(args)...); | 747 | 1.18k | } | 748 | 1.18k | else { | 749 | 1.18k | return obj(static_cast<decltype(args)>(args)...); | 750 | 1.18k | } | 751 | 1.18k | }), |
Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbwES3_EC1IZNS1_23custom_word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENSA_18default_sentinel_tEEEEEwEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_RKNSE_12format_specsERNSM_12basic_stringIT0_NSM_11char_traitsISY_EENSM_9allocatorISY_EEEEEUlwE_S15_LPv0EEEOSO_ENKUlNS1_12fnref_detail4base7storageEwE_clES1A_w Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbwES3_EC1IZNS1_23custom_word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEwEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_RKNSD_12format_specsERNSK_12basic_stringIT0_NSK_11char_traitsISW_EENSK_9allocatorISW_EEEEEUlwE_S13_LPv0EEEOSM_ENKUlNS1_12fnref_detail4base7storageEwE_clES18_w _ZZN3scn2v34impl12function_refIFbwES3_EC1IZNS1_23custom_word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSF_EEEEwEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNS0_6detail12format_specsERNSJ_12basic_stringIT0_NSJ_11char_traitsISW_EENSJ_9allocatorISW_EEEEEUlwE_S13_LPv0EEEOSL_ENKUlNS1_12fnref_detail4base7storageEwE_clES18_w Line | Count | Source | 743 | 350 | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 350 | cvref<T> obj = *get<T>(fn); | 745 | 350 | if constexpr (std::is_void_v<R>) { | 746 | 350 | obj(static_cast<decltype(args)>(args)...); | 747 | 350 | } | 748 | 350 | else { | 749 | 350 | return obj(static_cast<decltype(args)>(args)...); | 750 | 350 | } | 751 | 350 | }), |
_ZZN3scn2v34impl12function_refIFbwES3_EC1IZNS1_23custom_word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEwEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_RKNS0_6detail12format_specsERNSH_12basic_stringIT0_NSH_11char_traitsISU_EENSH_9allocatorISU_EEEEEUlwE_S11_LPv0EEEOSJ_ENKUlNS1_12fnref_detail4base7storageEwE_clES16_w Line | Count | Source | 743 | 410 | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 410 | cvref<T> obj = *get<T>(fn); | 745 | 410 | if constexpr (std::is_void_v<R>) { | 746 | 410 | obj(static_cast<decltype(args)>(args)...); | 747 | 410 | } | 748 | 410 | else { | 749 | 410 | return obj(static_cast<decltype(args)>(args)...); | 750 | 410 | } | 751 | 410 | }), |
Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbwES3_EC1IZNS1_23custom_word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENSA_18default_sentinel_tEEEEEcEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_RKNSE_12format_specsERNSM_17basic_string_viewIT0_NSM_11char_traitsISY_EEEEEUlwE_S13_LPv0EEEOSO_ENKUlNS1_12fnref_detail4base7storageEwE_clES18_w Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbwES3_EC1IZNS1_23custom_word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEcEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_RKNSD_12format_specsERNSK_17basic_string_viewIT0_NSK_11char_traitsISW_EEEEEUlwE_S11_LPv0EEEOSM_ENKUlNS1_12fnref_detail4base7storageEwE_clES16_w Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbwES3_EC1IZNS1_23custom_word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSF_EEEEcEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNS0_6detail12format_specsERNSJ_17basic_string_viewIT0_NSJ_11char_traitsISW_EEEEEUlwE_S11_LPv0EEEOSL_ENKUlNS1_12fnref_detail4base7storageEwE_clES16_w Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbwES3_EC1IZNS1_23custom_word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEcEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_RKNS0_6detail12format_specsERNSH_17basic_string_viewIT0_NSH_11char_traitsISU_EEEEEUlwE_SZ_LPv0EEEOSJ_ENKUlNS1_12fnref_detail4base7storageEwE_clES14_w Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbwES3_EC1IZNS1_23custom_word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENSA_18default_sentinel_tEEEEEwEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_RKNSE_12format_specsERNSM_17basic_string_viewIT0_NSM_11char_traitsISY_EEEEEUlwE_S13_LPv0EEEOSO_ENKUlNS1_12fnref_detail4base7storageEwE_clES18_w Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbwES3_EC1IZNS1_23custom_word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEwEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_RKNSD_12format_specsERNSK_17basic_string_viewIT0_NSK_11char_traitsISW_EEEEEUlwE_S11_LPv0EEEOSM_ENKUlNS1_12fnref_detail4base7storageEwE_clES16_w _ZZN3scn2v34impl12function_refIFbwES3_EC1IZNS1_23custom_word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSF_EEEEwEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNS0_6detail12format_specsERNSJ_17basic_string_viewIT0_NSJ_11char_traitsISW_EEEEEUlwE_S11_LPv0EEEOSL_ENKUlNS1_12fnref_detail4base7storageEwE_clES16_w Line | Count | Source | 743 | 350 | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 350 | cvref<T> obj = *get<T>(fn); | 745 | 350 | if constexpr (std::is_void_v<R>) { | 746 | 350 | obj(static_cast<decltype(args)>(args)...); | 747 | 350 | } | 748 | 350 | else { | 749 | 350 | return obj(static_cast<decltype(args)>(args)...); | 750 | 350 | } | 751 | 350 | }), |
_ZZN3scn2v34impl12function_refIFbwES3_EC1IZNS1_23custom_word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEwEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_RKNS0_6detail12format_specsERNSH_17basic_string_viewIT0_NSH_11char_traitsISU_EEEEEUlwE_SZ_LPv0EEEOSJ_ENKUlNS1_12fnref_detail4base7storageEwE_clES14_w Line | Count | Source | 743 | 410 | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 410 | cvref<T> obj = *get<T>(fn); | 745 | 410 | if constexpr (std::is_void_v<R>) { | 746 | 410 | obj(static_cast<decltype(args)>(args)...); | 747 | 410 | } | 748 | 410 | else { | 749 | 410 | return obj(static_cast<decltype(args)>(args)...); | 750 | 410 | } | 751 | 410 | }), |
Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbDiES3_EC1IZNS1_24read_while_classic_spaceINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS7_18default_sentinel_tEEEEEDTclL_ZNS7_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESJ_EUlDiE_SO_LPv0EEEOSJ_ENKUlNS1_12fnref_detail4base7storageEDiE_clEST_Di Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFbDiES3_EC1IZNS1_24read_until_classic_spaceINSt3__117basic_string_viewIwNS7_11char_traitsIwEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS7_9add_constIT_E4typeEEEEESE_EUlDiE_SJ_LPv0EEEOSE_ENKUlNS1_12fnref_detail4base7storageEDiE_clESO_Di Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedIPKcEERNS1_12float_readerIcEENS0_6ranges6detail9subrange_8subrangeIS5_S5_EENS0_6detail10locale_refEESH_EC1IZNS1_21reader_impl_for_floatIcE12read_defaultISE_fEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESP_RT0_SG_EUlS9_DpOT_E_S10_LPv0EEEOSP_ENKUlNS1_12fnref_detail4base7storageES9_SE_SG_E_clES15_S9_SE_SG_ _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedIPKcEERNS1_12float_readerIcEENS0_6ranges6detail9subrange_8subrangeIS5_S5_EENS0_6detail10locale_refEESH_EC1IZNS1_21reader_impl_for_floatIcE12read_defaultISE_dEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESP_RT0_SG_EUlS9_DpOT_E_S10_LPv0EEEOSP_ENKUlNS1_12fnref_detail4base7storageES9_SE_SG_E_clES15_S9_SE_SG_ Line | Count | Source | 743 | 628 | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 628 | cvref<T> obj = *get<T>(fn); | 745 | 628 | if constexpr (std::is_void_v<R>) { | 746 | 628 | obj(static_cast<decltype(args)>(args)...); | 747 | 628 | } | 748 | 628 | else { | 749 | 628 | return obj(static_cast<decltype(args)>(args)...); | 750 | 628 | } | 751 | 628 | }), |
Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedIPKcEERNS1_12float_readerIcEENS0_6ranges6detail9subrange_8subrangeIS5_S5_EENS0_6detail10locale_refEESH_EC1IZNS1_21reader_impl_for_floatIcE12read_defaultISE_eEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESP_RT0_SG_EUlS9_DpOT_E_S10_LPv0EEEOSP_ENKUlNS1_12fnref_detail4base7storageES9_SE_SG_E_clES15_S9_SE_SG_ Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedINS0_6detail17basic_scan_bufferIcE16forward_iteratorEEERNS1_12float_readerIcEENS0_6ranges6detail9subrange_8subrangeIS7_NSC_18default_sentinel_tEEENS4_10locale_refEESJ_EC1IZNS1_21reader_impl_for_floatIcE12read_defaultISH_fEENS3_IDTclL_ZNSC_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_RT0_SI_EUlSB_DpOT_E_S12_LPv0EEEOSR_ENKUlNS1_12fnref_detail4base7storageESB_SH_SI_E_clES17_SB_SH_SI_ Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedINS0_6detail17basic_scan_bufferIcE16forward_iteratorEEERNS1_12float_readerIcEENS0_6ranges6detail9subrange_8subrangeIS7_NSC_18default_sentinel_tEEENS4_10locale_refEESJ_EC1IZNS1_21reader_impl_for_floatIcE12read_defaultISH_dEENS3_IDTclL_ZNSC_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_RT0_SI_EUlSB_DpOT_E_S12_LPv0EEEOSR_ENKUlNS1_12fnref_detail4base7storageESB_SH_SI_E_clES17_SB_SH_SI_ Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedINS0_6detail17basic_scan_bufferIcE16forward_iteratorEEERNS1_12float_readerIcEENS0_6ranges6detail9subrange_8subrangeIS7_NSC_18default_sentinel_tEEENS4_10locale_refEESJ_EC1IZNS1_21reader_impl_for_floatIcE12read_defaultISH_eEENS3_IDTclL_ZNSC_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_RT0_SI_EUlSB_DpOT_E_S12_LPv0EEEOSR_ENKUlNS1_12fnref_detail4base7storageESB_SH_SI_E_clES17_SB_SH_SI_ _ZZN3scn2v34impl12function_refIFbcES3_EC1IRKZNS1_9skip_fillINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSD_EEEEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRT_EEEElEEEESJ_lRKNS0_6detail9fill_typeEbEUlcE_ST_LPv0EEEOSJ_ENKUlNS1_12fnref_detail4base7storageEcE_clESZ_c Line | Count | Source | 743 | 812 | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 812 | cvref<T> obj = *get<T>(fn); | 745 | 812 | if constexpr (std::is_void_v<R>) { | 746 | 812 | obj(static_cast<decltype(args)>(args)...); | 747 | 812 | } | 748 | 812 | else { | 749 | 812 | return obj(static_cast<decltype(args)>(args)...); | 750 | 812 | } | 751 | 812 | }), |
_ZZN3scn2v34impl12function_refIFbDiES3_EC1IZNS1_24read_while_classic_spaceINS1_15take_width_viewINS7_INS0_6ranges6detail9subrange_8subrangeIPKcSD_EEEEEEEEDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESJ_EUlDiE_SO_LPv0EEEOSJ_ENKUlNS1_12fnref_detail4base7storageEDiE_clEST_Di Line | Count | Source | 743 | 2.86k | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 2.86k | cvref<T> obj = *get<T>(fn); | 745 | 2.86k | if constexpr (std::is_void_v<R>) { | 746 | 2.86k | obj(static_cast<decltype(args)>(args)...); | 747 | 2.86k | } | 748 | 2.86k | else { | 749 | 2.86k | return obj(static_cast<decltype(args)>(args)...); | 750 | 2.86k | } | 751 | 2.86k | }), |
Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedIPKwEERNS1_12float_readerIwEENS0_6ranges6detail9subrange_8subrangeIS5_S5_EENS0_6detail10locale_refEESH_EC1IZNS1_21reader_impl_for_floatIwE12read_defaultISE_fEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESP_RT0_SG_EUlS9_DpOT_E_S10_LPv0EEEOSP_ENKUlNS1_12fnref_detail4base7storageES9_SE_SG_E_clES15_S9_SE_SG_ _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedIPKwEERNS1_12float_readerIwEENS0_6ranges6detail9subrange_8subrangeIS5_S5_EENS0_6detail10locale_refEESH_EC1IZNS1_21reader_impl_for_floatIwE12read_defaultISE_dEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESP_RT0_SG_EUlS9_DpOT_E_S10_LPv0EEEOSP_ENKUlNS1_12fnref_detail4base7storageES9_SE_SG_E_clES15_S9_SE_SG_ Line | Count | Source | 743 | 10.0k | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 10.0k | cvref<T> obj = *get<T>(fn); | 745 | 10.0k | if constexpr (std::is_void_v<R>) { | 746 | 10.0k | obj(static_cast<decltype(args)>(args)...); | 747 | 10.0k | } | 748 | 10.0k | else { | 749 | 10.0k | return obj(static_cast<decltype(args)>(args)...); | 750 | 10.0k | } | 751 | 10.0k | }), |
Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedIPKwEERNS1_12float_readerIwEENS0_6ranges6detail9subrange_8subrangeIS5_S5_EENS0_6detail10locale_refEESH_EC1IZNS1_21reader_impl_for_floatIwE12read_defaultISE_eEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESP_RT0_SG_EUlS9_DpOT_E_S10_LPv0EEEOSP_ENKUlNS1_12fnref_detail4base7storageES9_SE_SG_E_clES15_S9_SE_SG_ _ZZN3scn2v34impl12function_refIFbwES3_EC1IRKZNS1_9skip_fillINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSD_EEEEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRT_EEEElEEEESJ_lRKNS0_6detail9fill_typeEbEUlwE_ST_LPv0EEEOSJ_ENKUlNS1_12fnref_detail4base7storageEwE_clESZ_w Line | Count | Source | 743 | 288 | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 288 | cvref<T> obj = *get<T>(fn); | 745 | 288 | if constexpr (std::is_void_v<R>) { | 746 | 288 | obj(static_cast<decltype(args)>(args)...); | 747 | 288 | } | 748 | 288 | else { | 749 | 288 | return obj(static_cast<decltype(args)>(args)...); | 750 | 288 | } | 751 | 288 | }), |
_ZZN3scn2v34impl12function_refIFbDiES3_EC1IZNS1_24read_while_classic_spaceINS1_15take_width_viewINS7_INS0_6ranges6detail9subrange_8subrangeIPKwSD_EEEEEEEEDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESJ_EUlDiE_SO_LPv0EEEOSJ_ENKUlNS1_12fnref_detail4base7storageEDiE_clEST_Di Line | Count | Source | 743 | 794 | fnref_detail::param_t<Args>... args) noexcept(noex) -> R { | 744 | 794 | cvref<T> obj = *get<T>(fn); | 745 | 794 | if constexpr (std::is_void_v<R>) { | 746 | 794 | obj(static_cast<decltype(args)>(args)...); | 747 | 794 | } | 748 | 794 | else { | 749 | 794 | return obj(static_cast<decltype(args)>(args)...); | 750 | 794 | } | 751 | 794 | }), |
Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedINS0_6detail17basic_scan_bufferIwE16forward_iteratorEEERNS1_12float_readerIwEENS0_6ranges6detail9subrange_8subrangeIS7_NSC_18default_sentinel_tEEENS4_10locale_refEESJ_EC1IZNS1_21reader_impl_for_floatIwE12read_defaultISH_fEENS3_IDTclL_ZNSC_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_RT0_SI_EUlSB_DpOT_E_S12_LPv0EEEOSR_ENKUlNS1_12fnref_detail4base7storageESB_SH_SI_E_clES17_SB_SH_SI_ Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedINS0_6detail17basic_scan_bufferIwE16forward_iteratorEEERNS1_12float_readerIwEENS0_6ranges6detail9subrange_8subrangeIS7_NSC_18default_sentinel_tEEENS4_10locale_refEESJ_EC1IZNS1_21reader_impl_for_floatIwE12read_defaultISH_dEENS3_IDTclL_ZNSC_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_RT0_SI_EUlSB_DpOT_E_S12_LPv0EEEOSR_ENKUlNS1_12fnref_detail4base7storageESB_SH_SI_E_clES17_SB_SH_SI_ Unexecuted instantiation: _ZZN3scn2v34impl12function_refIFNS0_13scan_expectedINS0_6detail17basic_scan_bufferIwE16forward_iteratorEEERNS1_12float_readerIwEENS0_6ranges6detail9subrange_8subrangeIS7_NSC_18default_sentinel_tEEENS4_10locale_refEESJ_EC1IZNS1_21reader_impl_for_floatIwE12read_defaultISH_eEENS3_IDTclL_ZNSC_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_RT0_SI_EUlSB_DpOT_E_S12_LPv0EEEOSR_ENKUlNS1_12fnref_detail4base7storageESB_SH_SI_E_clES17_SB_SH_SI_ |
752 | | m_storage(std::addressof(f)) |
753 | 952k | { |
754 | 952k | } scn::v3::impl::function_ref<bool (char), bool (char)>::function_ref<std::__1::__not_fn_t<scn::v3::impl::function_ref<bool (char), bool (char)> >, std::__1::__not_fn_t<scn::v3::impl::function_ref<bool (char), bool (char)> >, (void*)0>(std::__1::__not_fn_t<scn::v3::impl::function_ref<bool (char), bool (char)> >&&) Line | Count | Source | 753 | 3.58k | { | 754 | 3.58k | } |
Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbcES3_EC2IRKZNS1_9skip_fillINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS8_18default_sentinel_tEEEEEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRT_EEEElEEEESM_lRKNSC_9fill_typeEbEUlcE_SV_LPv0EEEOSM_ scn::v3::impl::function_ref<bool (char32_t), bool (char32_t)>::function_ref<std::__1::__not_fn_t<scn::v3::impl::function_ref<bool (char32_t), bool (char32_t)> >, std::__1::__not_fn_t<scn::v3::impl::function_ref<bool (char32_t), bool (char32_t)> >, (void*)0>(std::__1::__not_fn_t<scn::v3::impl::function_ref<bool (char32_t), bool (char32_t)> >&&) Line | Count | Source | 753 | 436k | { | 754 | 436k | } |
Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbDiES3_EC2IZNS1_24read_while_classic_spaceINS1_15take_width_viewINS7_INS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS8_18default_sentinel_tEEEEEEEEEDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESM_EUlDiE_SR_LPv0EEEOSM_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbDiES3_EC2IZNS1_24read_while_classic_spaceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS8_18default_sentinel_tEEEEEEEDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESL_EUlDiE_SQ_LPv0EEEOSL_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbcES3_EC2IRKZNS1_9skip_fillINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS7_18default_sentinel_tEEEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS7_5beginEEclsr3stdE7declvalIRT_EEEElEEEESK_lRKNSB_9fill_typeEbEUlcE_ST_LPv0EEEOSK_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbcES3_EC2IZNS1_34parse_integer_digits_without_thsepINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS7_18default_sentinel_tEEENS1_15take_width_viewINSA_ISG_SH_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS7_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESS_iEUlcE_SY_LPv0EEEOSS_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbcES3_EC2IZNS1_34parse_integer_digits_without_thsepINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS7_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS7_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_iEUlcE_SQ_LPv0EEEOSK_ scn::v3::impl::function_ref<void (char32_t), void (char32_t)>::function_ref<scn::v3::impl::calculate_text_width<char>(std::__1::basic_string_view<char, std::__1::char_traits<char> >)::{lambda(char32_t)#1}, {lambda(char32_t)#1}, (void*)0>(scn::v3::impl::calculate_text_width<char>(std::__1::basic_string_view<char, std::__1::char_traits<char> >)::{lambda(char32_t)#1}&&)Line | Count | Source | 753 | 21.6k | { | 754 | 21.6k | } |
Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbcES3_EC2IRKZNS1_9skip_fillINS1_15take_width_viewINSt3__117basic_string_viewIcNS8_11char_traitsIcEEEEEEEENS0_13scan_expectedINS8_4pairIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT_EEEElEEEESH_lRKNS0_6detail9fill_typeEbEUlcE_SR_LPv0EEEOSH_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbDiES3_EC2IZNS1_24read_while_classic_spaceINS1_15take_width_viewINS7_INSt3__117basic_string_viewIcNS8_11char_traitsIcEEEEEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS8_9add_constIT_E4typeEEEEESH_EUlDiE_SM_LPv0EEEOSH_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbDiES3_EC2IZNS1_24read_while_classic_spaceINS1_15take_width_viewINSt3__117basic_string_viewIcNS8_11char_traitsIcEEEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS8_9add_constIT_E4typeEEEEESG_EUlDiE_SL_LPv0EEEOSG_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbcES3_EC2IRKZNS1_9skip_fillINSt3__117basic_string_viewIcNS7_11char_traitsIcEEEEEENS0_13scan_expectedINS7_4pairIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT_EEEElEEEESF_lRKNS0_6detail9fill_typeEbEUlcE_SP_LPv0EEEOSF_ _ZN3scn2v34impl12function_refIFbcES3_EC2IZNS1_34parse_integer_digits_without_thsepINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSE_EENS1_15take_width_viewINSA_ISE_SE_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS7_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESP_iEUlcE_SV_LPv0EEEOSP_ Line | Count | Source | 753 | 796 | { | 754 | 796 | } |
_ZN3scn2v34impl12function_refIFbcES3_EC2IRKZNS1_9skip_fillINS0_6ranges6detail9subrange_8subrangeIPKcSC_EEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS7_5beginEEclsr3stdE7declvalIRT_EEEElEEEESH_lRKNS0_6detail9fill_typeEbEUlcE_SR_LPv0EEEOSH_ Line | Count | Source | 753 | 1.67k | { | 754 | 1.67k | } |
_ZN3scn2v34impl12function_refIFbDiES3_EC2IZNS1_24read_while_classic_spaceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSD_EEEEEEDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESI_EUlDiE_SN_LPv0EEEOSI_ Line | Count | Source | 753 | 460 | { | 754 | 460 | } |
Unexecuted instantiation: _ZN3scn2v34impl12function_refIFNS0_13scan_expectedINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS0_6ranges18default_sentinel_tEEEEERNS1_12float_readerIcEENS1_15take_width_viewINSA_6detail9subrange_8subrangeIS9_SB_EEEENS6_10locale_refEESO_EC2IZNS1_21reader_impl_for_floatIcE10read_specsISM_fEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESW_RKNS6_12format_specsERT0_SN_EUlSG_DpOT_E_S1A_LPv0EEEOSW_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbcES3_EC2IZNS1_12float_readerIcE8read_nanINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEENS1_15take_width_viewINSC_ISI_SJ_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_EUlcE_S10_LPv0EEEOSU_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbcES3_EC2IZNS1_12float_readerIcE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEENS1_15take_width_viewINSC_ISI_SJ_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_bEUlcE_S10_LPv0EEEOSU_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbcES3_EC2IZNS1_12float_readerIcE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEENS1_15take_width_viewINSC_ISI_SJ_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_bEUlcE0_S10_LPv0EEEOSU_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbcES3_EC2IZNS1_12float_readerIcE13read_exponentINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEENS1_15take_width_viewINSC_ISI_SJ_EEE8sentinelILb1EEEEEEEDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEST_NSR_17basic_string_viewIcNSR_11char_traitsIcEEEEEUlcE_S12_LPv0EEEOST_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbcES3_EC2IZNS1_12float_readerIcE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEENS1_15take_width_viewINSC_ISI_SJ_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_bEUlcE_S10_LPv0EEEOSU_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbcES3_EC2IZNS1_12float_readerIcE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEENS1_15take_width_viewINSC_ISI_SJ_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_bEUlcE0_S10_LPv0EEEOSU_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFNS0_13scan_expectedINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS0_6ranges18default_sentinel_tEEEEERNS1_12float_readerIcEENS1_15take_width_viewINSA_6detail9subrange_8subrangeIS9_SB_EEEENS6_10locale_refEESO_EC2IZNS1_21reader_impl_for_floatIcE10read_specsISM_fEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESW_RKNS6_12format_specsERT0_SN_EUlSG_DpOT_E0_S1A_LPv0EEEOSW_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFNS0_13scan_expectedINS0_6detail17basic_scan_bufferIcE16forward_iteratorEEERNS1_12float_readerIcEENS0_6ranges6detail9subrange_8subrangeIS7_NSC_18default_sentinel_tEEENS4_10locale_refEESJ_EC2IZNS1_21reader_impl_for_floatIcE10read_specsISH_fEENS3_IDTclL_ZNSC_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_RKNS4_12format_specsERT0_SI_EUlSB_DpOT_E_S15_LPv0EEEOSR_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbcES3_EC2IZNS1_12float_readerIcE8read_nanINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_EUlcE_SS_LPv0EEEOSM_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbcES3_EC2IZNS1_12float_readerIcE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_bEUlcE_SS_LPv0EEEOSM_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbcES3_EC2IZNS1_12float_readerIcE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_bEUlcE0_SS_LPv0EEEOSM_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbcES3_EC2IZNS1_12float_readerIcE13read_exponentINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEEEDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESL_NSJ_17basic_string_viewIcNSJ_11char_traitsIcEEEEEUlcE_SU_LPv0EEEOSL_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbcES3_EC2IZNS1_12float_readerIcE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_bEUlcE_SS_LPv0EEEOSM_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbcES3_EC2IZNS1_12float_readerIcE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_bEUlcE0_SS_LPv0EEEOSM_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFNS0_13scan_expectedINS0_6detail17basic_scan_bufferIcE16forward_iteratorEEERNS1_12float_readerIcEENS0_6ranges6detail9subrange_8subrangeIS7_NSC_18default_sentinel_tEEENS4_10locale_refEESJ_EC2IZNS1_21reader_impl_for_floatIcE10read_specsISH_fEENS3_IDTclL_ZNSC_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_RKNS4_12format_specsERT0_SI_EUlSB_DpOT_E0_S15_LPv0EEEOSR_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFNS0_13scan_expectedINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcS7_EEEERNS1_12float_readerIcEENS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIS7_S7_EEEENS0_6detail10locale_refEESM_EC2IZNS1_21reader_impl_for_floatIcE10read_specsISJ_fEENS3_IDTclL_ZNSE_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_RKNSK_12format_specsERT0_SL_EUlSC_DpOT_E_S18_LPv0EEEOSU_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbcES3_EC2IZNS1_12float_readerIcE8read_nanINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSG_EENS1_15take_width_viewINSC_ISG_SG_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_EUlcE_SX_LPv0EEEOSR_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbcES3_EC2IZNS1_12float_readerIcE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSG_EENS1_15take_width_viewINSC_ISG_SG_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_bEUlcE_SX_LPv0EEEOSR_ _ZN3scn2v34impl12function_refIFbcES3_EC2IZNS1_12float_readerIcE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSG_EENS1_15take_width_viewINSC_ISG_SG_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_bEUlcE0_SX_LPv0EEEOSR_ Line | Count | Source | 753 | 6 | { | 754 | 6 | } |
Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbcES3_EC2IZNS1_12float_readerIcE13read_exponentINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSG_EENS1_15take_width_viewINSC_ISG_SG_EEE8sentinelILb1EEEEEEEDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESQ_NSO_17basic_string_viewIcNSO_11char_traitsIcEEEEEUlcE_SZ_LPv0EEEOSQ_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbcES3_EC2IZNS1_12float_readerIcE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSG_EENS1_15take_width_viewINSC_ISG_SG_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_bEUlcE_SX_LPv0EEEOSR_ _ZN3scn2v34impl12function_refIFbcES3_EC2IZNS1_12float_readerIcE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSG_EENS1_15take_width_viewINSC_ISG_SG_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_bEUlcE0_SX_LPv0EEEOSR_ Line | Count | Source | 753 | 264 | { | 754 | 264 | } |
Unexecuted instantiation: _ZN3scn2v34impl12function_refIFNS0_13scan_expectedINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcS7_EEEERNS1_12float_readerIcEENS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIS7_S7_EEEENS0_6detail10locale_refEESM_EC2IZNS1_21reader_impl_for_floatIcE10read_specsISJ_fEENS3_IDTclL_ZNSE_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_RKNSK_12format_specsERT0_SL_EUlSC_DpOT_E0_S18_LPv0EEEOSU_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFNS0_13scan_expectedIPKcEERNS1_12float_readerIcEENS0_6ranges6detail9subrange_8subrangeIS5_S5_EENS0_6detail10locale_refEESH_EC2IZNS1_21reader_impl_for_floatIcE10read_specsISE_fEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESP_RKNSF_12format_specsERT0_SG_EUlS9_DpOT_E_S13_LPv0EEEOSP_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbcES3_EC2IZNS1_12float_readerIcE8read_nanINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_EUlcE_SP_LPv0EEEOSJ_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbcES3_EC2IZNS1_12float_readerIcE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_bEUlcE_SP_LPv0EEEOSJ_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbcES3_EC2IZNS1_12float_readerIcE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_bEUlcE0_SP_LPv0EEEOSJ_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbcES3_EC2IZNS1_12float_readerIcE13read_exponentINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEEEDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESI_NSG_17basic_string_viewIcNSG_11char_traitsIcEEEEEUlcE_SR_LPv0EEEOSI_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbcES3_EC2IZNS1_12float_readerIcE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_bEUlcE_SP_LPv0EEEOSJ_ _ZN3scn2v34impl12function_refIFbcES3_EC2IZNS1_12float_readerIcE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_bEUlcE0_SP_LPv0EEEOSJ_ Line | Count | Source | 753 | 28 | { | 754 | 28 | } |
Unexecuted instantiation: _ZN3scn2v34impl12function_refIFNS0_13scan_expectedIPKcEERNS1_12float_readerIcEENS0_6ranges6detail9subrange_8subrangeIS5_S5_EENS0_6detail10locale_refEESH_EC2IZNS1_21reader_impl_for_floatIcE10read_specsISE_fEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESP_RKNSF_12format_specsERT0_SG_EUlS9_DpOT_E0_S13_LPv0EEEOSP_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFNS0_13scan_expectedINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS0_6ranges18default_sentinel_tEEEEERNS1_12float_readerIcEENS1_15take_width_viewINSA_6detail9subrange_8subrangeIS9_SB_EEEENS6_10locale_refEESO_EC2IZNS1_21reader_impl_for_floatIcE10read_specsISM_dEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESW_RKNS6_12format_specsERT0_SN_EUlSG_DpOT_E_S1A_LPv0EEEOSW_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFNS0_13scan_expectedINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS0_6ranges18default_sentinel_tEEEEERNS1_12float_readerIcEENS1_15take_width_viewINSA_6detail9subrange_8subrangeIS9_SB_EEEENS6_10locale_refEESO_EC2IZNS1_21reader_impl_for_floatIcE10read_specsISM_dEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESW_RKNS6_12format_specsERT0_SN_EUlSG_DpOT_E0_S1A_LPv0EEEOSW_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFNS0_13scan_expectedINS0_6detail17basic_scan_bufferIcE16forward_iteratorEEERNS1_12float_readerIcEENS0_6ranges6detail9subrange_8subrangeIS7_NSC_18default_sentinel_tEEENS4_10locale_refEESJ_EC2IZNS1_21reader_impl_for_floatIcE10read_specsISH_dEENS3_IDTclL_ZNSC_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_RKNS4_12format_specsERT0_SI_EUlSB_DpOT_E_S15_LPv0EEEOSR_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFNS0_13scan_expectedINS0_6detail17basic_scan_bufferIcE16forward_iteratorEEERNS1_12float_readerIcEENS0_6ranges6detail9subrange_8subrangeIS7_NSC_18default_sentinel_tEEENS4_10locale_refEESJ_EC2IZNS1_21reader_impl_for_floatIcE10read_specsISH_dEENS3_IDTclL_ZNSC_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_RKNS4_12format_specsERT0_SI_EUlSB_DpOT_E0_S15_LPv0EEEOSR_ _ZN3scn2v34impl12function_refIFNS0_13scan_expectedINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcS7_EEEERNS1_12float_readerIcEENS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIS7_S7_EEEENS0_6detail10locale_refEESM_EC2IZNS1_21reader_impl_for_floatIcE10read_specsISJ_dEENS3_IDTclL_ZNSE_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_RKNSK_12format_specsERT0_SL_EUlSC_DpOT_E_S18_LPv0EEEOSU_ Line | Count | Source | 753 | 8 | { | 754 | 8 | } |
_ZN3scn2v34impl12function_refIFNS0_13scan_expectedINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcS7_EEEERNS1_12float_readerIcEENS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIS7_S7_EEEENS0_6detail10locale_refEESM_EC2IZNS1_21reader_impl_for_floatIcE10read_specsISJ_dEENS3_IDTclL_ZNSE_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_RKNSK_12format_specsERT0_SL_EUlSC_DpOT_E0_S18_LPv0EEEOSU_ Line | Count | Source | 753 | 262 | { | 754 | 262 | } |
_ZN3scn2v34impl12function_refIFNS0_13scan_expectedIPKcEERNS1_12float_readerIcEENS0_6ranges6detail9subrange_8subrangeIS5_S5_EENS0_6detail10locale_refEESH_EC2IZNS1_21reader_impl_for_floatIcE10read_specsISE_dEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESP_RKNSF_12format_specsERT0_SG_EUlS9_DpOT_E_S13_LPv0EEEOSP_ Line | Count | Source | 753 | 10 | { | 754 | 10 | } |
_ZN3scn2v34impl12function_refIFNS0_13scan_expectedIPKcEERNS1_12float_readerIcEENS0_6ranges6detail9subrange_8subrangeIS5_S5_EENS0_6detail10locale_refEESH_EC2IZNS1_21reader_impl_for_floatIcE10read_specsISE_dEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESP_RKNSF_12format_specsERT0_SG_EUlS9_DpOT_E0_S13_LPv0EEEOSP_ Line | Count | Source | 753 | 246 | { | 754 | 246 | } |
Unexecuted instantiation: _ZN3scn2v34impl12function_refIFNS0_13scan_expectedINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS0_6ranges18default_sentinel_tEEEEERNS1_12float_readerIcEENS1_15take_width_viewINSA_6detail9subrange_8subrangeIS9_SB_EEEENS6_10locale_refEESO_EC2IZNS1_21reader_impl_for_floatIcE10read_specsISM_eEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESW_RKNS6_12format_specsERT0_SN_EUlSG_DpOT_E_S1A_LPv0EEEOSW_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFNS0_13scan_expectedINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS0_6ranges18default_sentinel_tEEEEERNS1_12float_readerIcEENS1_15take_width_viewINSA_6detail9subrange_8subrangeIS9_SB_EEEENS6_10locale_refEESO_EC2IZNS1_21reader_impl_for_floatIcE10read_specsISM_eEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESW_RKNS6_12format_specsERT0_SN_EUlSG_DpOT_E0_S1A_LPv0EEEOSW_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFNS0_13scan_expectedINS0_6detail17basic_scan_bufferIcE16forward_iteratorEEERNS1_12float_readerIcEENS0_6ranges6detail9subrange_8subrangeIS7_NSC_18default_sentinel_tEEENS4_10locale_refEESJ_EC2IZNS1_21reader_impl_for_floatIcE10read_specsISH_eEENS3_IDTclL_ZNSC_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_RKNS4_12format_specsERT0_SI_EUlSB_DpOT_E_S15_LPv0EEEOSR_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFNS0_13scan_expectedINS0_6detail17basic_scan_bufferIcE16forward_iteratorEEERNS1_12float_readerIcEENS0_6ranges6detail9subrange_8subrangeIS7_NSC_18default_sentinel_tEEENS4_10locale_refEESJ_EC2IZNS1_21reader_impl_for_floatIcE10read_specsISH_eEENS3_IDTclL_ZNSC_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_RKNS4_12format_specsERT0_SI_EUlSB_DpOT_E0_S15_LPv0EEEOSR_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFNS0_13scan_expectedINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcS7_EEEERNS1_12float_readerIcEENS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIS7_S7_EEEENS0_6detail10locale_refEESM_EC2IZNS1_21reader_impl_for_floatIcE10read_specsISJ_eEENS3_IDTclL_ZNSE_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_RKNSK_12format_specsERT0_SL_EUlSC_DpOT_E_S18_LPv0EEEOSU_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFNS0_13scan_expectedINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcS7_EEEERNS1_12float_readerIcEENS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIS7_S7_EEEENS0_6detail10locale_refEESM_EC2IZNS1_21reader_impl_for_floatIcE10read_specsISJ_eEENS3_IDTclL_ZNSE_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_RKNSK_12format_specsERT0_SL_EUlSC_DpOT_E0_S18_LPv0EEEOSU_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFNS0_13scan_expectedIPKcEERNS1_12float_readerIcEENS0_6ranges6detail9subrange_8subrangeIS5_S5_EENS0_6detail10locale_refEESH_EC2IZNS1_21reader_impl_for_floatIcE10read_specsISE_eEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESP_RKNSF_12format_specsERT0_SG_EUlS9_DpOT_E_S13_LPv0EEEOSP_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFNS0_13scan_expectedIPKcEERNS1_12float_readerIcEENS0_6ranges6detail9subrange_8subrangeIS5_S5_EENS0_6detail10locale_refEESH_EC2IZNS1_21reader_impl_for_floatIcE10read_specsISE_eEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESP_RKNSF_12format_specsERT0_SG_EUlS9_DpOT_E0_S13_LPv0EEEOSP_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbDiES3_EC2IZNS1_24read_until_classic_spaceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS8_18default_sentinel_tEEEEEEEDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESL_EUlDiE_SQ_LPv0EEEOSL_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbcES3_EC2IZNS1_23custom_word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENSA_18default_sentinel_tEEEEEcEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_RKNSE_12format_specsERNSM_12basic_stringIT0_NSM_11char_traitsISY_EENSM_9allocatorISY_EEEEEUlcE_S15_LPv0EEEOSO_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbDiES3_EC2IRKZNKS1_25character_set_reader_implIcE16read_source_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENSA_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_NS7_12specs_helperEEUlDiE_SW_LPv0EEEOSO_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbcES3_EC2IRKZNKS1_25character_set_reader_implIcE16read_source_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENSA_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_NS7_12specs_helperEEUlcE_SW_LPv0EEEOSO_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbDiES3_EC2IZNS1_24read_until_classic_spaceINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS7_18default_sentinel_tEEEEEDTclL_ZNS7_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESJ_EUlDiE_SO_LPv0EEEOSJ_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbcES3_EC2IZNS1_23custom_word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEcEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_RKNSD_12format_specsERNSK_12basic_stringIT0_NSK_11char_traitsISW_EENSK_9allocatorISW_EEEEEUlcE_S13_LPv0EEEOSM_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbDiES3_EC2IRKZNKS1_25character_set_reader_implIcE16read_source_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_NS7_12specs_helperEEUlDiE_SU_LPv0EEEOSM_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbcES3_EC2IRKZNKS1_25character_set_reader_implIcE16read_source_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_NS7_12specs_helperEEUlcE_SU_LPv0EEEOSM_ _ZN3scn2v34impl12function_refIFbDiES3_EC2IZNS1_24read_until_classic_spaceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSD_EEEEEEDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESI_EUlDiE_SN_LPv0EEEOSI_ Line | Count | Source | 753 | 732 | { | 754 | 732 | } |
_ZN3scn2v34impl12function_refIFbcES3_EC2IZNS1_23custom_word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSF_EEEEcEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNS0_6detail12format_specsERNSJ_12basic_stringIT0_NSJ_11char_traitsISW_EENSJ_9allocatorISW_EEEEEUlcE_S13_LPv0EEEOSL_ Line | Count | Source | 753 | 32 | { | 754 | 32 | } |
_ZN3scn2v34impl12function_refIFbDiES3_EC2IRKZNKS1_25character_set_reader_implIcE16read_source_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSF_EEEEEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_NS7_12specs_helperEEUlDiE_ST_LPv0EEEOSL_ Line | Count | Source | 753 | 336 | { | 754 | 336 | } |
_ZN3scn2v34impl12function_refIFbcES3_EC2IRKZNKS1_25character_set_reader_implIcE16read_source_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSF_EEEEEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_NS7_12specs_helperEEUlcE_ST_LPv0EEEOSL_ Line | Count | Source | 753 | 300 | { | 754 | 300 | } |
_ZN3scn2v34impl12function_refIFbcES3_EC2IZNS1_23custom_word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEcEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_RKNS0_6detail12format_specsERNSH_12basic_stringIT0_NSH_11char_traitsISU_EENSH_9allocatorISU_EEEEEUlcE_S11_LPv0EEEOSJ_ Line | Count | Source | 753 | 30 | { | 754 | 30 | } |
_ZN3scn2v34impl12function_refIFbDiES3_EC2IRKZNKS1_25character_set_reader_implIcE16read_source_implINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_NS7_12specs_helperEEUlDiE_SR_LPv0EEEOSJ_ Line | Count | Source | 753 | 2.32k | { | 754 | 2.32k | } |
_ZN3scn2v34impl12function_refIFbcES3_EC2IRKZNKS1_25character_set_reader_implIcE16read_source_implINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_NS7_12specs_helperEEUlcE_SR_LPv0EEEOSJ_ Line | Count | Source | 753 | 294 | { | 754 | 294 | } |
Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbcES3_EC2IZNS1_23custom_word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENSA_18default_sentinel_tEEEEEwEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_RKNSE_12format_specsERNSM_12basic_stringIT0_NSM_11char_traitsISY_EENSM_9allocatorISY_EEEEEUlcE_S15_LPv0EEEOSO_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbcES3_EC2IZNS1_23custom_word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEwEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_RKNSD_12format_specsERNSK_12basic_stringIT0_NSK_11char_traitsISW_EENSK_9allocatorISW_EEEEEUlcE_S13_LPv0EEEOSM_ _ZN3scn2v34impl12function_refIFbcES3_EC2IZNS1_23custom_word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSF_EEEEwEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNS0_6detail12format_specsERNSJ_12basic_stringIT0_NSJ_11char_traitsISW_EENSJ_9allocatorISW_EEEEEUlcE_S13_LPv0EEEOSL_ Line | Count | Source | 753 | 32 | { | 754 | 32 | } |
_ZN3scn2v34impl12function_refIFbcES3_EC2IZNS1_23custom_word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEwEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_RKNS0_6detail12format_specsERNSH_12basic_stringIT0_NSH_11char_traitsISU_EENSH_9allocatorISU_EEEEEUlcE_S11_LPv0EEEOSJ_ Line | Count | Source | 753 | 30 | { | 754 | 30 | } |
Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbcES3_EC2IZNS1_23custom_word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENSA_18default_sentinel_tEEEEEcEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_RKNSE_12format_specsERNSM_17basic_string_viewIT0_NSM_11char_traitsISY_EEEEEUlcE_S13_LPv0EEEOSO_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbcES3_EC2IZNS1_23custom_word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEcEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_RKNSD_12format_specsERNSK_17basic_string_viewIT0_NSK_11char_traitsISW_EEEEEUlcE_S11_LPv0EEEOSM_ _ZN3scn2v34impl12function_refIFbcES3_EC2IZNS1_23custom_word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSF_EEEEcEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNS0_6detail12format_specsERNSJ_17basic_string_viewIT0_NSJ_11char_traitsISW_EEEEEUlcE_S11_LPv0EEEOSL_ Line | Count | Source | 753 | 32 | { | 754 | 32 | } |
_ZN3scn2v34impl12function_refIFbcES3_EC2IZNS1_23custom_word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEcEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_RKNS0_6detail12format_specsERNSH_17basic_string_viewIT0_NSH_11char_traitsISU_EEEEEUlcE_SZ_LPv0EEEOSJ_ Line | Count | Source | 753 | 30 | { | 754 | 30 | } |
Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbcES3_EC2IZNS1_23custom_word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENSA_18default_sentinel_tEEEEEwEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_RKNSE_12format_specsERNSM_17basic_string_viewIT0_NSM_11char_traitsISY_EEEEEUlcE_S13_LPv0EEEOSO_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbcES3_EC2IZNS1_23custom_word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEwEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_RKNSD_12format_specsERNSK_17basic_string_viewIT0_NSK_11char_traitsISW_EEEEEUlcE_S11_LPv0EEEOSM_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbcES3_EC2IZNS1_23custom_word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSF_EEEEwEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNS0_6detail12format_specsERNSJ_17basic_string_viewIT0_NSJ_11char_traitsISW_EEEEEUlcE_S11_LPv0EEEOSL_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbcES3_EC2IZNS1_23custom_word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeIPKcSE_EEwEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_RKNS0_6detail12format_specsERNSH_17basic_string_viewIT0_NSH_11char_traitsISU_EEEEEUlcE_SZ_LPv0EEEOSJ_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbDiES3_EC2IZNS1_24read_while_classic_spaceINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS7_18default_sentinel_tEEEEEDTclL_ZNS7_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESJ_EUlDiE_SO_LPv0EEEOSJ_ scn::v3::impl::function_ref<bool (wchar_t), bool (wchar_t)>::function_ref<std::__1::__not_fn_t<scn::v3::impl::function_ref<bool (wchar_t), bool (wchar_t)> >, std::__1::__not_fn_t<scn::v3::impl::function_ref<bool (wchar_t), bool (wchar_t)> >, (void*)0>(std::__1::__not_fn_t<scn::v3::impl::function_ref<bool (wchar_t), bool (wchar_t)> >&&) Line | Count | Source | 753 | 1.19k | { | 754 | 1.19k | } |
Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbwES3_EC2IRKZNS1_9skip_fillINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS8_18default_sentinel_tEEEEEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRT_EEEElEEEESM_lRKNSC_9fill_typeEbEUlwE_SV_LPv0EEEOSM_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbDiES3_EC2IZNS1_24read_while_classic_spaceINS1_15take_width_viewINS7_INS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS8_18default_sentinel_tEEEEEEEEEDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESM_EUlDiE_SR_LPv0EEEOSM_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbDiES3_EC2IZNS1_24read_while_classic_spaceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS8_18default_sentinel_tEEEEEEEDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESL_EUlDiE_SQ_LPv0EEEOSL_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbwES3_EC2IRKZNS1_9skip_fillINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS7_18default_sentinel_tEEEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS7_5beginEEclsr3stdE7declvalIRT_EEEElEEEESK_lRKNSB_9fill_typeEbEUlwE_ST_LPv0EEEOSK_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbwES3_EC2IZNS1_34parse_integer_digits_without_thsepINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS7_18default_sentinel_tEEENS1_15take_width_viewINSA_ISG_SH_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS7_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESS_iEUlwE_SY_LPv0EEEOSS_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbwES3_EC2IZNS1_34parse_integer_digits_without_thsepINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS7_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS7_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_iEUlwE_SQ_LPv0EEEOSK_ scn::v3::impl::function_ref<void (char32_t), void (char32_t)>::function_ref<scn::v3::impl::calculate_text_width<wchar_t>(std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> >)::{lambda(char32_t)#1}, {lambda(char32_t)#1}, (void*)0>(scn::v3::impl::calculate_text_width<wchar_t>(std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> >)::{lambda(char32_t)#1}&&)Line | Count | Source | 753 | 3.47k | { | 754 | 3.47k | } |
Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbwES3_EC2IRKZNS1_9skip_fillINS1_15take_width_viewINSt3__117basic_string_viewIwNS8_11char_traitsIwEEEEEEEENS0_13scan_expectedINS8_4pairIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT_EEEElEEEESH_lRKNS0_6detail9fill_typeEbEUlwE_SR_LPv0EEEOSH_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbDiES3_EC2IZNS1_24read_while_classic_spaceINS1_15take_width_viewINS7_INSt3__117basic_string_viewIwNS8_11char_traitsIwEEEEEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS8_9add_constIT_E4typeEEEEESH_EUlDiE_SM_LPv0EEEOSH_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbDiES3_EC2IZNS1_24read_while_classic_spaceINS1_15take_width_viewINSt3__117basic_string_viewIwNS8_11char_traitsIwEEEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS8_9add_constIT_E4typeEEEEESG_EUlDiE_SL_LPv0EEEOSG_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbwES3_EC2IRKZNS1_9skip_fillINSt3__117basic_string_viewIwNS7_11char_traitsIwEEEEEENS0_13scan_expectedINS7_4pairIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT_EEEElEEEESF_lRKNS0_6detail9fill_typeEbEUlwE_SP_LPv0EEEOSF_ _ZN3scn2v34impl12function_refIFbDiES3_EC2IZNS1_24read_while_classic_spaceINSt3__117basic_string_viewIwNS7_11char_traitsIwEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS7_9add_constIT_E4typeEEEEESE_EUlDiE_SJ_LPv0EEEOSE_ Line | Count | Source | 753 | 174k | { | 754 | 174k | } |
_ZN3scn2v34impl12function_refIFbwES3_EC2IZNS1_34parse_integer_digits_without_thsepINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSE_EENS1_15take_width_viewINSA_ISE_SE_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS7_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESP_iEUlwE_SV_LPv0EEEOSP_ Line | Count | Source | 753 | 370 | { | 754 | 370 | } |
_ZN3scn2v34impl12function_refIFbwES3_EC2IRKZNS1_9skip_fillINS0_6ranges6detail9subrange_8subrangeIPKwSC_EEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS7_5beginEEclsr3stdE7declvalIRT_EEEElEEEESH_lRKNS0_6detail9fill_typeEbEUlwE_SR_LPv0EEEOSH_ Line | Count | Source | 753 | 402 | { | 754 | 402 | } |
_ZN3scn2v34impl12function_refIFbDiES3_EC2IZNS1_24read_while_classic_spaceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSD_EEEEEEDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESI_EUlDiE_SN_LPv0EEEOSI_ Line | Count | Source | 753 | 86 | { | 754 | 86 | } |
_ZN3scn2v34impl12function_refIFbDiES3_EC2IZNS1_24read_while_classic_spaceINS0_6ranges6detail9subrange_8subrangeIPKwSC_EEEEDTclL_ZNS7_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESG_EUlDiE_SL_LPv0EEEOSG_ Line | Count | Source | 753 | 256k | { | 754 | 256k | } |
Unexecuted instantiation: _ZN3scn2v34impl12function_refIFNS0_13scan_expectedINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS0_6ranges18default_sentinel_tEEEEERNS1_12float_readerIwEENS1_15take_width_viewINSA_6detail9subrange_8subrangeIS9_SB_EEEENS6_10locale_refEESO_EC2IZNS1_21reader_impl_for_floatIwE10read_specsISM_fEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESW_RKNS6_12format_specsERT0_SN_EUlSG_DpOT_E_S1A_LPv0EEEOSW_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbwES3_EC2IZNS1_12float_readerIwE8read_nanINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEENS1_15take_width_viewINSC_ISI_SJ_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_EUlwE_S10_LPv0EEEOSU_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbwES3_EC2IZNS1_12float_readerIwE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEENS1_15take_width_viewINSC_ISI_SJ_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_bEUlwE_S10_LPv0EEEOSU_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbwES3_EC2IZNS1_12float_readerIwE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEENS1_15take_width_viewINSC_ISI_SJ_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_bEUlwE0_S10_LPv0EEEOSU_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbwES3_EC2IZNS1_12float_readerIwE13read_exponentINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEENS1_15take_width_viewINSC_ISI_SJ_EEE8sentinelILb1EEEEEEEDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEST_NSR_17basic_string_viewIcNSR_11char_traitsIcEEEEEUlwE_S12_LPv0EEEOST_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbwES3_EC2IZNS1_12float_readerIwE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEENS1_15take_width_viewINSC_ISI_SJ_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_bEUlwE_S10_LPv0EEEOSU_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbwES3_EC2IZNS1_12float_readerIwE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEENS1_15take_width_viewINSC_ISI_SJ_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_bEUlwE0_S10_LPv0EEEOSU_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFNS0_13scan_expectedINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS0_6ranges18default_sentinel_tEEEEERNS1_12float_readerIwEENS1_15take_width_viewINSA_6detail9subrange_8subrangeIS9_SB_EEEENS6_10locale_refEESO_EC2IZNS1_21reader_impl_for_floatIwE10read_specsISM_fEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESW_RKNS6_12format_specsERT0_SN_EUlSG_DpOT_E0_S1A_LPv0EEEOSW_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFNS0_13scan_expectedINS0_6detail17basic_scan_bufferIwE16forward_iteratorEEERNS1_12float_readerIwEENS0_6ranges6detail9subrange_8subrangeIS7_NSC_18default_sentinel_tEEENS4_10locale_refEESJ_EC2IZNS1_21reader_impl_for_floatIwE10read_specsISH_fEENS3_IDTclL_ZNSC_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_RKNS4_12format_specsERT0_SI_EUlSB_DpOT_E_S15_LPv0EEEOSR_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbwES3_EC2IZNS1_12float_readerIwE8read_nanINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_EUlwE_SS_LPv0EEEOSM_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbwES3_EC2IZNS1_12float_readerIwE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_bEUlwE_SS_LPv0EEEOSM_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbwES3_EC2IZNS1_12float_readerIwE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_bEUlwE0_SS_LPv0EEEOSM_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbwES3_EC2IZNS1_12float_readerIwE13read_exponentINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEEEDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESL_NSJ_17basic_string_viewIcNSJ_11char_traitsIcEEEEEUlwE_SU_LPv0EEEOSL_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbwES3_EC2IZNS1_12float_readerIwE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_bEUlwE_SS_LPv0EEEOSM_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbwES3_EC2IZNS1_12float_readerIwE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_bEUlwE0_SS_LPv0EEEOSM_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFNS0_13scan_expectedINS0_6detail17basic_scan_bufferIwE16forward_iteratorEEERNS1_12float_readerIwEENS0_6ranges6detail9subrange_8subrangeIS7_NSC_18default_sentinel_tEEENS4_10locale_refEESJ_EC2IZNS1_21reader_impl_for_floatIwE10read_specsISH_fEENS3_IDTclL_ZNSC_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_RKNS4_12format_specsERT0_SI_EUlSB_DpOT_E0_S15_LPv0EEEOSR_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFNS0_13scan_expectedINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwS7_EEEERNS1_12float_readerIwEENS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIS7_S7_EEEENS0_6detail10locale_refEESM_EC2IZNS1_21reader_impl_for_floatIwE10read_specsISJ_fEENS3_IDTclL_ZNSE_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_RKNSK_12format_specsERT0_SL_EUlSC_DpOT_E_S18_LPv0EEEOSU_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbwES3_EC2IZNS1_12float_readerIwE8read_nanINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSG_EENS1_15take_width_viewINSC_ISG_SG_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_EUlwE_SX_LPv0EEEOSR_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbwES3_EC2IZNS1_12float_readerIwE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSG_EENS1_15take_width_viewINSC_ISG_SG_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_bEUlwE_SX_LPv0EEEOSR_ _ZN3scn2v34impl12function_refIFbwES3_EC2IZNS1_12float_readerIwE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSG_EENS1_15take_width_viewINSC_ISG_SG_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_bEUlwE0_SX_LPv0EEEOSR_ Line | Count | Source | 753 | 6 | { | 754 | 6 | } |
Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbwES3_EC2IZNS1_12float_readerIwE13read_exponentINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSG_EENS1_15take_width_viewINSC_ISG_SG_EEE8sentinelILb1EEEEEEEDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESQ_NSO_17basic_string_viewIcNSO_11char_traitsIcEEEEEUlwE_SZ_LPv0EEEOSQ_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbwES3_EC2IZNS1_12float_readerIwE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSG_EENS1_15take_width_viewINSC_ISG_SG_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_bEUlwE_SX_LPv0EEEOSR_ _ZN3scn2v34impl12function_refIFbwES3_EC2IZNS1_12float_readerIwE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSG_EENS1_15take_width_viewINSC_ISG_SG_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_bEUlwE0_SX_LPv0EEEOSR_ Line | Count | Source | 753 | 116 | { | 754 | 116 | } |
Unexecuted instantiation: _ZN3scn2v34impl12function_refIFNS0_13scan_expectedINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwS7_EEEERNS1_12float_readerIwEENS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIS7_S7_EEEENS0_6detail10locale_refEESM_EC2IZNS1_21reader_impl_for_floatIwE10read_specsISJ_fEENS3_IDTclL_ZNSE_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_RKNSK_12format_specsERT0_SL_EUlSC_DpOT_E0_S18_LPv0EEEOSU_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFNS0_13scan_expectedIPKwEERNS1_12float_readerIwEENS0_6ranges6detail9subrange_8subrangeIS5_S5_EENS0_6detail10locale_refEESH_EC2IZNS1_21reader_impl_for_floatIwE10read_specsISE_fEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESP_RKNSF_12format_specsERT0_SG_EUlS9_DpOT_E_S13_LPv0EEEOSP_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbwES3_EC2IZNS1_12float_readerIwE8read_nanINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_EUlwE_SP_LPv0EEEOSJ_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbwES3_EC2IZNS1_12float_readerIwE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_bEUlwE_SP_LPv0EEEOSJ_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbwES3_EC2IZNS1_12float_readerIwE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_bEUlwE0_SP_LPv0EEEOSJ_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbwES3_EC2IZNS1_12float_readerIwE13read_exponentINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEEEDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESI_NSG_17basic_string_viewIcNSG_11char_traitsIcEEEEEUlwE_SR_LPv0EEEOSI_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbwES3_EC2IZNS1_12float_readerIwE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_bEUlwE_SP_LPv0EEEOSJ_ _ZN3scn2v34impl12function_refIFbwES3_EC2IZNS1_12float_readerIwE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEEENS1_14parse_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_bEUlwE0_SP_LPv0EEEOSJ_ Line | Count | Source | 753 | 6 | { | 754 | 6 | } |
Unexecuted instantiation: _ZN3scn2v34impl12function_refIFNS0_13scan_expectedIPKwEERNS1_12float_readerIwEENS0_6ranges6detail9subrange_8subrangeIS5_S5_EENS0_6detail10locale_refEESH_EC2IZNS1_21reader_impl_for_floatIwE10read_specsISE_fEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESP_RKNSF_12format_specsERT0_SG_EUlS9_DpOT_E0_S13_LPv0EEEOSP_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFNS0_13scan_expectedINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS0_6ranges18default_sentinel_tEEEEERNS1_12float_readerIwEENS1_15take_width_viewINSA_6detail9subrange_8subrangeIS9_SB_EEEENS6_10locale_refEESO_EC2IZNS1_21reader_impl_for_floatIwE10read_specsISM_dEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESW_RKNS6_12format_specsERT0_SN_EUlSG_DpOT_E_S1A_LPv0EEEOSW_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFNS0_13scan_expectedINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS0_6ranges18default_sentinel_tEEEEERNS1_12float_readerIwEENS1_15take_width_viewINSA_6detail9subrange_8subrangeIS9_SB_EEEENS6_10locale_refEESO_EC2IZNS1_21reader_impl_for_floatIwE10read_specsISM_dEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESW_RKNS6_12format_specsERT0_SN_EUlSG_DpOT_E0_S1A_LPv0EEEOSW_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFNS0_13scan_expectedINS0_6detail17basic_scan_bufferIwE16forward_iteratorEEERNS1_12float_readerIwEENS0_6ranges6detail9subrange_8subrangeIS7_NSC_18default_sentinel_tEEENS4_10locale_refEESJ_EC2IZNS1_21reader_impl_for_floatIwE10read_specsISH_dEENS3_IDTclL_ZNSC_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_RKNS4_12format_specsERT0_SI_EUlSB_DpOT_E_S15_LPv0EEEOSR_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFNS0_13scan_expectedINS0_6detail17basic_scan_bufferIwE16forward_iteratorEEERNS1_12float_readerIwEENS0_6ranges6detail9subrange_8subrangeIS7_NSC_18default_sentinel_tEEENS4_10locale_refEESJ_EC2IZNS1_21reader_impl_for_floatIwE10read_specsISH_dEENS3_IDTclL_ZNSC_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_RKNS4_12format_specsERT0_SI_EUlSB_DpOT_E0_S15_LPv0EEEOSR_ _ZN3scn2v34impl12function_refIFNS0_13scan_expectedINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwS7_EEEERNS1_12float_readerIwEENS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIS7_S7_EEEENS0_6detail10locale_refEESM_EC2IZNS1_21reader_impl_for_floatIwE10read_specsISJ_dEENS3_IDTclL_ZNSE_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_RKNSK_12format_specsERT0_SL_EUlSC_DpOT_E_S18_LPv0EEEOSU_ Line | Count | Source | 753 | 6 | { | 754 | 6 | } |
_ZN3scn2v34impl12function_refIFNS0_13scan_expectedINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwS7_EEEERNS1_12float_readerIwEENS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIS7_S7_EEEENS0_6detail10locale_refEESM_EC2IZNS1_21reader_impl_for_floatIwE10read_specsISJ_dEENS3_IDTclL_ZNSE_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_RKNSK_12format_specsERT0_SL_EUlSC_DpOT_E0_S18_LPv0EEEOSU_ Line | Count | Source | 753 | 116 | { | 754 | 116 | } |
_ZN3scn2v34impl12function_refIFNS0_13scan_expectedIPKwEERNS1_12float_readerIwEENS0_6ranges6detail9subrange_8subrangeIS5_S5_EENS0_6detail10locale_refEESH_EC2IZNS1_21reader_impl_for_floatIwE10read_specsISE_dEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESP_RKNSF_12format_specsERT0_SG_EUlS9_DpOT_E_S13_LPv0EEEOSP_ Line | Count | Source | 753 | 6 | { | 754 | 6 | } |
_ZN3scn2v34impl12function_refIFNS0_13scan_expectedIPKwEERNS1_12float_readerIwEENS0_6ranges6detail9subrange_8subrangeIS5_S5_EENS0_6detail10locale_refEESH_EC2IZNS1_21reader_impl_for_floatIwE10read_specsISE_dEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESP_RKNSF_12format_specsERT0_SG_EUlS9_DpOT_E0_S13_LPv0EEEOSP_ Line | Count | Source | 753 | 320 | { | 754 | 320 | } |
Unexecuted instantiation: _ZN3scn2v34impl12function_refIFNS0_13scan_expectedINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS0_6ranges18default_sentinel_tEEEEERNS1_12float_readerIwEENS1_15take_width_viewINSA_6detail9subrange_8subrangeIS9_SB_EEEENS6_10locale_refEESO_EC2IZNS1_21reader_impl_for_floatIwE10read_specsISM_eEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESW_RKNS6_12format_specsERT0_SN_EUlSG_DpOT_E_S1A_LPv0EEEOSW_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFNS0_13scan_expectedINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS0_6ranges18default_sentinel_tEEEEERNS1_12float_readerIwEENS1_15take_width_viewINSA_6detail9subrange_8subrangeIS9_SB_EEEENS6_10locale_refEESO_EC2IZNS1_21reader_impl_for_floatIwE10read_specsISM_eEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESW_RKNS6_12format_specsERT0_SN_EUlSG_DpOT_E0_S1A_LPv0EEEOSW_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFNS0_13scan_expectedINS0_6detail17basic_scan_bufferIwE16forward_iteratorEEERNS1_12float_readerIwEENS0_6ranges6detail9subrange_8subrangeIS7_NSC_18default_sentinel_tEEENS4_10locale_refEESJ_EC2IZNS1_21reader_impl_for_floatIwE10read_specsISH_eEENS3_IDTclL_ZNSC_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_RKNS4_12format_specsERT0_SI_EUlSB_DpOT_E_S15_LPv0EEEOSR_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFNS0_13scan_expectedINS0_6detail17basic_scan_bufferIwE16forward_iteratorEEERNS1_12float_readerIwEENS0_6ranges6detail9subrange_8subrangeIS7_NSC_18default_sentinel_tEEENS4_10locale_refEESJ_EC2IZNS1_21reader_impl_for_floatIwE10read_specsISH_eEENS3_IDTclL_ZNSC_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_RKNS4_12format_specsERT0_SI_EUlSB_DpOT_E0_S15_LPv0EEEOSR_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFNS0_13scan_expectedINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwS7_EEEERNS1_12float_readerIwEENS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIS7_S7_EEEENS0_6detail10locale_refEESM_EC2IZNS1_21reader_impl_for_floatIwE10read_specsISJ_eEENS3_IDTclL_ZNSE_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_RKNSK_12format_specsERT0_SL_EUlSC_DpOT_E_S18_LPv0EEEOSU_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFNS0_13scan_expectedINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwS7_EEEERNS1_12float_readerIwEENS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIS7_S7_EEEENS0_6detail10locale_refEESM_EC2IZNS1_21reader_impl_for_floatIwE10read_specsISJ_eEENS3_IDTclL_ZNSE_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESU_RKNSK_12format_specsERT0_SL_EUlSC_DpOT_E0_S18_LPv0EEEOSU_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFNS0_13scan_expectedIPKwEERNS1_12float_readerIwEENS0_6ranges6detail9subrange_8subrangeIS5_S5_EENS0_6detail10locale_refEESH_EC2IZNS1_21reader_impl_for_floatIwE10read_specsISE_eEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESP_RKNSF_12format_specsERT0_SG_EUlS9_DpOT_E_S13_LPv0EEEOSP_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFNS0_13scan_expectedIPKwEERNS1_12float_readerIwEENS0_6ranges6detail9subrange_8subrangeIS5_S5_EENS0_6detail10locale_refEESH_EC2IZNS1_21reader_impl_for_floatIwE10read_specsISE_eEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESP_RKNSF_12format_specsERT0_SG_EUlS9_DpOT_E0_S13_LPv0EEEOSP_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbDiES3_EC2IZNS1_24read_until_classic_spaceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS8_18default_sentinel_tEEEEEEEDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESL_EUlDiE_SQ_LPv0EEEOSL_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbwES3_EC2IZNS1_23custom_word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENSA_18default_sentinel_tEEEEEcEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_RKNSE_12format_specsERNSM_12basic_stringIT0_NSM_11char_traitsISY_EENSM_9allocatorISY_EEEEEUlwE_S15_LPv0EEEOSO_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbDiES3_EC2IRKZNKS1_25character_set_reader_implIwE16read_source_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENSA_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_NS7_12specs_helperEEUlDiE_SW_LPv0EEEOSO_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbwES3_EC2IRKZNKS1_25character_set_reader_implIwE16read_source_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENSA_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_NS7_12specs_helperEEUlwE_SW_LPv0EEEOSO_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbDiES3_EC2IZNS1_24read_until_classic_spaceINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS7_18default_sentinel_tEEEEEDTclL_ZNS7_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESJ_EUlDiE_SO_LPv0EEEOSJ_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbwES3_EC2IZNS1_23custom_word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEcEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_RKNSD_12format_specsERNSK_12basic_stringIT0_NSK_11char_traitsISW_EENSK_9allocatorISW_EEEEEUlwE_S13_LPv0EEEOSM_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbDiES3_EC2IRKZNKS1_25character_set_reader_implIwE16read_source_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_NS7_12specs_helperEEUlDiE_SU_LPv0EEEOSM_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbwES3_EC2IRKZNKS1_25character_set_reader_implIwE16read_source_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_NS7_12specs_helperEEUlwE_SU_LPv0EEEOSM_ _ZN3scn2v34impl12function_refIFbDiES3_EC2IZNS1_24read_until_classic_spaceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSD_EEEEEEDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESI_EUlDiE_SN_LPv0EEEOSI_ Line | Count | Source | 753 | 324 | { | 754 | 324 | } |
_ZN3scn2v34impl12function_refIFbwES3_EC2IZNS1_23custom_word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSF_EEEEcEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNS0_6detail12format_specsERNSJ_12basic_stringIT0_NSJ_11char_traitsISW_EENSJ_9allocatorISW_EEEEEUlwE_S13_LPv0EEEOSL_ Line | Count | Source | 753 | 20 | { | 754 | 20 | } |
Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbDiES3_EC2IRKZNKS1_25character_set_reader_implIwE16read_source_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSF_EEEEEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_NS7_12specs_helperEEUlDiE_ST_LPv0EEEOSL_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbwES3_EC2IRKZNKS1_25character_set_reader_implIwE16read_source_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSF_EEEEEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_NS7_12specs_helperEEUlwE_ST_LPv0EEEOSL_ _ZN3scn2v34impl12function_refIFbDiES3_EC2IZNS1_24read_until_classic_spaceINS0_6ranges6detail9subrange_8subrangeIPKwSC_EEEEDTclL_ZNS7_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESG_EUlDiE_SL_LPv0EEEOSG_ Line | Count | Source | 753 | 30.9k | { | 754 | 30.9k | } |
_ZN3scn2v34impl12function_refIFbwES3_EC2IZNS1_23custom_word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEcEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_RKNS0_6detail12format_specsERNSH_12basic_stringIT0_NSH_11char_traitsISU_EENSH_9allocatorISU_EEEEEUlwE_S11_LPv0EEEOSJ_ Line | Count | Source | 753 | 26 | { | 754 | 26 | } |
_ZN3scn2v34impl12function_refIFbDiES3_EC2IRKZNKS1_25character_set_reader_implIwE16read_source_implINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_NS7_12specs_helperEEUlDiE_SR_LPv0EEEOSJ_ Line | Count | Source | 753 | 258 | { | 754 | 258 | } |
_ZN3scn2v34impl12function_refIFbwES3_EC2IRKZNKS1_25character_set_reader_implIwE16read_source_implINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_NS7_12specs_helperEEUlwE_SR_LPv0EEEOSJ_ Line | Count | Source | 753 | 84 | { | 754 | 84 | } |
Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbwES3_EC2IZNS1_23custom_word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENSA_18default_sentinel_tEEEEEwEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_RKNSE_12format_specsERNSM_12basic_stringIT0_NSM_11char_traitsISY_EENSM_9allocatorISY_EEEEEUlwE_S15_LPv0EEEOSO_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbwES3_EC2IZNS1_23custom_word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEwEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_RKNSD_12format_specsERNSK_12basic_stringIT0_NSK_11char_traitsISW_EENSK_9allocatorISW_EEEEEUlwE_S13_LPv0EEEOSM_ _ZN3scn2v34impl12function_refIFbwES3_EC2IZNS1_23custom_word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSF_EEEEwEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNS0_6detail12format_specsERNSJ_12basic_stringIT0_NSJ_11char_traitsISW_EENSJ_9allocatorISW_EEEEEUlwE_S13_LPv0EEEOSL_ Line | Count | Source | 753 | 20 | { | 754 | 20 | } |
_ZN3scn2v34impl12function_refIFbwES3_EC2IZNS1_23custom_word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEwEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_RKNS0_6detail12format_specsERNSH_12basic_stringIT0_NSH_11char_traitsISU_EENSH_9allocatorISU_EEEEEUlwE_S11_LPv0EEEOSJ_ Line | Count | Source | 753 | 26 | { | 754 | 26 | } |
Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbwES3_EC2IZNS1_23custom_word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENSA_18default_sentinel_tEEEEEcEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_RKNSE_12format_specsERNSM_17basic_string_viewIT0_NSM_11char_traitsISY_EEEEEUlwE_S13_LPv0EEEOSO_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbwES3_EC2IZNS1_23custom_word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEcEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_RKNSD_12format_specsERNSK_17basic_string_viewIT0_NSK_11char_traitsISW_EEEEEUlwE_S11_LPv0EEEOSM_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbwES3_EC2IZNS1_23custom_word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSF_EEEEcEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNS0_6detail12format_specsERNSJ_17basic_string_viewIT0_NSJ_11char_traitsISW_EEEEEUlwE_S11_LPv0EEEOSL_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbwES3_EC2IZNS1_23custom_word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEcEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_RKNS0_6detail12format_specsERNSH_17basic_string_viewIT0_NSH_11char_traitsISU_EEEEEUlwE_SZ_LPv0EEEOSJ_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbwES3_EC2IZNS1_23custom_word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENSA_18default_sentinel_tEEEEEwEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_RKNSE_12format_specsERNSM_17basic_string_viewIT0_NSM_11char_traitsISY_EEEEEUlwE_S13_LPv0EEEOSO_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbwES3_EC2IZNS1_23custom_word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEwEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_RKNSD_12format_specsERNSK_17basic_string_viewIT0_NSK_11char_traitsISW_EEEEEUlwE_S11_LPv0EEEOSM_ _ZN3scn2v34impl12function_refIFbwES3_EC2IZNS1_23custom_word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSF_EEEEwEENS0_13scan_expectedIDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RKNS0_6detail12format_specsERNSJ_17basic_string_viewIT0_NSJ_11char_traitsISW_EEEEEUlwE_S11_LPv0EEEOSL_ Line | Count | Source | 753 | 20 | { | 754 | 20 | } |
_ZN3scn2v34impl12function_refIFbwES3_EC2IZNS1_23custom_word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeIPKwSE_EEwEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_RKNS0_6detail12format_specsERNSH_17basic_string_viewIT0_NSH_11char_traitsISU_EEEEEUlwE_SZ_LPv0EEEOSJ_ Line | Count | Source | 753 | 26 | { | 754 | 26 | } |
Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbDiES3_EC2IZNS1_24read_while_classic_spaceINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS7_18default_sentinel_tEEEEEDTclL_ZNS7_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESJ_EUlDiE_SO_LPv0EEEOSJ_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFbDiES3_EC2IZNS1_24read_until_classic_spaceINSt3__117basic_string_viewIwNS7_11char_traitsIwEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS7_9add_constIT_E4typeEEEEESE_EUlDiE_SJ_LPv0EEEOSE_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFNS0_13scan_expectedIPKcEERNS1_12float_readerIcEENS0_6ranges6detail9subrange_8subrangeIS5_S5_EENS0_6detail10locale_refEESH_EC2IZNS1_21reader_impl_for_floatIcE12read_defaultISE_fEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESP_RT0_SG_EUlS9_DpOT_E_S10_LPv0EEEOSP_ _ZN3scn2v34impl12function_refIFNS0_13scan_expectedIPKcEERNS1_12float_readerIcEENS0_6ranges6detail9subrange_8subrangeIS5_S5_EENS0_6detail10locale_refEESH_EC2IZNS1_21reader_impl_for_floatIcE12read_defaultISE_dEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESP_RT0_SG_EUlS9_DpOT_E_S10_LPv0EEEOSP_ Line | Count | Source | 753 | 628 | { | 754 | 628 | } |
Unexecuted instantiation: _ZN3scn2v34impl12function_refIFNS0_13scan_expectedIPKcEERNS1_12float_readerIcEENS0_6ranges6detail9subrange_8subrangeIS5_S5_EENS0_6detail10locale_refEESH_EC2IZNS1_21reader_impl_for_floatIcE12read_defaultISE_eEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESP_RT0_SG_EUlS9_DpOT_E_S10_LPv0EEEOSP_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFNS0_13scan_expectedINS0_6detail17basic_scan_bufferIcE16forward_iteratorEEERNS1_12float_readerIcEENS0_6ranges6detail9subrange_8subrangeIS7_NSC_18default_sentinel_tEEENS4_10locale_refEESJ_EC2IZNS1_21reader_impl_for_floatIcE12read_defaultISH_fEENS3_IDTclL_ZNSC_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_RT0_SI_EUlSB_DpOT_E_S12_LPv0EEEOSR_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFNS0_13scan_expectedINS0_6detail17basic_scan_bufferIcE16forward_iteratorEEERNS1_12float_readerIcEENS0_6ranges6detail9subrange_8subrangeIS7_NSC_18default_sentinel_tEEENS4_10locale_refEESJ_EC2IZNS1_21reader_impl_for_floatIcE12read_defaultISH_dEENS3_IDTclL_ZNSC_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_RT0_SI_EUlSB_DpOT_E_S12_LPv0EEEOSR_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFNS0_13scan_expectedINS0_6detail17basic_scan_bufferIcE16forward_iteratorEEERNS1_12float_readerIcEENS0_6ranges6detail9subrange_8subrangeIS7_NSC_18default_sentinel_tEEENS4_10locale_refEESJ_EC2IZNS1_21reader_impl_for_floatIcE12read_defaultISH_eEENS3_IDTclL_ZNSC_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_RT0_SI_EUlSB_DpOT_E_S12_LPv0EEEOSR_ _ZN3scn2v34impl12function_refIFbcES3_EC2IRKZNS1_9skip_fillINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSD_EEEEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRT_EEEElEEEESJ_lRKNS0_6detail9fill_typeEbEUlcE_ST_LPv0EEEOSJ_ Line | Count | Source | 753 | 504 | { | 754 | 504 | } |
_ZN3scn2v34impl12function_refIFbDiES3_EC2IZNS1_24read_while_classic_spaceINS1_15take_width_viewINS7_INS0_6ranges6detail9subrange_8subrangeIPKcSD_EEEEEEEEDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESJ_EUlDiE_SO_LPv0EEEOSJ_ Line | Count | Source | 753 | 1.87k | { | 754 | 1.87k | } |
Unexecuted instantiation: _ZN3scn2v34impl12function_refIFNS0_13scan_expectedIPKwEERNS1_12float_readerIwEENS0_6ranges6detail9subrange_8subrangeIS5_S5_EENS0_6detail10locale_refEESH_EC2IZNS1_21reader_impl_for_floatIwE12read_defaultISE_fEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESP_RT0_SG_EUlS9_DpOT_E_S10_LPv0EEEOSP_ _ZN3scn2v34impl12function_refIFNS0_13scan_expectedIPKwEERNS1_12float_readerIwEENS0_6ranges6detail9subrange_8subrangeIS5_S5_EENS0_6detail10locale_refEESH_EC2IZNS1_21reader_impl_for_floatIwE12read_defaultISE_dEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESP_RT0_SG_EUlS9_DpOT_E_S10_LPv0EEEOSP_ Line | Count | Source | 753 | 10.0k | { | 754 | 10.0k | } |
Unexecuted instantiation: _ZN3scn2v34impl12function_refIFNS0_13scan_expectedIPKwEERNS1_12float_readerIwEENS0_6ranges6detail9subrange_8subrangeIS5_S5_EENS0_6detail10locale_refEESH_EC2IZNS1_21reader_impl_for_floatIwE12read_defaultISE_eEENS3_IDTclL_ZNSA_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESP_RT0_SG_EUlS9_DpOT_E_S10_LPv0EEEOSP_ _ZN3scn2v34impl12function_refIFbwES3_EC2IRKZNS1_9skip_fillINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSD_EEEEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRT_EEEElEEEESJ_lRKNS0_6detail9fill_typeEbEUlwE_ST_LPv0EEEOSJ_ Line | Count | Source | 753 | 242 | { | 754 | 242 | } |
_ZN3scn2v34impl12function_refIFbDiES3_EC2IZNS1_24read_while_classic_spaceINS1_15take_width_viewINS7_INS0_6ranges6detail9subrange_8subrangeIPKwSD_EEEEEEEEDTclL_ZNS8_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESJ_EUlDiE_SO_LPv0EEEOSJ_ Line | Count | Source | 753 | 794 | { | 754 | 794 | } |
Unexecuted instantiation: _ZN3scn2v34impl12function_refIFNS0_13scan_expectedINS0_6detail17basic_scan_bufferIwE16forward_iteratorEEERNS1_12float_readerIwEENS0_6ranges6detail9subrange_8subrangeIS7_NSC_18default_sentinel_tEEENS4_10locale_refEESJ_EC2IZNS1_21reader_impl_for_floatIwE12read_defaultISH_fEENS3_IDTclL_ZNSC_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_RT0_SI_EUlSB_DpOT_E_S12_LPv0EEEOSR_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFNS0_13scan_expectedINS0_6detail17basic_scan_bufferIwE16forward_iteratorEEERNS1_12float_readerIwEENS0_6ranges6detail9subrange_8subrangeIS7_NSC_18default_sentinel_tEEENS4_10locale_refEESJ_EC2IZNS1_21reader_impl_for_floatIwE12read_defaultISH_dEENS3_IDTclL_ZNSC_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_RT0_SI_EUlSB_DpOT_E_S12_LPv0EEEOSR_ Unexecuted instantiation: _ZN3scn2v34impl12function_refIFNS0_13scan_expectedINS0_6detail17basic_scan_bufferIwE16forward_iteratorEEERNS1_12float_readerIwEENS0_6ranges6detail9subrange_8subrangeIS7_NSC_18default_sentinel_tEEENS4_10locale_refEESJ_EC2IZNS1_21reader_impl_for_floatIwE12read_defaultISH_eEENS3_IDTclL_ZNSC_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_RT0_SI_EUlSB_DpOT_E_S12_LPv0EEEOSR_ |
755 | | |
756 | | template <typename T, |
757 | | std::enable_if_t<detail::is_not_self<T, function_ref> && |
758 | | !std::is_pointer_v<T>>* = nullptr> |
759 | | function_ref& operator=(T) = delete; |
760 | | |
761 | | constexpr R operator()(Args... args) const noexcept(noex) |
762 | 1.98M | { |
763 | 1.98M | return m_fptr(m_storage, SCN_FWD(args)...); |
764 | 1.98M | } scn::v3::impl::function_ref<bool (char), bool (char)>::operator()(char) const Line | Count | Source | 762 | 24.6k | { | 763 | 24.6k | return m_fptr(m_storage, SCN_FWD(args)...); | 764 | 24.6k | } |
scn::v3::impl::function_ref<bool (char32_t), bool (char32_t)>::operator()(char32_t) const Line | Count | Source | 762 | 1.89M | { | 763 | 1.89M | return m_fptr(m_storage, SCN_FWD(args)...); | 764 | 1.89M | } |
scn::v3::impl::function_ref<void (char32_t), void (char32_t)>::operator()(char32_t) const Line | Count | Source | 762 | 43.3k | { | 763 | 43.3k | return m_fptr(m_storage, SCN_FWD(args)...); | 764 | 43.3k | } |
Unexecuted instantiation: scn::v3::impl::function_ref<scn::v3::scan_expected<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> > (scn::v3::impl::float_reader<char>&, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >, scn::v3::detail::locale_ref), scn::v3::scan_expected<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> > (scn::v3::impl::float_reader<char>&, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >, scn::v3::detail::locale_ref)>::operator()(scn::v3::impl::float_reader<char>&, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >, scn::v3::detail::locale_ref) const Unexecuted instantiation: scn::v3::impl::function_ref<scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> (scn::v3::impl::float_reader<char>&, scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::detail::locale_ref), scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> (scn::v3::impl::float_reader<char>&, scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::detail::locale_ref)>::operator()(scn::v3::impl::float_reader<char>&, scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::detail::locale_ref) const scn::v3::impl::function_ref<scn::v3::scan_expected<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> > (scn::v3::impl::float_reader<char>&, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >, scn::v3::detail::locale_ref), scn::v3::scan_expected<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> > (scn::v3::impl::float_reader<char>&, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >, scn::v3::detail::locale_ref)>::operator()(scn::v3::impl::float_reader<char>&, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >, scn::v3::detail::locale_ref) const Line | Count | Source | 762 | 270 | { | 763 | 270 | return m_fptr(m_storage, SCN_FWD(args)...); | 764 | 270 | } |
scn::v3::impl::function_ref<scn::v3::scan_expected<char const*> (scn::v3::impl::float_reader<char>&, scn::v3::ranges::detail::subrange_::subrange<char const*, char const*>, scn::v3::detail::locale_ref), scn::v3::scan_expected<char const*> (scn::v3::impl::float_reader<char>&, scn::v3::ranges::detail::subrange_::subrange<char const*, char const*>, scn::v3::detail::locale_ref)>::operator()(scn::v3::impl::float_reader<char>&, scn::v3::ranges::detail::subrange_::subrange<char const*, char const*>, scn::v3::detail::locale_ref) const Line | Count | Source | 762 | 884 | { | 763 | 884 | return m_fptr(m_storage, SCN_FWD(args)...); | 764 | 884 | } |
scn::v3::impl::function_ref<bool (wchar_t), bool (wchar_t)>::operator()(wchar_t) const Line | Count | Source | 762 | 7.14k | { | 763 | 7.14k | return m_fptr(m_storage, SCN_FWD(args)...); | 764 | 7.14k | } |
Unexecuted instantiation: scn::v3::impl::function_ref<scn::v3::scan_expected<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> > (scn::v3::impl::float_reader<wchar_t>&, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >, scn::v3::detail::locale_ref), scn::v3::scan_expected<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> > (scn::v3::impl::float_reader<wchar_t>&, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >, scn::v3::detail::locale_ref)>::operator()(scn::v3::impl::float_reader<wchar_t>&, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >, scn::v3::detail::locale_ref) const Unexecuted instantiation: scn::v3::impl::function_ref<scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> (scn::v3::impl::float_reader<wchar_t>&, scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::detail::locale_ref), scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> (scn::v3::impl::float_reader<wchar_t>&, scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::detail::locale_ref)>::operator()(scn::v3::impl::float_reader<wchar_t>&, scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::detail::locale_ref) const scn::v3::impl::function_ref<scn::v3::scan_expected<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> > (scn::v3::impl::float_reader<wchar_t>&, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >, scn::v3::detail::locale_ref), scn::v3::scan_expected<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> > (scn::v3::impl::float_reader<wchar_t>&, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >, scn::v3::detail::locale_ref)>::operator()(scn::v3::impl::float_reader<wchar_t>&, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >, scn::v3::detail::locale_ref) const Line | Count | Source | 762 | 122 | { | 763 | 122 | return m_fptr(m_storage, SCN_FWD(args)...); | 764 | 122 | } |
scn::v3::impl::function_ref<scn::v3::scan_expected<wchar_t const*> (scn::v3::impl::float_reader<wchar_t>&, scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*>, scn::v3::detail::locale_ref), scn::v3::scan_expected<wchar_t const*> (scn::v3::impl::float_reader<wchar_t>&, scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*>, scn::v3::detail::locale_ref)>::operator()(scn::v3::impl::float_reader<wchar_t>&, scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*>, scn::v3::detail::locale_ref) const Line | Count | Source | 762 | 10.3k | { | 763 | 10.3k | return m_fptr(m_storage, SCN_FWD(args)...); | 764 | 10.3k | } |
|
765 | | |
766 | | private: |
767 | | fwd_t* m_fptr{nullptr}; |
768 | | storage m_storage; |
769 | | }; |
770 | | |
771 | | template <typename F, std::enable_if_t<std::is_function_v<F>>* = nullptr> |
772 | | function_ref(F*) -> function_ref<F>; |
773 | | } // namespace impl |
774 | | |
775 | | ///////////////////////////////////////////////////////////////// |
776 | | // Internal error types |
777 | | ///////////////////////////////////////////////////////////////// |
778 | | |
779 | | namespace impl { |
780 | | enum class eof_error { good, eof }; |
781 | | |
782 | | inline constexpr bool operator!(eof_error e) |
783 | 302k | { |
784 | 302k | return e != eof_error::good; |
785 | 302k | } |
786 | | |
787 | | template <typename T> |
788 | | struct eof_expected : public expected<T, eof_error> { |
789 | | using base = expected<T, eof_error>; |
790 | | using base::base; |
791 | | |
792 | | constexpr eof_expected(const base& other) : base(other) {} |
793 | | constexpr eof_expected(base&& other) : base(SCN_MOVE(other)) {} |
794 | | }; |
795 | | |
796 | | inline constexpr auto make_eof_scan_error(eof_error err) |
797 | 142 | { |
798 | 142 | SCN_EXPECT(err == eof_error::eof); |
799 | 142 | return scan_error{scan_error::end_of_range, "EOF"}; |
800 | 142 | } |
801 | | |
802 | | struct SCN_TRIVIAL_ABI parse_error { |
803 | | enum code { good, eof, error }; |
804 | | using code_t = code; |
805 | | |
806 | | constexpr parse_error() = default; |
807 | | constexpr parse_error(code c) : m_code(c) |
808 | 214k | { |
809 | 214k | SCN_UNLIKELY_ATTR SCN_UNUSED(m_code); |
810 | 214k | } |
811 | | |
812 | | constexpr explicit operator bool() const |
813 | 0 | { |
814 | 0 | return m_code == good; |
815 | 0 | } |
816 | | constexpr explicit operator code_t() const |
817 | 0 | { |
818 | 0 | return m_code; |
819 | 0 | } |
820 | | |
821 | | friend constexpr bool operator==(parse_error a, parse_error b) |
822 | 72.8k | { |
823 | 72.8k | return a.m_code == b.m_code; |
824 | 72.8k | } |
825 | | friend constexpr bool operator!=(parse_error a, parse_error b) |
826 | 0 | { |
827 | 0 | return !(a == b); |
828 | 0 | } |
829 | | |
830 | | private: |
831 | | code m_code{good}; |
832 | | }; |
833 | | |
834 | | template <typename T> |
835 | | struct parse_expected : public expected<T, parse_error> { |
836 | | using base = expected<T, parse_error>; |
837 | | using base::base; |
838 | | |
839 | | constexpr parse_expected(const base& other) : base(other) {} |
840 | | constexpr parse_expected(base&& other) : base(SCN_MOVE(other)) {} |
841 | | }; |
842 | | |
843 | | inline constexpr parse_error make_eof_parse_error(eof_error err) |
844 | 692 | { |
845 | 692 | SCN_EXPECT(err == eof_error::eof); |
846 | 692 | return parse_error::eof; |
847 | 692 | } |
848 | | |
849 | | inline constexpr scan_error make_scan_error_from_parse_error( |
850 | | parse_error err, |
851 | | enum scan_error::code code, |
852 | | const char* msg) |
853 | 13.2k | { |
854 | 13.2k | if (err == parse_error::good) { |
855 | 0 | return {}; |
856 | 0 | } |
857 | | |
858 | 13.2k | if (err == parse_error::eof) { |
859 | 74 | return scan_error{scan_error::end_of_range, "EOF"}; |
860 | 74 | } |
861 | | |
862 | 13.1k | return scan_error{code, msg}; |
863 | 13.2k | } |
864 | | |
865 | | inline constexpr auto map_parse_error_to_scan_error(enum scan_error::code code, |
866 | | const char* msg) |
867 | 13.2k | { |
868 | 13.2k | return [code, msg](parse_error err) { |
869 | 13.2k | return make_scan_error_from_parse_error(err, code, msg); |
870 | 13.2k | }; |
871 | 13.2k | } |
872 | | } // namespace impl |
873 | | |
874 | | namespace detail { |
875 | | template <typename T> |
876 | | struct is_expected_impl<scn::impl::parse_expected<T>> : std::true_type {}; |
877 | | } // namespace detail |
878 | | |
879 | | ///////////////////////////////////////////////////////////////// |
880 | | // Range reading support |
881 | | ///////////////////////////////////////////////////////////////// |
882 | | |
883 | | namespace impl { |
884 | | #if SCN_MSVC_DEBUG_ITERATORS |
885 | | #define SCN_NEED_MS_DEBUG_ITERATOR_WORKAROUND 1 |
886 | | #else |
887 | | #define SCN_NEED_MS_DEBUG_ITERATOR_WORKAROUND 0 |
888 | | #endif |
889 | | |
890 | | template <typename T> |
891 | | constexpr bool range_supports_nocopy() noexcept |
892 | | { |
893 | | #if SCN_NEED_MS_DEBUG_ITERATOR_WORKAROUND |
894 | | return ranges::contiguous_range<T> || |
895 | | (ranges::random_access_range<T> && |
896 | | detail::can_make_address_from_iterator<ranges::iterator_t<T>>); |
897 | | #else |
898 | | return ranges::contiguous_range<T>; |
899 | | #endif |
900 | | } |
901 | | |
902 | | template <typename R> |
903 | | constexpr auto range_nocopy_data(const R& r) noexcept |
904 | | { |
905 | | static_assert(range_supports_nocopy<R>()); |
906 | | #if SCN_NEED_MS_DEBUG_ITERATOR_WORKAROUND |
907 | | return detail::to_address(ranges::begin(r)); |
908 | | #else |
909 | | return ranges::data(r); |
910 | | #endif |
911 | | } |
912 | | |
913 | | template <typename R> |
914 | | constexpr auto range_nocopy_size(const R& r) noexcept |
915 | | { |
916 | | static_assert(range_supports_nocopy<R>()); |
917 | | #if SCN_NEED_MS_DEBUG_ITERATOR_WORKAROUND |
918 | | return static_cast<size_t>(ranges::distance(detail::to_address(r.begin()), |
919 | | detail::to_address(r.end()))); |
920 | | #else |
921 | | return r.size(); |
922 | | #endif |
923 | | } |
924 | | |
925 | | template <typename I, typename S> |
926 | | SCN_NODISCARD constexpr bool is_range_eof(I begin, S end) |
927 | 353M | { |
928 | | #if SCN_NEED_MS_DEBUG_ITERATOR_WORKAROUND |
929 | | if constexpr (ranges::contiguous_iterator<I> || |
930 | | (ranges::random_access_iterator<I> && |
931 | | detail::can_make_address_from_iterator<I>)) { |
932 | | return detail::to_address(begin) == detail::to_address(end); |
933 | | } |
934 | | else |
935 | | #endif |
936 | 353M | { |
937 | 353M | return begin == end; |
938 | 353M | } |
939 | 353M | } Unexecuted instantiation: bool scn::v3::impl::is_range_eof<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >::sentinel<true>) Unexecuted instantiation: bool scn::v3::impl::is_range_eof<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true>) Unexecuted instantiation: bool scn::v3::impl::is_range_eof<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>(scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t) Unexecuted instantiation: bool scn::v3::impl::is_range_eof<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > > >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > > >::sentinel<true>) Unexecuted instantiation: bool scn::v3::impl::is_range_eof<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true>) bool scn::v3::impl::is_range_eof<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true>) Line | Count | Source | 927 | 33.4k | { | 928 | | #if SCN_NEED_MS_DEBUG_ITERATOR_WORKAROUND | 929 | | if constexpr (ranges::contiguous_iterator<I> || | 930 | | (ranges::random_access_iterator<I> && | 931 | | detail::can_make_address_from_iterator<I>)) { | 932 | | return detail::to_address(begin) == detail::to_address(end); | 933 | | } | 934 | | else | 935 | | #endif | 936 | 33.4k | { | 937 | 33.4k | return begin == end; | 938 | 33.4k | } | 939 | 33.4k | } |
bool scn::v3::impl::is_range_eof<char const*, char const*>(char const*, char const*) Line | Count | Source | 927 | 352k | { | 928 | | #if SCN_NEED_MS_DEBUG_ITERATOR_WORKAROUND | 929 | | if constexpr (ranges::contiguous_iterator<I> || | 930 | | (ranges::random_access_iterator<I> && | 931 | | detail::can_make_address_from_iterator<I>)) { | 932 | | return detail::to_address(begin) == detail::to_address(end); | 933 | | } | 934 | | else | 935 | | #endif | 936 | 352k | { | 937 | 352k | return begin == end; | 938 | 352k | } | 939 | 352k | } |
Unexecuted instantiation: bool scn::v3::impl::is_range_eof<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >::sentinel<true>) Unexecuted instantiation: bool scn::v3::impl::is_range_eof<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true>) Unexecuted instantiation: bool scn::v3::impl::is_range_eof<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>(scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t) Unexecuted instantiation: bool scn::v3::impl::is_range_eof<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > > >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > > >::sentinel<true>) Unexecuted instantiation: bool scn::v3::impl::is_range_eof<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true>) bool scn::v3::impl::is_range_eof<wchar_t const*, wchar_t const*>(wchar_t const*, wchar_t const*) Line | Count | Source | 927 | 352M | { | 928 | | #if SCN_NEED_MS_DEBUG_ITERATOR_WORKAROUND | 929 | | if constexpr (ranges::contiguous_iterator<I> || | 930 | | (ranges::random_access_iterator<I> && | 931 | | detail::can_make_address_from_iterator<I>)) { | 932 | | return detail::to_address(begin) == detail::to_address(end); | 933 | | } | 934 | | else | 935 | | #endif | 936 | 352M | { | 937 | 352M | return begin == end; | 938 | 352M | } | 939 | 352M | } |
bool scn::v3::impl::is_range_eof<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true>) Line | Count | Source | 927 | 8.59k | { | 928 | | #if SCN_NEED_MS_DEBUG_ITERATOR_WORKAROUND | 929 | | if constexpr (ranges::contiguous_iterator<I> || | 930 | | (ranges::random_access_iterator<I> && | 931 | | detail::can_make_address_from_iterator<I>)) { | 932 | | return detail::to_address(begin) == detail::to_address(end); | 933 | | } | 934 | | else | 935 | | #endif | 936 | 8.59k | { | 937 | 8.59k | return begin == end; | 938 | 8.59k | } | 939 | 8.59k | } |
bool scn::v3::impl::is_range_eof<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> > >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> > >::sentinel<true>) Line | Count | Source | 927 | 4.74k | { | 928 | | #if SCN_NEED_MS_DEBUG_ITERATOR_WORKAROUND | 929 | | if constexpr (ranges::contiguous_iterator<I> || | 930 | | (ranges::random_access_iterator<I> && | 931 | | detail::can_make_address_from_iterator<I>)) { | 932 | | return detail::to_address(begin) == detail::to_address(end); | 933 | | } | 934 | | else | 935 | | #endif | 936 | 4.74k | { | 937 | 4.74k | return begin == end; | 938 | 4.74k | } | 939 | 4.74k | } |
bool scn::v3::impl::is_range_eof<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> > >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> > >::sentinel<true>) Line | Count | Source | 927 | 1.58k | { | 928 | | #if SCN_NEED_MS_DEBUG_ITERATOR_WORKAROUND | 929 | | if constexpr (ranges::contiguous_iterator<I> || | 930 | | (ranges::random_access_iterator<I> && | 931 | | detail::can_make_address_from_iterator<I>)) { | 932 | | return detail::to_address(begin) == detail::to_address(end); | 933 | | } | 934 | | else | 935 | | #endif | 936 | 1.58k | { | 937 | 1.58k | return begin == end; | 938 | 1.58k | } | 939 | 1.58k | } |
|
940 | | |
941 | | template <typename Range> |
942 | | SCN_NODISCARD constexpr bool is_range_eof(Range r) |
943 | 1.37M | { |
944 | 1.37M | return is_range_eof(r.begin(), r.end()); |
945 | 1.37M | } Unexecuted instantiation: bool scn::v3::impl::is_range_eof<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >::sentinel<true> > >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >::sentinel<true> >) Unexecuted instantiation: bool scn::v3::impl::is_range_eof<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >) Unexecuted instantiation: bool scn::v3::impl::is_range_eof<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >(scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >) Unexecuted instantiation: bool scn::v3::impl::is_range_eof<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>) Unexecuted instantiation: bool scn::v3::impl::is_range_eof<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > > >::sentinel<true> > >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > > >::sentinel<true> >) Unexecuted instantiation: bool scn::v3::impl::is_range_eof<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> > >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> >) bool scn::v3::impl::is_range_eof<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> > >(scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >) Line | Count | Source | 943 | 1.87k | { | 944 | 1.87k | return is_range_eof(r.begin(), r.end()); | 945 | 1.87k | } |
bool scn::v3::impl::is_range_eof<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> > >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> >) Line | Count | Source | 943 | 31.6k | { | 944 | 31.6k | return is_range_eof(r.begin(), r.end()); | 945 | 31.6k | } |
bool scn::v3::impl::is_range_eof<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >(scn::v3::ranges::detail::subrange_::subrange<char const*, char const*>) Line | Count | Source | 943 | 305k | { | 944 | 305k | return is_range_eof(r.begin(), r.end()); | 945 | 305k | } |
Unexecuted instantiation: bool scn::v3::impl::is_range_eof<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >::sentinel<true> > >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >::sentinel<true> >) Unexecuted instantiation: bool scn::v3::impl::is_range_eof<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >) Unexecuted instantiation: bool scn::v3::impl::is_range_eof<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >(scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >) Unexecuted instantiation: bool scn::v3::impl::is_range_eof<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>) Unexecuted instantiation: bool scn::v3::impl::is_range_eof<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > > >::sentinel<true> > >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > > >::sentinel<true> >) Unexecuted instantiation: bool scn::v3::impl::is_range_eof<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> > >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> >) bool scn::v3::impl::is_range_eof<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >(scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*>) Line | Count | Source | 943 | 1.02M | { | 944 | 1.02M | return is_range_eof(r.begin(), r.end()); | 945 | 1.02M | } |
bool scn::v3::impl::is_range_eof<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> > >(scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >) Line | Count | Source | 943 | 870 | { | 944 | 870 | return is_range_eof(r.begin(), r.end()); | 945 | 870 | } |
bool scn::v3::impl::is_range_eof<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> > >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> >) Line | Count | Source | 943 | 7.72k | { | 944 | 7.72k | return is_range_eof(r.begin(), r.end()); | 945 | 7.72k | } |
Unexecuted instantiation: bool scn::v3::impl::is_range_eof<std::__1::basic_string_view<char, std::__1::char_traits<char> > >(std::__1::basic_string_view<char, std::__1::char_traits<char> >) bool scn::v3::impl::is_range_eof<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> > >::sentinel<true> > >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> > >::sentinel<true> >) Line | Count | Source | 943 | 4.74k | { | 944 | 4.74k | return is_range_eof(r.begin(), r.end()); | 945 | 4.74k | } |
bool scn::v3::impl::is_range_eof<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> > >::sentinel<true> > >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> > >::sentinel<true> >) Line | Count | Source | 943 | 1.58k | { | 944 | 1.58k | return is_range_eof(r.begin(), r.end()); | 945 | 1.58k | } |
Unexecuted instantiation: bool scn::v3::impl::is_range_eof<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >(std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> >) |
946 | | |
947 | | template <typename Range> |
948 | | SCN_NODISCARD constexpr eof_error eof_check(Range range) |
949 | 302k | { |
950 | 302k | if (SCN_UNLIKELY(is_range_eof(range))) { |
951 | 142 | return eof_error::eof; |
952 | 142 | } |
953 | 302k | return eof_error::good; |
954 | 302k | } Unexecuted instantiation: scn::v3::impl::eof_error scn::v3::impl::eof_check<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >::sentinel<true> > >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >::sentinel<true> >) Unexecuted instantiation: scn::v3::impl::eof_error scn::v3::impl::eof_check<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >) Unexecuted instantiation: scn::v3::impl::eof_error scn::v3::impl::eof_check<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >(scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >) Unexecuted instantiation: scn::v3::impl::eof_error scn::v3::impl::eof_check<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>) Unexecuted instantiation: scn::v3::impl::eof_error scn::v3::impl::eof_check<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > > >::sentinel<true> > >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > > >::sentinel<true> >) Unexecuted instantiation: scn::v3::impl::eof_error scn::v3::impl::eof_check<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> > >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> >) scn::v3::impl::eof_error scn::v3::impl::eof_check<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> > >(scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >) Line | Count | Source | 949 | 1.87k | { | 950 | 1.87k | if (SCN_UNLIKELY(is_range_eof(range))) { | 951 | 0 | return eof_error::eof; | 952 | 0 | } | 953 | 1.87k | return eof_error::good; | 954 | 1.87k | } |
scn::v3::impl::eof_error scn::v3::impl::eof_check<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> > >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> >) Line | Count | Source | 949 | 34 | { | 950 | 34 | if (SCN_UNLIKELY(is_range_eof(range))) { | 951 | 0 | return eof_error::eof; | 952 | 0 | } | 953 | 34 | return eof_error::good; | 954 | 34 | } |
scn::v3::impl::eof_error scn::v3::impl::eof_check<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >(scn::v3::ranges::detail::subrange_::subrange<char const*, char const*>) Line | Count | Source | 949 | 20.9k | { | 950 | 20.9k | if (SCN_UNLIKELY(is_range_eof(range))) { | 951 | 0 | return eof_error::eof; | 952 | 0 | } | 953 | 20.9k | return eof_error::good; | 954 | 20.9k | } |
Unexecuted instantiation: scn::v3::impl::eof_error scn::v3::impl::eof_check<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >::sentinel<true> > >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >::sentinel<true> >) Unexecuted instantiation: scn::v3::impl::eof_error scn::v3::impl::eof_check<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >) Unexecuted instantiation: scn::v3::impl::eof_error scn::v3::impl::eof_check<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >(scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >) Unexecuted instantiation: scn::v3::impl::eof_error scn::v3::impl::eof_check<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>) Unexecuted instantiation: scn::v3::impl::eof_error scn::v3::impl::eof_check<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > > >::sentinel<true> > >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > > >::sentinel<true> >) Unexecuted instantiation: scn::v3::impl::eof_error scn::v3::impl::eof_check<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> > >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> >) scn::v3::impl::eof_error scn::v3::impl::eof_check<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >(scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*>) Line | Count | Source | 949 | 275k | { | 950 | 275k | if (SCN_UNLIKELY(is_range_eof(range))) { | 951 | 0 | return eof_error::eof; | 952 | 0 | } | 953 | 275k | return eof_error::good; | 954 | 275k | } |
scn::v3::impl::eof_error scn::v3::impl::eof_check<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> > >(scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >) Line | Count | Source | 949 | 870 | { | 950 | 870 | if (SCN_UNLIKELY(is_range_eof(range))) { | 951 | 0 | return eof_error::eof; | 952 | 0 | } | 953 | 870 | return eof_error::good; | 954 | 870 | } |
scn::v3::impl::eof_error scn::v3::impl::eof_check<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> > >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> >) Line | Count | Source | 949 | 34 | { | 950 | 34 | if (SCN_UNLIKELY(is_range_eof(range))) { | 951 | 0 | return eof_error::eof; | 952 | 0 | } | 953 | 34 | return eof_error::good; | 954 | 34 | } |
Unexecuted instantiation: scn::v3::impl::eof_error scn::v3::impl::eof_check<std::__1::basic_string_view<char, std::__1::char_traits<char> > >(std::__1::basic_string_view<char, std::__1::char_traits<char> >) scn::v3::impl::eof_error scn::v3::impl::eof_check<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> > >::sentinel<true> > >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> > >::sentinel<true> >) Line | Count | Source | 949 | 1.87k | { | 950 | 1.87k | if (SCN_UNLIKELY(is_range_eof(range))) { | 951 | 142 | return eof_error::eof; | 952 | 142 | } | 953 | 1.73k | return eof_error::good; | 954 | 1.87k | } |
scn::v3::impl::eof_error scn::v3::impl::eof_check<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> > >::sentinel<true> > >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> > >::sentinel<true> >) Line | Count | Source | 949 | 794 | { | 950 | 794 | if (SCN_UNLIKELY(is_range_eof(range))) { | 951 | 0 | return eof_error::eof; | 952 | 0 | } | 953 | 794 | return eof_error::good; | 954 | 794 | } |
Unexecuted instantiation: scn::v3::impl::eof_error scn::v3::impl::eof_check<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >(std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> >) |
955 | | |
956 | | template <typename Range> |
957 | | bool is_entire_source_contiguous(Range r) |
958 | 14.8k | { |
959 | 14.8k | if constexpr (ranges::contiguous_range<Range> && |
960 | 14.8k | ranges::sized_range<Range>) { |
961 | 330 | return true; |
962 | 330 | } |
963 | 330 | else if constexpr (std::is_same_v< |
964 | 330 | ranges::const_iterator_t<Range>, |
965 | 330 | typename detail::basic_scan_buffer< |
966 | 330 | detail::char_t<Range>>::forward_iterator>) { |
967 | 330 | auto beg = r.begin(); |
968 | 330 | if (!beg.stores_parent()) { |
969 | 0 | return true; |
970 | 0 | } |
971 | 0 | return beg.parent()->is_contiguous(); |
972 | 0 | } |
973 | 330 | else { |
974 | 330 | return false; |
975 | 330 | } |
976 | 14.8k | } Unexecuted instantiation: bool scn::v3::impl::is_entire_source_contiguous<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >(scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >) Unexecuted instantiation: bool scn::v3::impl::is_entire_source_contiguous<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>) bool scn::v3::impl::is_entire_source_contiguous<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> > >(scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >) Line | Count | Source | 958 | 312 | { | 959 | 312 | if constexpr (ranges::contiguous_range<Range> && | 960 | 312 | ranges::sized_range<Range>) { | 961 | 312 | return true; | 962 | 312 | } | 963 | 312 | else if constexpr (std::is_same_v< | 964 | 312 | ranges::const_iterator_t<Range>, | 965 | 312 | typename detail::basic_scan_buffer< | 966 | 312 | detail::char_t<Range>>::forward_iterator>) { | 967 | 312 | auto beg = r.begin(); | 968 | 312 | if (!beg.stores_parent()) { | 969 | 312 | return true; | 970 | 312 | } | 971 | 312 | return beg.parent()->is_contiguous(); | 972 | 312 | } | 973 | 312 | else { | 974 | 312 | return false; | 975 | 312 | } | 976 | 312 | } |
bool scn::v3::impl::is_entire_source_contiguous<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >(scn::v3::ranges::detail::subrange_::subrange<char const*, char const*>) Line | Count | Source | 958 | 9.32k | { | 959 | 9.32k | if constexpr (ranges::contiguous_range<Range> && | 960 | 9.32k | ranges::sized_range<Range>) { | 961 | 9.32k | return true; | 962 | 9.32k | } | 963 | 9.32k | else if constexpr (std::is_same_v< | 964 | 9.32k | ranges::const_iterator_t<Range>, | 965 | 9.32k | typename detail::basic_scan_buffer< | 966 | 9.32k | detail::char_t<Range>>::forward_iterator>) { | 967 | 9.32k | auto beg = r.begin(); | 968 | 9.32k | if (!beg.stores_parent()) { | 969 | 9.32k | return true; | 970 | 9.32k | } | 971 | 9.32k | return beg.parent()->is_contiguous(); | 972 | 9.32k | } | 973 | 9.32k | else { | 974 | 9.32k | return false; | 975 | 9.32k | } | 976 | 9.32k | } |
Unexecuted instantiation: bool scn::v3::impl::is_entire_source_contiguous<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >(scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >) Unexecuted instantiation: bool scn::v3::impl::is_entire_source_contiguous<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>) bool scn::v3::impl::is_entire_source_contiguous<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> > >(scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >) Line | Count | Source | 958 | 18 | { | 959 | 18 | if constexpr (ranges::contiguous_range<Range> && | 960 | 18 | ranges::sized_range<Range>) { | 961 | 18 | return true; | 962 | 18 | } | 963 | 18 | else if constexpr (std::is_same_v< | 964 | 18 | ranges::const_iterator_t<Range>, | 965 | 18 | typename detail::basic_scan_buffer< | 966 | 18 | detail::char_t<Range>>::forward_iterator>) { | 967 | 18 | auto beg = r.begin(); | 968 | 18 | if (!beg.stores_parent()) { | 969 | 18 | return true; | 970 | 18 | } | 971 | 18 | return beg.parent()->is_contiguous(); | 972 | 18 | } | 973 | 18 | else { | 974 | 18 | return false; | 975 | 18 | } | 976 | 18 | } |
bool scn::v3::impl::is_entire_source_contiguous<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >(scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*>) Line | Count | Source | 958 | 5.17k | { | 959 | 5.17k | if constexpr (ranges::contiguous_range<Range> && | 960 | 5.17k | ranges::sized_range<Range>) { | 961 | 5.17k | return true; | 962 | 5.17k | } | 963 | 5.17k | else if constexpr (std::is_same_v< | 964 | 5.17k | ranges::const_iterator_t<Range>, | 965 | 5.17k | typename detail::basic_scan_buffer< | 966 | 5.17k | detail::char_t<Range>>::forward_iterator>) { | 967 | 5.17k | auto beg = r.begin(); | 968 | 5.17k | if (!beg.stores_parent()) { | 969 | 5.17k | return true; | 970 | 5.17k | } | 971 | 5.17k | return beg.parent()->is_contiguous(); | 972 | 5.17k | } | 973 | 5.17k | else { | 974 | 5.17k | return false; | 975 | 5.17k | } | 976 | 5.17k | } |
|
977 | | |
978 | | template <typename Range> |
979 | | bool is_segment_contiguous(Range r) |
980 | 14.5k | { |
981 | 14.5k | if constexpr (ranges::contiguous_range<Range> && |
982 | 14.5k | ranges::sized_range<Range>) { |
983 | 0 | return true; |
984 | 0 | } |
985 | 0 | else if constexpr (std::is_same_v< |
986 | 0 | ranges::const_iterator_t<Range>, |
987 | 0 | typename detail::basic_scan_buffer< |
988 | 0 | detail::char_t<Range>>::forward_iterator>) { |
989 | 0 | auto beg = r.begin(); |
990 | 0 | if (beg.contiguous_segment().empty()) { |
991 | 0 | return false; |
992 | 0 | } |
993 | 0 | if constexpr (ranges::common_range<Range>) { |
994 | 0 | return beg.contiguous_segment().end() == |
995 | 0 | ranges::end(r).contiguous_segment().end(); |
996 | 0 | } |
997 | 0 | else { |
998 | 0 | if (beg.stores_parent()) { |
999 | 0 | return beg.contiguous_segment().end() == |
1000 | 0 | beg.parent()->current_view().end(); |
1001 | 0 | } |
1002 | 0 | return true; |
1003 | 0 | } |
1004 | 0 | } |
1005 | 0 | else { |
1006 | 0 | return false; |
1007 | 0 | } |
1008 | 14.5k | } Unexecuted instantiation: bool scn::v3::impl::is_segment_contiguous<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>) Unexecuted instantiation: bool scn::v3::impl::is_segment_contiguous<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >(scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >) Unexecuted instantiation: bool scn::v3::impl::is_segment_contiguous<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> > >(scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >) bool scn::v3::impl::is_segment_contiguous<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >(scn::v3::ranges::detail::subrange_::subrange<char const*, char const*>) Line | Count | Source | 980 | 9.32k | { | 981 | 9.32k | if constexpr (ranges::contiguous_range<Range> && | 982 | 9.32k | ranges::sized_range<Range>) { | 983 | 9.32k | return true; | 984 | 9.32k | } | 985 | 9.32k | else if constexpr (std::is_same_v< | 986 | 9.32k | ranges::const_iterator_t<Range>, | 987 | 9.32k | typename detail::basic_scan_buffer< | 988 | 9.32k | detail::char_t<Range>>::forward_iterator>) { | 989 | 9.32k | auto beg = r.begin(); | 990 | 9.32k | if (beg.contiguous_segment().empty()) { | 991 | 9.32k | return false; | 992 | 9.32k | } | 993 | 9.32k | if constexpr (ranges::common_range<Range>) { | 994 | 9.32k | return beg.contiguous_segment().end() == | 995 | 9.32k | ranges::end(r).contiguous_segment().end(); | 996 | 9.32k | } | 997 | 9.32k | else { | 998 | 9.32k | if (beg.stores_parent()) { | 999 | 9.32k | return beg.contiguous_segment().end() == | 1000 | 9.32k | beg.parent()->current_view().end(); | 1001 | 9.32k | } | 1002 | 9.32k | return true; | 1003 | 9.32k | } | 1004 | 9.32k | } | 1005 | 9.32k | else { | 1006 | 9.32k | return false; | 1007 | 9.32k | } | 1008 | 9.32k | } |
Unexecuted instantiation: bool scn::v3::impl::is_segment_contiguous<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>) Unexecuted instantiation: bool scn::v3::impl::is_segment_contiguous<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >(scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >) Unexecuted instantiation: bool scn::v3::impl::is_segment_contiguous<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> > >(scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >) bool scn::v3::impl::is_segment_contiguous<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >(scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*>) Line | Count | Source | 980 | 5.17k | { | 981 | 5.17k | if constexpr (ranges::contiguous_range<Range> && | 982 | 5.17k | ranges::sized_range<Range>) { | 983 | 5.17k | return true; | 984 | 5.17k | } | 985 | 5.17k | else if constexpr (std::is_same_v< | 986 | 5.17k | ranges::const_iterator_t<Range>, | 987 | 5.17k | typename detail::basic_scan_buffer< | 988 | 5.17k | detail::char_t<Range>>::forward_iterator>) { | 989 | 5.17k | auto beg = r.begin(); | 990 | 5.17k | if (beg.contiguous_segment().empty()) { | 991 | 5.17k | return false; | 992 | 5.17k | } | 993 | 5.17k | if constexpr (ranges::common_range<Range>) { | 994 | 5.17k | return beg.contiguous_segment().end() == | 995 | 5.17k | ranges::end(r).contiguous_segment().end(); | 996 | 5.17k | } | 997 | 5.17k | else { | 998 | 5.17k | if (beg.stores_parent()) { | 999 | 5.17k | return beg.contiguous_segment().end() == | 1000 | 5.17k | beg.parent()->current_view().end(); | 1001 | 5.17k | } | 1002 | 5.17k | return true; | 1003 | 5.17k | } | 1004 | 5.17k | } | 1005 | 5.17k | else { | 1006 | 5.17k | return false; | 1007 | 5.17k | } | 1008 | 5.17k | } |
|
1009 | | |
1010 | | template <typename Range> |
1011 | | std::size_t contiguous_beginning_size(Range r) |
1012 | | { |
1013 | | if constexpr (ranges::contiguous_range<Range> && |
1014 | | ranges::sized_range<Range>) { |
1015 | | return r.size(); |
1016 | | } |
1017 | | else if constexpr (std::is_same_v< |
1018 | | ranges::const_iterator_t<Range>, |
1019 | | typename detail::basic_scan_buffer< |
1020 | | detail::char_t<Range>>::forward_iterator>) { |
1021 | | if constexpr (ranges::common_range<Range>) { |
1022 | | auto seg = r.begin().contiguous_segment(); |
1023 | | auto dist = |
1024 | | static_cast<size_t>(ranges::distance(r.begin(), r.end())); |
1025 | | return std::min(seg.size(), dist); |
1026 | | } |
1027 | | else { |
1028 | | return r.begin().contiguous_segment().size(); |
1029 | | } |
1030 | | } |
1031 | | else { |
1032 | | return false; |
1033 | | } |
1034 | | } |
1035 | | |
1036 | | template <typename Range> |
1037 | | auto get_contiguous_beginning(Range r) |
1038 | 3.06k | { |
1039 | 3.06k | if constexpr (ranges::contiguous_range<Range> && |
1040 | 3.06k | ranges::sized_range<Range>) { |
1041 | 3.06k | return r; |
1042 | 3.06k | } |
1043 | 3.06k | else if constexpr (std::is_same_v< |
1044 | 3.06k | ranges::const_iterator_t<Range>, |
1045 | 3.06k | typename detail::basic_scan_buffer< |
1046 | 3.06k | detail::char_t<Range>>::forward_iterator>) { |
1047 | 3.06k | if constexpr (ranges::common_range<Range>) { |
1048 | 0 | auto seg = r.begin().contiguous_segment(); |
1049 | 0 | auto dist = |
1050 | 0 | static_cast<size_t>(ranges::distance(r.begin(), r.end())); |
1051 | 0 | return seg.substr(0, std::min(seg.size(), dist)); |
1052 | 0 | } |
1053 | 0 | else { |
1054 | 0 | return r.begin().contiguous_segment(); |
1055 | 0 | } |
1056 | 0 | } |
1057 | 3.06k | else { |
1058 | 3.06k | return std::basic_string_view<detail::char_t<Range>>{}; |
1059 | 3.06k | } |
1060 | 3.06k | } Unexecuted instantiation: auto scn::v3::impl::get_contiguous_beginning<scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> > > >(scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >) Unexecuted instantiation: auto scn::v3::impl::get_contiguous_beginning<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >(scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >) Unexecuted instantiation: auto scn::v3::impl::get_contiguous_beginning<scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > > > >(scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > > >) Unexecuted instantiation: auto scn::v3::impl::get_contiguous_beginning<scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > > >(scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >) auto scn::v3::impl::get_contiguous_beginning<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> > >(scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >) Line | Count | Source | 1038 | 1.19k | { | 1039 | 1.19k | if constexpr (ranges::contiguous_range<Range> && | 1040 | 1.19k | ranges::sized_range<Range>) { | 1041 | 1.19k | return r; | 1042 | 1.19k | } | 1043 | 1.19k | else if constexpr (std::is_same_v< | 1044 | 1.19k | ranges::const_iterator_t<Range>, | 1045 | 1.19k | typename detail::basic_scan_buffer< | 1046 | 1.19k | detail::char_t<Range>>::forward_iterator>) { | 1047 | 1.19k | if constexpr (ranges::common_range<Range>) { | 1048 | 1.19k | auto seg = r.begin().contiguous_segment(); | 1049 | 1.19k | auto dist = | 1050 | 1.19k | static_cast<size_t>(ranges::distance(r.begin(), r.end())); | 1051 | 1.19k | return seg.substr(0, std::min(seg.size(), dist)); | 1052 | 1.19k | } | 1053 | 1.19k | else { | 1054 | 1.19k | return r.begin().contiguous_segment(); | 1055 | 1.19k | } | 1056 | 1.19k | } | 1057 | 1.19k | else { | 1058 | 1.19k | return std::basic_string_view<detail::char_t<Range>>{}; | 1059 | 1.19k | } | 1060 | 1.19k | } |
Unexecuted instantiation: auto scn::v3::impl::get_contiguous_beginning<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>) auto scn::v3::impl::get_contiguous_beginning<scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> > > >(scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> > >) Line | Count | Source | 1038 | 1.87k | { | 1039 | 1.87k | if constexpr (ranges::contiguous_range<Range> && | 1040 | 1.87k | ranges::sized_range<Range>) { | 1041 | 1.87k | return r; | 1042 | 1.87k | } | 1043 | 1.87k | else if constexpr (std::is_same_v< | 1044 | 1.87k | ranges::const_iterator_t<Range>, | 1045 | 1.87k | typename detail::basic_scan_buffer< | 1046 | 1.87k | detail::char_t<Range>>::forward_iterator>) { | 1047 | 1.87k | if constexpr (ranges::common_range<Range>) { | 1048 | 1.87k | auto seg = r.begin().contiguous_segment(); | 1049 | 1.87k | auto dist = | 1050 | 1.87k | static_cast<size_t>(ranges::distance(r.begin(), r.end())); | 1051 | 1.87k | return seg.substr(0, std::min(seg.size(), dist)); | 1052 | 1.87k | } | 1053 | 1.87k | else { | 1054 | 1.87k | return r.begin().contiguous_segment(); | 1055 | 1.87k | } | 1056 | 1.87k | } | 1057 | 1.87k | else { | 1058 | 1.87k | return std::basic_string_view<detail::char_t<Range>>{}; | 1059 | 1.87k | } | 1060 | 1.87k | } |
|
1061 | | |
1062 | | template <typename Range> |
1063 | | auto get_as_contiguous(Range r) |
1064 | 14.5k | { |
1065 | 14.5k | SCN_EXPECT(is_segment_contiguous(r)); |
1066 | | |
1067 | 14.5k | if constexpr (ranges::contiguous_range<Range> && |
1068 | 14.5k | ranges::sized_range<Range>) { |
1069 | 0 | return r; |
1070 | 0 | } |
1071 | 0 | else if constexpr (std::is_same_v< |
1072 | 0 | ranges::const_iterator_t<Range>, |
1073 | 0 | typename detail::basic_scan_buffer< |
1074 | 0 | detail::char_t<Range>>::forward_iterator>) { |
1075 | 0 | if constexpr (ranges::common_range<Range>) { |
1076 | 0 | return detail::make_string_view_from_pointers( |
1077 | 0 | r.begin().to_contiguous_segment_iterator(), |
1078 | 0 | r.end().to_contiguous_segment_iterator()); |
1079 | 0 | } |
1080 | 0 | else { |
1081 | 0 | return r.begin().contiguous_segment(); |
1082 | 0 | } |
1083 | 0 | } |
1084 | 0 | else { |
1085 | 0 | SCN_EXPECT(false); |
1086 | 0 | SCN_UNREACHABLE; |
1087 | | // for return type deduction |
1088 | 0 | return std::basic_string_view<detail::char_t<Range>>{}; |
1089 | 0 | } |
1090 | 14.5k | } Unexecuted instantiation: auto scn::v3::impl::get_as_contiguous<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>) Unexecuted instantiation: auto scn::v3::impl::get_as_contiguous<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >(scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >) Unexecuted instantiation: auto scn::v3::impl::get_as_contiguous<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> > >(scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >) auto scn::v3::impl::get_as_contiguous<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >(scn::v3::ranges::detail::subrange_::subrange<char const*, char const*>) Line | Count | Source | 1064 | 9.32k | { | 1065 | 9.32k | SCN_EXPECT(is_segment_contiguous(r)); | 1066 | | | 1067 | 9.32k | if constexpr (ranges::contiguous_range<Range> && | 1068 | 9.32k | ranges::sized_range<Range>) { | 1069 | 9.32k | return r; | 1070 | 9.32k | } | 1071 | 9.32k | else if constexpr (std::is_same_v< | 1072 | 9.32k | ranges::const_iterator_t<Range>, | 1073 | 9.32k | typename detail::basic_scan_buffer< | 1074 | 9.32k | detail::char_t<Range>>::forward_iterator>) { | 1075 | 9.32k | if constexpr (ranges::common_range<Range>) { | 1076 | 9.32k | return detail::make_string_view_from_pointers( | 1077 | 9.32k | r.begin().to_contiguous_segment_iterator(), | 1078 | 9.32k | r.end().to_contiguous_segment_iterator()); | 1079 | 9.32k | } | 1080 | 9.32k | else { | 1081 | 9.32k | return r.begin().contiguous_segment(); | 1082 | 9.32k | } | 1083 | 9.32k | } | 1084 | 9.32k | else { | 1085 | 9.32k | SCN_EXPECT(false); | 1086 | 9.32k | SCN_UNREACHABLE; | 1087 | | // for return type deduction | 1088 | 9.32k | return std::basic_string_view<detail::char_t<Range>>{}; | 1089 | 9.32k | } | 1090 | 9.32k | } |
Unexecuted instantiation: auto scn::v3::impl::get_as_contiguous<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>) Unexecuted instantiation: auto scn::v3::impl::get_as_contiguous<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >(scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >) Unexecuted instantiation: auto scn::v3::impl::get_as_contiguous<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> > >(scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >) auto scn::v3::impl::get_as_contiguous<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >(scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*>) Line | Count | Source | 1064 | 5.17k | { | 1065 | 5.17k | SCN_EXPECT(is_segment_contiguous(r)); | 1066 | | | 1067 | 5.17k | if constexpr (ranges::contiguous_range<Range> && | 1068 | 5.17k | ranges::sized_range<Range>) { | 1069 | 5.17k | return r; | 1070 | 5.17k | } | 1071 | 5.17k | else if constexpr (std::is_same_v< | 1072 | 5.17k | ranges::const_iterator_t<Range>, | 1073 | 5.17k | typename detail::basic_scan_buffer< | 1074 | 5.17k | detail::char_t<Range>>::forward_iterator>) { | 1075 | 5.17k | if constexpr (ranges::common_range<Range>) { | 1076 | 5.17k | return detail::make_string_view_from_pointers( | 1077 | 5.17k | r.begin().to_contiguous_segment_iterator(), | 1078 | 5.17k | r.end().to_contiguous_segment_iterator()); | 1079 | 5.17k | } | 1080 | 5.17k | else { | 1081 | 5.17k | return r.begin().contiguous_segment(); | 1082 | 5.17k | } | 1083 | 5.17k | } | 1084 | 5.17k | else { | 1085 | 5.17k | SCN_EXPECT(false); | 1086 | 5.17k | SCN_UNREACHABLE; | 1087 | | // for return type deduction | 1088 | 5.17k | return std::basic_string_view<detail::char_t<Range>>{}; | 1089 | 5.17k | } | 1090 | 5.17k | } |
|
1091 | | |
1092 | | template <typename Range> |
1093 | | std::size_t guaranteed_minimum_size(Range r) |
1094 | 4.69k | { |
1095 | 4.69k | if constexpr (ranges::sized_range<Range>) { |
1096 | 4.69k | return r.size(); |
1097 | 4.69k | } |
1098 | 4.69k | else if constexpr (std::is_same_v< |
1099 | 4.69k | ranges::const_iterator_t<Range>, |
1100 | 4.69k | typename detail::basic_scan_buffer< |
1101 | 4.69k | detail::char_t<Range>>::forward_iterator>) { |
1102 | 4.69k | if constexpr (ranges::common_range<Range>) { |
1103 | 0 | return static_cast<size_t>(ranges::distance(r.begin(), r.end())); |
1104 | 0 | } |
1105 | 0 | else { |
1106 | 0 | if (r.begin().stores_parent()) { |
1107 | 0 | return static_cast<size_t>( |
1108 | 0 | r.begin().parent()->chars_available() - |
1109 | 0 | r.begin().position()); |
1110 | 0 | } |
1111 | 0 | return r.begin().contiguous_segment().size(); |
1112 | 0 | } |
1113 | 0 | } |
1114 | 4.69k | else { |
1115 | 4.69k | return 0; |
1116 | 4.69k | } |
1117 | 4.69k | } Unexecuted instantiation: unsigned long scn::v3::impl::guaranteed_minimum_size<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>) Unexecuted instantiation: unsigned long scn::v3::impl::guaranteed_minimum_size<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >) Unexecuted instantiation: unsigned long scn::v3::impl::guaranteed_minimum_size<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >::sentinel<true> > >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >::sentinel<true> >) Unexecuted instantiation: unsigned long scn::v3::impl::guaranteed_minimum_size<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> > >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> >) Unexecuted instantiation: unsigned long scn::v3::impl::guaranteed_minimum_size<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > > >::sentinel<true> > >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > > >::sentinel<true> >) unsigned long scn::v3::impl::guaranteed_minimum_size<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> > >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> >) Line | Count | Source | 1094 | 3.05k | { | 1095 | 3.05k | if constexpr (ranges::sized_range<Range>) { | 1096 | 3.05k | return r.size(); | 1097 | 3.05k | } | 1098 | 3.05k | else if constexpr (std::is_same_v< | 1099 | 3.05k | ranges::const_iterator_t<Range>, | 1100 | 3.05k | typename detail::basic_scan_buffer< | 1101 | 3.05k | detail::char_t<Range>>::forward_iterator>) { | 1102 | 3.05k | if constexpr (ranges::common_range<Range>) { | 1103 | 3.05k | return static_cast<size_t>(ranges::distance(r.begin(), r.end())); | 1104 | 3.05k | } | 1105 | 3.05k | else { | 1106 | 3.05k | if (r.begin().stores_parent()) { | 1107 | 3.05k | return static_cast<size_t>( | 1108 | 3.05k | r.begin().parent()->chars_available() - | 1109 | 3.05k | r.begin().position()); | 1110 | 3.05k | } | 1111 | 3.05k | return r.begin().contiguous_segment().size(); | 1112 | 3.05k | } | 1113 | 3.05k | } | 1114 | 3.05k | else { | 1115 | 3.05k | return 0; | 1116 | 3.05k | } | 1117 | 3.05k | } |
Unexecuted instantiation: unsigned long scn::v3::impl::guaranteed_minimum_size<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>) Unexecuted instantiation: unsigned long scn::v3::impl::guaranteed_minimum_size<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >) Unexecuted instantiation: unsigned long scn::v3::impl::guaranteed_minimum_size<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >::sentinel<true> > >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >::sentinel<true> >) Unexecuted instantiation: unsigned long scn::v3::impl::guaranteed_minimum_size<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> > >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> >) Unexecuted instantiation: unsigned long scn::v3::impl::guaranteed_minimum_size<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > > >::sentinel<true> > >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > > >::sentinel<true> >) unsigned long scn::v3::impl::guaranteed_minimum_size<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> > >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> >) Line | Count | Source | 1094 | 554 | { | 1095 | 554 | if constexpr (ranges::sized_range<Range>) { | 1096 | 554 | return r.size(); | 1097 | 554 | } | 1098 | 554 | else if constexpr (std::is_same_v< | 1099 | 554 | ranges::const_iterator_t<Range>, | 1100 | 554 | typename detail::basic_scan_buffer< | 1101 | 554 | detail::char_t<Range>>::forward_iterator>) { | 1102 | 554 | if constexpr (ranges::common_range<Range>) { | 1103 | 554 | return static_cast<size_t>(ranges::distance(r.begin(), r.end())); | 1104 | 554 | } | 1105 | 554 | else { | 1106 | 554 | if (r.begin().stores_parent()) { | 1107 | 554 | return static_cast<size_t>( | 1108 | 554 | r.begin().parent()->chars_available() - | 1109 | 554 | r.begin().position()); | 1110 | 554 | } | 1111 | 554 | return r.begin().contiguous_segment().size(); | 1112 | 554 | } | 1113 | 554 | } | 1114 | 554 | else { | 1115 | 554 | return 0; | 1116 | 554 | } | 1117 | 554 | } |
unsigned long scn::v3::impl::guaranteed_minimum_size<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> > >::sentinel<true> > >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> > >::sentinel<true> >) Line | Count | Source | 1094 | 206 | { | 1095 | 206 | if constexpr (ranges::sized_range<Range>) { | 1096 | 206 | return r.size(); | 1097 | 206 | } | 1098 | 206 | else if constexpr (std::is_same_v< | 1099 | 206 | ranges::const_iterator_t<Range>, | 1100 | 206 | typename detail::basic_scan_buffer< | 1101 | 206 | detail::char_t<Range>>::forward_iterator>) { | 1102 | 206 | if constexpr (ranges::common_range<Range>) { | 1103 | 206 | return static_cast<size_t>(ranges::distance(r.begin(), r.end())); | 1104 | 206 | } | 1105 | 206 | else { | 1106 | 206 | if (r.begin().stores_parent()) { | 1107 | 206 | return static_cast<size_t>( | 1108 | 206 | r.begin().parent()->chars_available() - | 1109 | 206 | r.begin().position()); | 1110 | 206 | } | 1111 | 206 | return r.begin().contiguous_segment().size(); | 1112 | 206 | } | 1113 | 206 | } | 1114 | 206 | else { | 1115 | 206 | return 0; | 1116 | 206 | } | 1117 | 206 | } |
unsigned long scn::v3::impl::guaranteed_minimum_size<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> > >(scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >) Line | Count | Source | 1094 | 608 | { | 1095 | 608 | if constexpr (ranges::sized_range<Range>) { | 1096 | 608 | return r.size(); | 1097 | 608 | } | 1098 | 608 | else if constexpr (std::is_same_v< | 1099 | 608 | ranges::const_iterator_t<Range>, | 1100 | 608 | typename detail::basic_scan_buffer< | 1101 | 608 | detail::char_t<Range>>::forward_iterator>) { | 1102 | 608 | if constexpr (ranges::common_range<Range>) { | 1103 | 608 | return static_cast<size_t>(ranges::distance(r.begin(), r.end())); | 1104 | 608 | } | 1105 | 608 | else { | 1106 | 608 | if (r.begin().stores_parent()) { | 1107 | 608 | return static_cast<size_t>( | 1108 | 608 | r.begin().parent()->chars_available() - | 1109 | 608 | r.begin().position()); | 1110 | 608 | } | 1111 | 608 | return r.begin().contiguous_segment().size(); | 1112 | 608 | } | 1113 | 608 | } | 1114 | 608 | else { | 1115 | 608 | return 0; | 1116 | 608 | } | 1117 | 608 | } |
Unexecuted instantiation: unsigned long scn::v3::impl::guaranteed_minimum_size<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >(scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >) Unexecuted instantiation: unsigned long scn::v3::impl::guaranteed_minimum_size<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> > >::sentinel<true> > >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> >, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> > >::sentinel<true> >) unsigned long scn::v3::impl::guaranteed_minimum_size<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> > >(scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >) Line | Count | Source | 1094 | 268 | { | 1095 | 268 | if constexpr (ranges::sized_range<Range>) { | 1096 | 268 | return r.size(); | 1097 | 268 | } | 1098 | 268 | else if constexpr (std::is_same_v< | 1099 | 268 | ranges::const_iterator_t<Range>, | 1100 | 268 | typename detail::basic_scan_buffer< | 1101 | 268 | detail::char_t<Range>>::forward_iterator>) { | 1102 | 268 | if constexpr (ranges::common_range<Range>) { | 1103 | 268 | return static_cast<size_t>(ranges::distance(r.begin(), r.end())); | 1104 | 268 | } | 1105 | 268 | else { | 1106 | 268 | if (r.begin().stores_parent()) { | 1107 | 268 | return static_cast<size_t>( | 1108 | 268 | r.begin().parent()->chars_available() - | 1109 | 268 | r.begin().position()); | 1110 | 268 | } | 1111 | 268 | return r.begin().contiguous_segment().size(); | 1112 | 268 | } | 1113 | 268 | } | 1114 | 268 | else { | 1115 | 268 | return 0; | 1116 | 268 | } | 1117 | 268 | } |
Unexecuted instantiation: unsigned long scn::v3::impl::guaranteed_minimum_size<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >(scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >) |
1118 | | |
1119 | | template <typename I, typename T> |
1120 | | struct iterator_value_result { |
1121 | | SCN_NO_UNIQUE_ADDRESS I iterator; |
1122 | | SCN_NO_UNIQUE_ADDRESS T value; |
1123 | | }; |
1124 | | |
1125 | | ///////////////////////////////////////////////////////////////// |
1126 | | // Unicode |
1127 | | ///////////////////////////////////////////////////////////////// |
1128 | | |
1129 | | template <typename CharT> |
1130 | | constexpr bool validate_unicode(std::basic_string_view<CharT> src) |
1131 | 52.7k | { |
1132 | 52.7k | auto it = src.begin(); |
1133 | 783k | while (it != src.end()) { |
1134 | 733k | const auto len = detail::code_point_length_by_starting_code_unit(*it); |
1135 | 733k | if (len == 0) { |
1136 | 1.16k | return false; |
1137 | 1.16k | } |
1138 | 732k | if (src.end() - it < len) { |
1139 | 234 | return false; |
1140 | 234 | } |
1141 | 732k | const auto cp = detail::decode_code_point_exhaustive( |
1142 | 732k | detail::make_string_view_from_iterators<CharT>(it, it + len)); |
1143 | 732k | if (cp >= detail::invalid_code_point) { |
1144 | 1.78k | return false; |
1145 | 1.78k | } |
1146 | 730k | it += len; |
1147 | 730k | } |
1148 | 49.5k | return true; |
1149 | 52.7k | } bool scn::v3::impl::validate_unicode<char>(std::__1::basic_string_view<char, std::__1::char_traits<char> >) Line | Count | Source | 1131 | 9.72k | { | 1132 | 9.72k | auto it = src.begin(); | 1133 | 473k | while (it != src.end()) { | 1134 | 465k | const auto len = detail::code_point_length_by_starting_code_unit(*it); | 1135 | 465k | if (len == 0) { | 1136 | 1.16k | return false; | 1137 | 1.16k | } | 1138 | 464k | if (src.end() - it < len) { | 1139 | 234 | return false; | 1140 | 234 | } | 1141 | 463k | const auto cp = detail::decode_code_point_exhaustive( | 1142 | 463k | detail::make_string_view_from_iterators<CharT>(it, it + len)); | 1143 | 463k | if (cp >= detail::invalid_code_point) { | 1144 | 402 | return false; | 1145 | 402 | } | 1146 | 463k | it += len; | 1147 | 463k | } | 1148 | 7.92k | return true; | 1149 | 9.72k | } |
bool scn::v3::impl::validate_unicode<wchar_t>(std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> >) Line | Count | Source | 1131 | 43.0k | { | 1132 | 43.0k | auto it = src.begin(); | 1133 | 309k | while (it != src.end()) { | 1134 | 268k | const auto len = detail::code_point_length_by_starting_code_unit(*it); | 1135 | 268k | if (len == 0) { | 1136 | 0 | return false; | 1137 | 0 | } | 1138 | 268k | if (src.end() - it < len) { | 1139 | 0 | return false; | 1140 | 0 | } | 1141 | 268k | const auto cp = detail::decode_code_point_exhaustive( | 1142 | 268k | detail::make_string_view_from_iterators<CharT>(it, it + len)); | 1143 | 268k | if (cp >= detail::invalid_code_point) { | 1144 | 1.38k | return false; | 1145 | 1.38k | } | 1146 | 266k | it += len; | 1147 | 266k | } | 1148 | 41.6k | return true; | 1149 | 43.0k | } |
|
1150 | | |
1151 | | template <typename Range> |
1152 | | constexpr auto get_start_for_next_code_point(Range input) |
1153 | | -> ranges::const_iterator_t<Range> |
1154 | 20.4k | { |
1155 | 20.4k | auto it = input.begin(); |
1156 | 60.6k | for (; it != input.end(); ++it) { |
1157 | 59.1k | if (detail::code_point_length_by_starting_code_unit(*it) != 0) { |
1158 | 18.9k | break; |
1159 | 18.9k | } |
1160 | 59.1k | } |
1161 | 20.4k | return it; |
1162 | 20.4k | } _ZN3scn2v34impl29get_start_for_next_code_pointINSt3__117basic_string_viewIcNS3_11char_traitsIcEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS3_9add_constIT_E4typeEEEEESA_ Line | Count | Source | 1154 | 17.0k | { | 1155 | 17.0k | auto it = input.begin(); | 1156 | 55.2k | for (; it != input.end(); ++it) { | 1157 | 53.9k | if (detail::code_point_length_by_starting_code_unit(*it) != 0) { | 1158 | 15.7k | break; | 1159 | 15.7k | } | 1160 | 53.9k | } | 1161 | 17.0k | return it; | 1162 | 17.0k | } |
Unexecuted instantiation: _ZN3scn2v34impl29get_start_for_next_code_pointINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS8_INS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEENS1_15take_width_viewINS6_ISC_SD_EEE8sentinelILb1EEEEENSF_ISH_E8sentinelILb1EEEEEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESR_ Unexecuted instantiation: _ZN3scn2v34impl29get_start_for_next_code_pointINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEENS1_15take_width_viewINS6_ISC_SD_EEE8sentinelILb1EEEEEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESN_ Unexecuted instantiation: _ZN3scn2v34impl29get_start_for_next_code_pointINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS8_IPKcSA_EENS1_15take_width_viewINSt3__117basic_string_viewIcNSD_11char_traitsIcEEEEE8sentinelILb1EEEEENSC_ISI_E8sentinelILb1EEEEEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSD_9add_constIT_E4typeEEEEESR_ Unexecuted instantiation: _ZN3scn2v34impl29get_start_for_next_code_pointINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSA_EENS1_15take_width_viewINSt3__117basic_string_viewIcNSD_11char_traitsIcEEEEE8sentinelILb1EEEEEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSD_9add_constIT_E4typeEEEEESN_ _ZN3scn2v34impl29get_start_for_next_code_pointINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSA_EENS1_15take_width_viewINS6_ISA_SA_EEE8sentinelILb1EEEEEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESK_ Line | Count | Source | 1154 | 2.43k | { | 1155 | 2.43k | auto it = input.begin(); | 1156 | 3.87k | for (; it != input.end(); ++it) { | 1157 | 3.75k | if (detail::code_point_length_by_starting_code_unit(*it) != 0) { | 1158 | 2.31k | break; | 1159 | 2.31k | } | 1160 | 3.75k | } | 1161 | 2.43k | return it; | 1162 | 2.43k | } |
Unexecuted instantiation: _ZN3scn2v34impl29get_start_for_next_code_pointINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESF_ _ZN3scn2v34impl29get_start_for_next_code_pointINS0_6ranges6detail9subrange_8subrangeIPKcS8_EEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESC_ Line | Count | Source | 1154 | 954 | { | 1155 | 954 | auto it = input.begin(); | 1156 | 1.57k | for (; it != input.end(); ++it) { | 1157 | 1.53k | if (detail::code_point_length_by_starting_code_unit(*it) != 0) { | 1158 | 906 | break; | 1159 | 906 | } | 1160 | 1.53k | } | 1161 | 954 | return it; | 1162 | 954 | } |
Unexecuted instantiation: _ZN3scn2v34impl29get_start_for_next_code_pointINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS8_INS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEENS1_15take_width_viewINS6_ISC_SD_EEE8sentinelILb1EEEEENSF_ISH_E8sentinelILb1EEEEEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESR_ Unexecuted instantiation: _ZN3scn2v34impl29get_start_for_next_code_pointINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEENS1_15take_width_viewINS6_ISC_SD_EEE8sentinelILb1EEEEEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESN_ Unexecuted instantiation: _ZN3scn2v34impl29get_start_for_next_code_pointINSt3__117basic_string_viewIwNS3_11char_traitsIwEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS3_9add_constIT_E4typeEEEEESA_ Unexecuted instantiation: _ZN3scn2v34impl29get_start_for_next_code_pointINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS8_IPKwSA_EENS1_15take_width_viewINSt3__117basic_string_viewIwNSD_11char_traitsIwEEEEE8sentinelILb1EEEEENSC_ISI_E8sentinelILb1EEEEEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSD_9add_constIT_E4typeEEEEESR_ Unexecuted instantiation: _ZN3scn2v34impl29get_start_for_next_code_pointINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSA_EENS1_15take_width_viewINSt3__117basic_string_viewIwNSD_11char_traitsIwEEEEE8sentinelILb1EEEEEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSD_9add_constIT_E4typeEEEEESN_ Unexecuted instantiation: _ZN3scn2v34impl29get_start_for_next_code_pointINS0_6ranges6detail9subrange_8subrangeIPKwS8_EEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESC_ Unexecuted instantiation: _ZN3scn2v34impl29get_start_for_next_code_pointINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSA_EENS1_15take_width_viewINS6_ISA_SA_EEE8sentinelILb1EEEEEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESK_ Unexecuted instantiation: _ZN3scn2v34impl29get_start_for_next_code_pointINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESF_ Unexecuted instantiation: _ZN3scn2v34impl29get_start_for_next_code_pointINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS8_IPKcSA_EENS1_15take_width_viewINS6_ISA_SA_EEE8sentinelILb1EEEEENSC_ISE_E8sentinelILb1EEEEEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESO_ Unexecuted instantiation: _ZN3scn2v34impl29get_start_for_next_code_pointINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS8_IPKwSA_EENS1_15take_width_viewINS6_ISA_SA_EEE8sentinelILb1EEEEENSC_ISE_E8sentinelILb1EEEEEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESO_ |
1163 | | |
1164 | | template <typename CharT> |
1165 | | constexpr auto get_next_code_point(std::basic_string_view<CharT> input) |
1166 | | -> iterator_value_result<typename std::basic_string_view<CharT>::iterator, |
1167 | | char32_t> |
1168 | 352M | { |
1169 | 352M | SCN_EXPECT(!input.empty()); |
1170 | | |
1171 | 352M | const auto len = detail::code_point_length_by_starting_code_unit(input[0]); |
1172 | 352M | if (SCN_UNLIKELY(len == 0)) { |
1173 | 17.0k | return {get_start_for_next_code_point(input), |
1174 | 17.0k | detail::invalid_code_point}; |
1175 | 17.0k | } |
1176 | 352M | if (SCN_UNLIKELY(len > input.size())) { |
1177 | 955 | return {input.end(), detail::invalid_code_point}; |
1178 | 955 | } |
1179 | | |
1180 | 352M | return {input.begin() + len, |
1181 | 352M | detail::decode_code_point_exhaustive(input.substr(0, len))}; |
1182 | 352M | } scn::v3::impl::iterator_value_result<std::__1::basic_string_view<char, std::__1::char_traits<char> >::iterator, char32_t> scn::v3::impl::get_next_code_point<char>(std::__1::basic_string_view<char, std::__1::char_traits<char> >) Line | Count | Source | 1168 | 802k | { | 1169 | 802k | SCN_EXPECT(!input.empty()); | 1170 | | | 1171 | 802k | const auto len = detail::code_point_length_by_starting_code_unit(input[0]); | 1172 | 802k | if (SCN_UNLIKELY(len == 0)) { | 1173 | 17.0k | return {get_start_for_next_code_point(input), | 1174 | 17.0k | detail::invalid_code_point}; | 1175 | 17.0k | } | 1176 | 785k | if (SCN_UNLIKELY(len > input.size())) { | 1177 | 955 | return {input.end(), detail::invalid_code_point}; | 1178 | 955 | } | 1179 | | | 1180 | 784k | return {input.begin() + len, | 1181 | 784k | detail::decode_code_point_exhaustive(input.substr(0, len))}; | 1182 | 785k | } |
scn::v3::impl::iterator_value_result<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> >::iterator, char32_t> scn::v3::impl::get_next_code_point<wchar_t>(std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> >) Line | Count | Source | 1168 | 351M | { | 1169 | 351M | SCN_EXPECT(!input.empty()); | 1170 | | | 1171 | 351M | const auto len = detail::code_point_length_by_starting_code_unit(input[0]); | 1172 | 351M | if (SCN_UNLIKELY(len == 0)) { | 1173 | 0 | return {get_start_for_next_code_point(input), | 1174 | 0 | detail::invalid_code_point}; | 1175 | 0 | } | 1176 | 351M | if (SCN_UNLIKELY(len > input.size())) { | 1177 | 0 | return {input.end(), detail::invalid_code_point}; | 1178 | 0 | } | 1179 | | | 1180 | 351M | return {input.begin() + len, | 1181 | 351M | detail::decode_code_point_exhaustive(input.substr(0, len))}; | 1182 | 351M | } |
|
1183 | | |
1184 | | template <typename CharT> |
1185 | | constexpr auto get_next_code_point_valid(std::basic_string_view<CharT> input) |
1186 | | -> iterator_value_result<typename std::basic_string_view<CharT>::iterator, |
1187 | | char32_t> |
1188 | 112k | { |
1189 | 112k | SCN_EXPECT(!input.empty()); |
1190 | | |
1191 | 112k | const auto len = detail::code_point_length_by_starting_code_unit(input[0]); |
1192 | 112k | SCN_EXPECT(len <= input.size()); |
1193 | | |
1194 | 112k | return {input.begin() + len, |
1195 | 112k | detail::decode_code_point_exhaustive_valid(input.substr(0, len))}; |
1196 | 112k | } |
1197 | | |
1198 | | constexpr bool is_cp_space(char32_t cp) noexcept |
1199 | 352M | { |
1200 | | // Pattern_White_Space property |
1201 | 352M | return (cp >= 0x09 && cp <= 0x0d) || |
1202 | 352M | cp == 0x20 || // ASCII space characters |
1203 | 352M | cp == 0x85 || // NEXT LINE (NEL) |
1204 | 352M | cp == 0x200e || // LEFT-TO-RIGHT MARK |
1205 | 352M | cp == 0x200f || // RIGHT-TO-LEFT MARK |
1206 | 352M | cp == 0x2028 || // LINE SEPARATOR |
1207 | 352M | cp == 0x2029; // PARAGRAPH SEPARATOR |
1208 | 352M | } |
1209 | | |
1210 | | template <typename CharT> |
1211 | | struct is_first_char_space_result { |
1212 | | ranges::iterator_t<std::basic_string_view<CharT>> iterator; |
1213 | | char32_t cp; |
1214 | | bool is_space; |
1215 | | }; |
1216 | | |
1217 | | template <typename CharT> |
1218 | | inline constexpr auto is_first_char_space(std::basic_string_view<CharT> str) |
1219 | | -> is_first_char_space_result<CharT> |
1220 | 351M | { |
1221 | | // TODO: optimize |
1222 | 351M | SCN_EXPECT(!str.empty()); |
1223 | 351M | auto res = get_next_code_point(str); |
1224 | 351M | return {res.iterator, res.value, is_cp_space(res.value)}; |
1225 | 351M | } scn::v3::impl::is_first_char_space_result<char> scn::v3::impl::is_first_char_space<char>(std::__1::basic_string_view<char, std::__1::char_traits<char> >) Line | Count | Source | 1220 | 46.3k | { | 1221 | | // TODO: optimize | 1222 | 46.3k | SCN_EXPECT(!str.empty()); | 1223 | 46.3k | auto res = get_next_code_point(str); | 1224 | 46.3k | return {res.iterator, res.value, is_cp_space(res.value)}; | 1225 | 46.3k | } |
scn::v3::impl::is_first_char_space_result<wchar_t> scn::v3::impl::is_first_char_space<wchar_t>(std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> >) Line | Count | Source | 1220 | 351M | { | 1221 | | // TODO: optimize | 1222 | 351M | SCN_EXPECT(!str.empty()); | 1223 | 351M | auto res = get_next_code_point(str); | 1224 | 351M | return {res.iterator, res.value, is_cp_space(res.value)}; | 1225 | 351M | } |
|
1226 | | |
1227 | | inline constexpr scan_expected<wchar_t> encode_code_point_as_wide_character( |
1228 | | char32_t cp, |
1229 | | bool error_on_overflow) |
1230 | 0 | { |
1231 | 0 | SCN_EXPECT(cp < detail::invalid_code_point); |
1232 | 0 | if constexpr (sizeof(wchar_t) == sizeof(char32_t)) { |
1233 | 0 | SCN_UNUSED(error_on_overflow); |
1234 | 0 | return static_cast<wchar_t>(cp); |
1235 | 0 | } |
1236 | 0 | else { |
1237 | 0 | if (cp < 0x10000) { |
1238 | 0 | return static_cast<wchar_t>(cp); |
1239 | 0 | } |
1240 | 0 | if (error_on_overflow) { |
1241 | 0 | return unexpected_scan_error(scan_error::value_out_of_range, |
1242 | 0 | "Non-BOM code point can't be " |
1243 | 0 | "narrowed to a single 2-byte " |
1244 | 0 | "wchar_t code unit"); |
1245 | 0 | } |
1246 | | // Return the lead surrogate |
1247 | 0 | return static_cast<wchar_t>( |
1248 | 0 | (static_cast<uint32_t>(cp) - 0x10000) / 0x400 + 0xd800); |
1249 | 0 | } |
1250 | 0 | } |
1251 | | |
1252 | | template <typename SourceCharT, typename DestCharT> |
1253 | | void transcode_to_string_impl_to32(std::basic_string_view<SourceCharT> src, |
1254 | | std::basic_string<DestCharT>& dest) |
1255 | 4.76k | { |
1256 | 4.76k | static_assert(sizeof(DestCharT) == 4); |
1257 | | |
1258 | 4.76k | auto it = src.begin(); |
1259 | 692k | while (it != src.end()) { |
1260 | 687k | auto res = get_next_code_point( |
1261 | 687k | detail::make_string_view_from_iterators<SourceCharT>(it, |
1262 | 687k | src.end())); |
1263 | 687k | if (SCN_UNLIKELY(res.value == detail::invalid_code_point)) { |
1264 | 18.6k | dest.push_back(DestCharT{0xfffd}); |
1265 | 18.6k | } |
1266 | 669k | else { |
1267 | 669k | dest.push_back(res.value); |
1268 | 669k | } |
1269 | 687k | it = detail::make_string_view_iterator(src, res.iterator); |
1270 | 687k | } |
1271 | 4.76k | } |
1272 | | template <typename SourceCharT, typename DestCharT> |
1273 | | void transcode_valid_to_string_impl_to32( |
1274 | | std::basic_string_view<SourceCharT> src, |
1275 | | std::basic_string<DestCharT>& dest) |
1276 | 1.98k | { |
1277 | 1.98k | static_assert(sizeof(DestCharT) == 4); |
1278 | | |
1279 | 1.98k | auto it = src.begin(); |
1280 | 114k | while (it != src.end()) { |
1281 | 112k | auto res = get_next_code_point_valid( |
1282 | 112k | detail::make_string_view_from_iterators<SourceCharT>(it, |
1283 | 112k | src.end())); |
1284 | 112k | SCN_EXPECT(res.value < detail::invalid_code_point); |
1285 | 112k | dest.push_back(res.value); |
1286 | 112k | it = detail::make_string_view_iterator(src, res.iterator); |
1287 | 112k | } |
1288 | 1.98k | } |
1289 | | |
1290 | | template <bool VerifiedValid, typename SourceCharT, typename DestCharT> |
1291 | | void transcode_to_string_impl_32to8(std::basic_string_view<SourceCharT> src, |
1292 | | std::basic_string<DestCharT>& dest) |
1293 | 10.4k | { |
1294 | 10.4k | static_assert(sizeof(SourceCharT) == 4); |
1295 | 10.4k | static_assert(sizeof(DestCharT) == 1); |
1296 | | |
1297 | 63.9k | for (auto cp : src) { |
1298 | 63.9k | const auto u32cp = static_cast<uint32_t>(cp); |
1299 | 63.9k | if (SCN_UNLIKELY(!VerifiedValid && cp >= detail::invalid_code_point)) { |
1300 | | // Replacement character |
1301 | 0 | dest.push_back(static_cast<char>(0xef)); |
1302 | 0 | dest.push_back(static_cast<char>(0xbf)); |
1303 | 0 | dest.push_back(static_cast<char>(0xbd)); |
1304 | 0 | } |
1305 | 63.9k | else if (cp < 128) { |
1306 | 62.8k | dest.push_back(static_cast<char>(cp)); |
1307 | 62.8k | } |
1308 | 1.07k | else if (cp < 2048) { |
1309 | 132 | dest.push_back( |
1310 | 132 | static_cast<char>(0xc0 | (static_cast<char>(u32cp >> 6)))); |
1311 | 132 | dest.push_back( |
1312 | 132 | static_cast<char>(0x80 | (static_cast<char>(u32cp) & 0x3f))); |
1313 | 132 | } |
1314 | 942 | else if (cp < 65536) { |
1315 | 608 | dest.push_back( |
1316 | 608 | static_cast<char>(0xe0 | (static_cast<char>(u32cp >> 12)))); |
1317 | 608 | dest.push_back(static_cast<char>( |
1318 | 608 | 0x80 | (static_cast<char>(u32cp >> 6) & 0x3f))); |
1319 | 608 | dest.push_back( |
1320 | 608 | static_cast<char>(0x80 | (static_cast<char>(u32cp) & 0x3f))); |
1321 | 608 | } |
1322 | 334 | else { |
1323 | 334 | dest.push_back( |
1324 | 334 | static_cast<char>(0xf0 | (static_cast<char>(u32cp >> 18)))); |
1325 | 334 | dest.push_back(static_cast<char>( |
1326 | 334 | 0x80 | (static_cast<char>(u32cp >> 12) & 0x3f))); |
1327 | 334 | dest.push_back(static_cast<char>( |
1328 | 334 | 0x80 | (static_cast<char>(u32cp >> 6) & 0x3f))); |
1329 | 334 | dest.push_back( |
1330 | 334 | static_cast<char>(0x80 | (static_cast<char>(u32cp) & 0x3f))); |
1331 | 334 | } |
1332 | 63.9k | } |
1333 | 10.4k | } |
1334 | | |
1335 | | template <bool VerifiedValid, typename SourceCharT, typename DestCharT> |
1336 | | void transcode_to_string_impl_32to16(std::basic_string_view<SourceCharT> src, |
1337 | | std::basic_string<DestCharT>& dest) |
1338 | | { |
1339 | | static_assert(sizeof(SourceCharT) == 4); |
1340 | | static_assert(sizeof(DestCharT) == 2); |
1341 | | |
1342 | | for (auto cp : src) { |
1343 | | const auto u32cp = static_cast<uint32_t>(cp); |
1344 | | if (SCN_UNLIKELY(!VerifiedValid && cp >= detail::invalid_code_point)) { |
1345 | | dest.push_back(char16_t{0xfffd}); |
1346 | | } |
1347 | | else if (cp < 0x10000) { |
1348 | | dest.push_back(static_cast<char16_t>(cp)); |
1349 | | } |
1350 | | else { |
1351 | | dest.push_back( |
1352 | | static_cast<char16_t>((u32cp - 0x10000) / 0x400 + 0xd800)); |
1353 | | dest.push_back( |
1354 | | static_cast<char16_t>((u32cp - 0x10000) % 0x400 + 0xd800)); |
1355 | | } |
1356 | | } |
1357 | | } |
1358 | | |
1359 | | template <typename SourceCharT, typename DestCharT> |
1360 | | void transcode_to_string(std::basic_string_view<SourceCharT> src, |
1361 | | std::basic_string<DestCharT>& dest) |
1362 | 4.76k | { |
1363 | 4.76k | static_assert(sizeof(SourceCharT) != sizeof(DestCharT)); |
1364 | | |
1365 | 4.76k | if constexpr (sizeof(SourceCharT) == 1) { |
1366 | 4.76k | if constexpr (sizeof(DestCharT) == 2) { |
1367 | 4.76k | std::u32string tmp; |
1368 | 4.76k | transcode_to_string_impl_to32(src, tmp); |
1369 | 4.76k | return transcode_to_string_impl_32to16<false>( |
1370 | 4.76k | std::u32string_view{tmp}, dest); |
1371 | 4.76k | } |
1372 | 4.76k | else if constexpr (sizeof(DestCharT) == 4) { |
1373 | 4.76k | return transcode_to_string_impl_to32(src, dest); |
1374 | 4.76k | } |
1375 | 4.76k | } |
1376 | 0 | else if constexpr (sizeof(SourceCharT) == 2) { |
1377 | 0 | if constexpr (sizeof(DestCharT) == 1) { |
1378 | 0 | std::u32string tmp; |
1379 | 0 | transcode_to_string_impl_to32(src, tmp); |
1380 | 0 | return transcode_to_string_impl_32to8<false>( |
1381 | 0 | std::u32string_view{tmp}, dest); |
1382 | 0 | } |
1383 | 0 | else if constexpr (sizeof(DestCharT) == 4) { |
1384 | 0 | return trasncode_to_string_impl_to32(src, dest); |
1385 | 0 | } |
1386 | 0 | } |
1387 | 0 | else if constexpr (sizeof(SourceCharT) == 4) { |
1388 | 0 | if constexpr (sizeof(DestCharT) == 1) { |
1389 | 0 | return transcode_to_string_impl_32to8<false>(src, dest); |
1390 | 0 | } |
1391 | 0 | else if constexpr (sizeof(DestCharT) == 2) { |
1392 | 0 | return transcode_to_string_impl_32to16<false>(src, dest); |
1393 | 0 | } |
1394 | 0 | } |
1395 | | |
1396 | 0 | SCN_EXPECT(false); |
1397 | 0 | SCN_UNREACHABLE; |
1398 | 0 | } |
1399 | | template <typename SourceCharT, typename DestCharT> |
1400 | | void transcode_valid_to_string(std::basic_string_view<SourceCharT> src, |
1401 | | std::basic_string<DestCharT>& dest) |
1402 | 12.3k | { |
1403 | 12.3k | static_assert(sizeof(SourceCharT) != sizeof(DestCharT)); |
1404 | | |
1405 | 12.3k | SCN_EXPECT(validate_unicode(src)); |
1406 | 12.3k | if constexpr (sizeof(SourceCharT) == 1) { |
1407 | 10.4k | if constexpr (sizeof(DestCharT) == 2) { |
1408 | | // TODO: Optimize, remove utf32-step, go direct utf8->utf16 |
1409 | 1.98k | std::u32string tmp; |
1410 | 1.98k | transcode_valid_to_string_impl_to32(src, tmp); |
1411 | 1.98k | return transcode_to_string_impl_32to16<true>( |
1412 | 1.98k | std::u32string_view{tmp}, dest); |
1413 | 1.98k | } |
1414 | 1.98k | else if constexpr (sizeof(DestCharT) == 4) { |
1415 | 1.98k | return transcode_valid_to_string_impl_to32(src, dest); |
1416 | 1.98k | } |
1417 | 1.98k | } |
1418 | 10.4k | else if constexpr (sizeof(SourceCharT) == 2) { |
1419 | 10.4k | if constexpr (sizeof(DestCharT) == 1) { |
1420 | 10.4k | std::u32string tmp; |
1421 | 10.4k | transcode_valid_to_string_impl_to32(src, tmp); |
1422 | 10.4k | return transcode_to_string_impl_32to8<true>( |
1423 | 10.4k | std::u32string_view{tmp}, dest); |
1424 | 10.4k | } |
1425 | 10.4k | else if constexpr (sizeof(DestCharT) == 4) { |
1426 | 10.4k | return trasncode_valid_to_string_impl_to32(src, dest); |
1427 | 10.4k | } |
1428 | 10.4k | } |
1429 | 10.4k | else if constexpr (sizeof(SourceCharT) == 4) { |
1430 | 10.4k | if constexpr (sizeof(DestCharT) == 1) { |
1431 | 10.4k | return transcode_to_string_impl_32to8<true>(src, dest); |
1432 | 10.4k | } |
1433 | 10.4k | else if constexpr (sizeof(DestCharT) == 2) { |
1434 | 10.4k | return transcode_to_string_impl_32to16<true>(src, dest); |
1435 | 10.4k | } |
1436 | 10.4k | } |
1437 | | |
1438 | 0 | SCN_EXPECT(false); |
1439 | 0 | SCN_UNREACHABLE; |
1440 | 0 | } void scn::v3::impl::transcode_valid_to_string<char, wchar_t>(std::__1::basic_string_view<char, std::__1::char_traits<char> >, std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> >&) Line | Count | Source | 1402 | 1.98k | { | 1403 | 1.98k | static_assert(sizeof(SourceCharT) != sizeof(DestCharT)); | 1404 | | | 1405 | 1.98k | SCN_EXPECT(validate_unicode(src)); | 1406 | 1.98k | if constexpr (sizeof(SourceCharT) == 1) { | 1407 | 1.98k | if constexpr (sizeof(DestCharT) == 2) { | 1408 | | // TODO: Optimize, remove utf32-step, go direct utf8->utf16 | 1409 | 1.98k | std::u32string tmp; | 1410 | 1.98k | transcode_valid_to_string_impl_to32(src, tmp); | 1411 | 1.98k | return transcode_to_string_impl_32to16<true>( | 1412 | 1.98k | std::u32string_view{tmp}, dest); | 1413 | 1.98k | } | 1414 | 1.98k | else if constexpr (sizeof(DestCharT) == 4) { | 1415 | 1.98k | return transcode_valid_to_string_impl_to32(src, dest); | 1416 | 1.98k | } | 1417 | 1.98k | } | 1418 | 0 | else if constexpr (sizeof(SourceCharT) == 2) { | 1419 | 0 | if constexpr (sizeof(DestCharT) == 1) { | 1420 | 0 | std::u32string tmp; | 1421 | 0 | transcode_valid_to_string_impl_to32(src, tmp); | 1422 | 0 | return transcode_to_string_impl_32to8<true>( | 1423 | 0 | std::u32string_view{tmp}, dest); | 1424 | 0 | } | 1425 | 0 | else if constexpr (sizeof(DestCharT) == 4) { | 1426 | 0 | return trasncode_valid_to_string_impl_to32(src, dest); | 1427 | 0 | } | 1428 | 0 | } | 1429 | 0 | else if constexpr (sizeof(SourceCharT) == 4) { | 1430 | 0 | if constexpr (sizeof(DestCharT) == 1) { | 1431 | 0 | return transcode_to_string_impl_32to8<true>(src, dest); | 1432 | 0 | } | 1433 | 0 | else if constexpr (sizeof(DestCharT) == 2) { | 1434 | 0 | return transcode_to_string_impl_32to16<true>(src, dest); | 1435 | 0 | } | 1436 | 0 | } | 1437 | | | 1438 | 0 | SCN_EXPECT(false); | 1439 | 0 | SCN_UNREACHABLE; | 1440 | 0 | } |
void scn::v3::impl::transcode_valid_to_string<wchar_t, char>(std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) Line | Count | Source | 1402 | 10.4k | { | 1403 | 10.4k | static_assert(sizeof(SourceCharT) != sizeof(DestCharT)); | 1404 | | | 1405 | 10.4k | SCN_EXPECT(validate_unicode(src)); | 1406 | 10.4k | if constexpr (sizeof(SourceCharT) == 1) { | 1407 | 10.4k | if constexpr (sizeof(DestCharT) == 2) { | 1408 | | // TODO: Optimize, remove utf32-step, go direct utf8->utf16 | 1409 | 10.4k | std::u32string tmp; | 1410 | 10.4k | transcode_valid_to_string_impl_to32(src, tmp); | 1411 | 10.4k | return transcode_to_string_impl_32to16<true>( | 1412 | 10.4k | std::u32string_view{tmp}, dest); | 1413 | 10.4k | } | 1414 | 10.4k | else if constexpr (sizeof(DestCharT) == 4) { | 1415 | 10.4k | return transcode_valid_to_string_impl_to32(src, dest); | 1416 | 10.4k | } | 1417 | 10.4k | } | 1418 | 10.4k | else if constexpr (sizeof(SourceCharT) == 2) { | 1419 | 10.4k | if constexpr (sizeof(DestCharT) == 1) { | 1420 | 10.4k | std::u32string tmp; | 1421 | 10.4k | transcode_valid_to_string_impl_to32(src, tmp); | 1422 | 10.4k | return transcode_to_string_impl_32to8<true>( | 1423 | 10.4k | std::u32string_view{tmp}, dest); | 1424 | 10.4k | } | 1425 | 10.4k | else if constexpr (sizeof(DestCharT) == 4) { | 1426 | 10.4k | return trasncode_valid_to_string_impl_to32(src, dest); | 1427 | 10.4k | } | 1428 | 10.4k | } | 1429 | 10.4k | else if constexpr (sizeof(SourceCharT) == 4) { | 1430 | 10.4k | if constexpr (sizeof(DestCharT) == 1) { | 1431 | 10.4k | return transcode_to_string_impl_32to8<true>(src, dest); | 1432 | 10.4k | } | 1433 | 10.4k | else if constexpr (sizeof(DestCharT) == 2) { | 1434 | 10.4k | return transcode_to_string_impl_32to16<true>(src, dest); | 1435 | 10.4k | } | 1436 | 10.4k | } | 1437 | | | 1438 | 0 | SCN_EXPECT(false); | 1439 | 0 | SCN_UNREACHABLE; | 1440 | 0 | } |
|
1441 | | |
1442 | | template <typename CharT> |
1443 | | constexpr void for_each_code_point(std::basic_string_view<CharT> input, |
1444 | | function_ref<void(char32_t)> cb) |
1445 | 25.0k | { |
1446 | | // TODO: Could be optimized by being eager |
1447 | 25.0k | auto it = input.begin(); |
1448 | 68.3k | while (it != input.end()) { |
1449 | 43.3k | auto res = get_next_code_point( |
1450 | 43.3k | detail::make_string_view_from_iterators<CharT>(it, input.end())); |
1451 | 43.3k | cb(res.value); |
1452 | 43.3k | it = detail::make_string_view_iterator(input, res.iterator); |
1453 | 43.3k | } |
1454 | 25.0k | } void scn::v3::impl::for_each_code_point<char>(std::__1::basic_string_view<char, std::__1::char_traits<char> >, scn::v3::impl::function_ref<void (char32_t), void (char32_t)>) Line | Count | Source | 1445 | 21.6k | { | 1446 | | // TODO: Could be optimized by being eager | 1447 | 21.6k | auto it = input.begin(); | 1448 | 58.9k | while (it != input.end()) { | 1449 | 37.3k | auto res = get_next_code_point( | 1450 | 37.3k | detail::make_string_view_from_iterators<CharT>(it, input.end())); | 1451 | 37.3k | cb(res.value); | 1452 | 37.3k | it = detail::make_string_view_iterator(input, res.iterator); | 1453 | 37.3k | } | 1454 | 21.6k | } |
void scn::v3::impl::for_each_code_point<wchar_t>(std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> >, scn::v3::impl::function_ref<void (char32_t), void (char32_t)>) Line | Count | Source | 1445 | 3.47k | { | 1446 | | // TODO: Could be optimized by being eager | 1447 | 3.47k | auto it = input.begin(); | 1448 | 9.44k | while (it != input.end()) { | 1449 | 5.96k | auto res = get_next_code_point( | 1450 | 5.96k | detail::make_string_view_from_iterators<CharT>(it, input.end())); | 1451 | 5.96k | cb(res.value); | 1452 | 5.96k | it = detail::make_string_view_iterator(input, res.iterator); | 1453 | 5.96k | } | 1454 | 3.47k | } |
|
1455 | | |
1456 | | template <typename CharT> |
1457 | | constexpr void for_each_code_point_valid(std::basic_string_view<CharT> input, |
1458 | | function_ref<void(char32_t)> cb) |
1459 | | { |
1460 | | auto it = input.begin(); |
1461 | | while (it != input.end()) { |
1462 | | auto res = get_next_code_point_valid( |
1463 | | detail::make_string_view_from_iterators<CharT>(it, input.end())); |
1464 | | cb(res.value); |
1465 | | it = detail::make_string_view_iterator(input, res.iterator); |
1466 | | } |
1467 | | } |
1468 | | |
1469 | | ///////////////////////////////////////////////////////////////// |
1470 | | // contiguous_range_factory |
1471 | | ///////////////////////////////////////////////////////////////// |
1472 | | |
1473 | | template <typename View> |
1474 | | class take_width_view; |
1475 | | |
1476 | | template <typename CharT> |
1477 | | struct string_view_wrapper { |
1478 | | using char_type = CharT; |
1479 | | using string_type = std::basic_string<CharT>; |
1480 | | using string_view_type = std::basic_string_view<CharT>; |
1481 | | |
1482 | | constexpr string_view_wrapper() = default; |
1483 | | |
1484 | | template <typename Range, |
1485 | | std::enable_if_t<ranges::borrowed_range<Range> && |
1486 | | ranges::contiguous_range<Range> && |
1487 | | ranges::sized_range<Range>>* = nullptr> |
1488 | | constexpr string_view_wrapper(Range&& r) : sv(ranges::data(r), r.size()) |
1489 | 100k | { |
1490 | 100k | } scn::v3::impl::string_view_wrapper<char>::string_view_wrapper<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*>, (void*)0>(scn::v3::ranges::detail::subrange_::subrange<char const*, char const*>&&) Line | Count | Source | 1489 | 12.9k | { | 1490 | 12.9k | } |
scn::v3::impl::string_view_wrapper<char>::string_view_wrapper<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*>&, (void*)0>(scn::v3::ranges::detail::subrange_::subrange<char const*, char const*>&) Line | Count | Source | 1489 | 15.1k | { | 1490 | 15.1k | } |
scn::v3::impl::string_view_wrapper<wchar_t>::string_view_wrapper<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*>, (void*)0>(scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*>&&) Line | Count | Source | 1489 | 66.8k | { | 1490 | 66.8k | } |
scn::v3::impl::string_view_wrapper<char>::string_view_wrapper<std::__1::basic_string_view<char, std::__1::char_traits<char> >&, (void*)0>(std::__1::basic_string_view<char, std::__1::char_traits<char> >&) Line | Count | Source | 1489 | 5.66k | { | 1490 | 5.66k | } |
|
1491 | | |
1492 | | template <typename Range, |
1493 | | std::enable_if_t<ranges::borrowed_range<Range> && |
1494 | | ranges::contiguous_range<Range> && |
1495 | | ranges::sized_range<Range>>* = nullptr> |
1496 | | void assign(Range&& r) |
1497 | | { |
1498 | | sv = string_view_type{ranges::data(r), r.size()}; |
1499 | | } |
1500 | | |
1501 | | constexpr auto view() const |
1502 | 145k | { |
1503 | 145k | return sv; |
1504 | 145k | } scn::v3::impl::string_view_wrapper<char>::view() const Line | Count | Source | 1502 | 57.7k | { | 1503 | 57.7k | return sv; | 1504 | 57.7k | } |
scn::v3::impl::string_view_wrapper<wchar_t>::view() const Line | Count | Source | 1502 | 87.4k | { | 1503 | 87.4k | return sv; | 1504 | 87.4k | } |
|
1505 | | |
1506 | | constexpr bool stores_allocated_string() const |
1507 | 0 | { |
1508 | 0 | return false; |
1509 | 0 | } Unexecuted instantiation: scn::v3::impl::string_view_wrapper<char>::stores_allocated_string() const Unexecuted instantiation: scn::v3::impl::string_view_wrapper<wchar_t>::stores_allocated_string() const |
1510 | | |
1511 | | [[noreturn]] string_type get_allocated_string() const |
1512 | | { |
1513 | | SCN_EXPECT(false); |
1514 | | SCN_UNREACHABLE; |
1515 | | } |
1516 | | |
1517 | | string_view_type sv; |
1518 | | }; |
1519 | | |
1520 | | template <typename Range> |
1521 | | string_view_wrapper(Range) |
1522 | | -> string_view_wrapper<detail::char_t<detail::remove_cvref_t<Range>>>; |
1523 | | |
1524 | | template <typename CharT> |
1525 | | class contiguous_range_factory { |
1526 | | public: |
1527 | | using char_type = CharT; |
1528 | | using string_type = std::basic_string<CharT>; |
1529 | | using string_view_type = std::basic_string_view<CharT>; |
1530 | | |
1531 | 23.2k | contiguous_range_factory() = default; scn::v3::impl::contiguous_range_factory<char>::contiguous_range_factory() Line | Count | Source | 1531 | 2.30k | contiguous_range_factory() = default; |
scn::v3::impl::contiguous_range_factory<wchar_t>::contiguous_range_factory() Line | Count | Source | 1531 | 20.9k | contiguous_range_factory() = default; |
|
1532 | | |
1533 | | template <typename Range, |
1534 | | std::enable_if_t<ranges::forward_range<Range>>* = nullptr> |
1535 | | contiguous_range_factory(Range&& range) |
1536 | 1.83k | { |
1537 | 1.83k | emplace_range(SCN_FWD(range)); |
1538 | 1.83k | } Unexecuted instantiation: scn::v3::impl::contiguous_range_factory<char>::contiguous_range_factory<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >, (void*)0>(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >&&) Unexecuted instantiation: scn::v3::impl::contiguous_range_factory<char>::contiguous_range_factory<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::detail::basic_scan_buffer<char>::forward_iterator>, (void*)0>(scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::detail::basic_scan_buffer<char>::forward_iterator>&&) scn::v3::impl::contiguous_range_factory<char>::contiguous_range_factory<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> >, (void*)0>(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> >&&) Line | Count | Source | 1536 | 1.53k | { | 1537 | 1.53k | emplace_range(SCN_FWD(range)); | 1538 | 1.53k | } |
Unexecuted instantiation: scn::v3::impl::contiguous_range_factory<wchar_t>::contiguous_range_factory<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >, (void*)0>(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >&&) Unexecuted instantiation: scn::v3::impl::contiguous_range_factory<wchar_t>::contiguous_range_factory<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator>, (void*)0>(scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator>&&) scn::v3::impl::contiguous_range_factory<wchar_t>::contiguous_range_factory<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> >, (void*)0>(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> >&&) Line | Count | Source | 1536 | 298 | { | 1537 | 298 | emplace_range(SCN_FWD(range)); | 1538 | 298 | } |
|
1539 | | |
1540 | | contiguous_range_factory(string_view_wrapper<CharT> svw) |
1541 | | : m_storage(std::nullopt), m_view(svw.view()) |
1542 | | { |
1543 | | } |
1544 | | |
1545 | | contiguous_range_factory(const contiguous_range_factory&) = delete; |
1546 | | contiguous_range_factory& operator=(const contiguous_range_factory&) = |
1547 | | delete; |
1548 | | |
1549 | | contiguous_range_factory(contiguous_range_factory&& other) |
1550 | | : m_storage(SCN_MOVE(other.m_storage)) |
1551 | | { |
1552 | | if (m_storage) { |
1553 | | m_view = *m_storage; |
1554 | | } |
1555 | | else { |
1556 | | m_view = other.m_view; |
1557 | | } |
1558 | | } |
1559 | | contiguous_range_factory& operator=(contiguous_range_factory&& other) |
1560 | | { |
1561 | | m_storage = SCN_MOVE(other.m_storage); |
1562 | | if (m_storage) { |
1563 | | m_view = *m_storage; |
1564 | | } |
1565 | | else { |
1566 | | m_view = other.m_view; |
1567 | | } |
1568 | | return *this; |
1569 | | } |
1570 | | |
1571 | 25.0k | ~contiguous_range_factory() = default; scn::v3::impl::contiguous_range_factory<char>::~contiguous_range_factory() Line | Count | Source | 1571 | 3.84k | ~contiguous_range_factory() = default; |
scn::v3::impl::contiguous_range_factory<wchar_t>::~contiguous_range_factory() Line | Count | Source | 1571 | 21.2k | ~contiguous_range_factory() = default; |
|
1572 | | |
1573 | | template <typename Range, |
1574 | | std::enable_if_t<ranges::forward_range<Range>>* = nullptr> |
1575 | | void assign(Range&& range) |
1576 | 11.1k | { |
1577 | 11.1k | emplace_range(SCN_FWD(range)); |
1578 | 11.1k | } Unexecuted instantiation: void scn::v3::impl::contiguous_range_factory<char>::assign<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >, (void*)0>(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >&&) Unexecuted instantiation: void scn::v3::impl::contiguous_range_factory<char>::assign<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::detail::basic_scan_buffer<char>::forward_iterator>, (void*)0>(scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::detail::basic_scan_buffer<char>::forward_iterator>&&) Unexecuted instantiation: void scn::v3::impl::contiguous_range_factory<char>::assign<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> >, (void*)0>(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> >&&) void scn::v3::impl::contiguous_range_factory<char>::assign<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*>, (void*)0>(scn::v3::ranges::detail::subrange_::subrange<char const*, char const*>&&) Line | Count | Source | 1576 | 856 | { | 1577 | 856 | emplace_range(SCN_FWD(range)); | 1578 | 856 | } |
Unexecuted instantiation: void scn::v3::impl::contiguous_range_factory<wchar_t>::assign<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >, (void*)0>(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >&&) Unexecuted instantiation: void scn::v3::impl::contiguous_range_factory<wchar_t>::assign<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator>, (void*)0>(scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator>&&) Unexecuted instantiation: void scn::v3::impl::contiguous_range_factory<wchar_t>::assign<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> >, (void*)0>(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> >&&) void scn::v3::impl::contiguous_range_factory<wchar_t>::assign<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*>, (void*)0>(scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*>&&) Line | Count | Source | 1576 | 10.3k | { | 1577 | 10.3k | emplace_range(SCN_FWD(range)); | 1578 | 10.3k | } |
Unexecuted instantiation: void scn::v3::impl::contiguous_range_factory<char>::assign<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, (void*)0>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&&) Unexecuted instantiation: void scn::v3::impl::contiguous_range_factory<wchar_t>::assign<std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> >, (void*)0>(std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> >&&) |
1579 | | |
1580 | | string_view_type view() const |
1581 | 24.6k | { |
1582 | 24.6k | return m_view; |
1583 | 24.6k | } scn::v3::impl::contiguous_range_factory<char>::view() const Line | Count | Source | 1581 | 3.60k | { | 1582 | 3.60k | return m_view; | 1583 | 3.60k | } |
scn::v3::impl::contiguous_range_factory<wchar_t>::view() const Line | Count | Source | 1581 | 21.0k | { | 1582 | 21.0k | return m_view; | 1583 | 21.0k | } |
|
1584 | | |
1585 | | constexpr bool stores_allocated_string() const |
1586 | 876 | { |
1587 | 876 | return m_storage.has_value(); |
1588 | 876 | } scn::v3::impl::contiguous_range_factory<char>::stores_allocated_string() const Line | Count | Source | 1586 | 724 | { | 1587 | 724 | return m_storage.has_value(); | 1588 | 724 | } |
scn::v3::impl::contiguous_range_factory<wchar_t>::stores_allocated_string() const Line | Count | Source | 1586 | 152 | { | 1587 | 152 | return m_storage.has_value(); | 1588 | 152 | } |
|
1589 | | |
1590 | | string_type& get_allocated_string() & |
1591 | 438 | { |
1592 | 438 | SCN_EXPECT(stores_allocated_string()); |
1593 | 438 | return *m_storage; |
1594 | 438 | } scn::v3::impl::contiguous_range_factory<char>::get_allocated_string() & Line | Count | Source | 1591 | 362 | { | 1592 | 362 | SCN_EXPECT(stores_allocated_string()); | 1593 | 362 | return *m_storage; | 1594 | 362 | } |
scn::v3::impl::contiguous_range_factory<wchar_t>::get_allocated_string() & Line | Count | Source | 1591 | 76 | { | 1592 | 76 | SCN_EXPECT(stores_allocated_string()); | 1593 | 76 | return *m_storage; | 1594 | 76 | } |
|
1595 | | const string_type& get_allocated_string() const& |
1596 | | { |
1597 | | SCN_EXPECT(stores_allocated_string()); |
1598 | | return *m_storage; |
1599 | | } |
1600 | | string_type&& get_allocated_string() && |
1601 | | { |
1602 | | SCN_EXPECT(stores_allocated_string()); |
1603 | | return *m_storage; |
1604 | | } |
1605 | | |
1606 | | string_type& make_into_allocated_string() |
1607 | 0 | { |
1608 | 0 | if (stores_allocated_string()) { |
1609 | 0 | return get_allocated_string(); |
1610 | 0 | } |
1611 | | |
1612 | 0 | auto& str = m_storage.emplace(m_view.data(), m_view.size()); |
1613 | 0 | m_view = string_view_type{str.data(), str.size()}; |
1614 | 0 | return str; |
1615 | 0 | } Unexecuted instantiation: scn::v3::impl::contiguous_range_factory<char>::make_into_allocated_string() Unexecuted instantiation: scn::v3::impl::contiguous_range_factory<wchar_t>::make_into_allocated_string() |
1616 | | |
1617 | | private: |
1618 | | template <typename Range> |
1619 | | void emplace_range(Range&& range) |
1620 | 13.0k | { |
1621 | 13.0k | using value_t = ranges::range_value_t<Range>; |
1622 | | |
1623 | 13.0k | if constexpr (ranges::borrowed_range<Range> && |
1624 | 13.0k | ranges::contiguous_range<Range> && |
1625 | 13.0k | ranges::sized_range<Range>) { |
1626 | 1.83k | m_storage.reset(); |
1627 | 1.83k | m_view = string_view_type{ranges::data(range), range.size()}; |
1628 | 1.83k | } |
1629 | 1.83k | else if constexpr (std::is_same_v<detail::remove_cvref_t<Range>, |
1630 | 1.83k | std::basic_string<CharT>>) { |
1631 | 1.83k | m_storage.emplace(SCN_FWD(range)); |
1632 | 0 | m_view = string_view_type{*m_storage}; |
1633 | 0 | } |
1634 | 1.83k | else if constexpr (std::is_same_v<ranges::iterator_t<Range>, |
1635 | 1.83k | typename detail::basic_scan_buffer< |
1636 | 1.83k | value_t>::forward_iterator> && |
1637 | 1.83k | ranges::common_range<Range>) { |
1638 | 1.83k | auto beg_seg = range.begin().contiguous_segment(); |
1639 | 1.83k | auto end_seg = range.end().contiguous_segment(); |
1640 | 1.83k | if (SCN_UNLIKELY(detail::to_address(beg_seg.end()) != |
1641 | 1.83k | detail::to_address(end_seg.end()))) { |
1642 | 0 | auto& str = m_storage.emplace(); |
1643 | 0 | str.reserve(range.end().position() - range.begin().position()); |
1644 | 0 | std::copy(range.begin(), range.end(), std::back_inserter(str)); |
1645 | 0 | m_view = string_view_type{str}; |
1646 | 0 | return; |
1647 | 0 | } |
1648 | | |
1649 | 0 | m_view = detail::make_string_view_from_pointers(beg_seg.data(), |
1650 | 0 | end_seg.data()); |
1651 | 0 | m_storage.reset(); |
1652 | 0 | } |
1653 | 1.83k | else { |
1654 | 1.83k | auto& str = m_storage.emplace(); |
1655 | 1.83k | if constexpr (ranges::sized_range<Range>) { |
1656 | 1.83k | str.reserve(range.size()); |
1657 | 1.83k | } |
1658 | 1.83k | if constexpr (ranges::common_range<Range>) { |
1659 | 1.83k | std::copy(ranges::begin(range), ranges::end(range), |
1660 | 1.83k | std::back_inserter(str)); |
1661 | 1.83k | } |
1662 | 1.83k | else { |
1663 | 1.83k | for (auto it = ranges::begin(range); it != ranges::end(range); |
1664 | 1.83k | ++it) { |
1665 | 1.83k | str.push_back(*it); |
1666 | 1.83k | } |
1667 | 1.83k | } |
1668 | 1.83k | m_view = string_view_type{str}; |
1669 | 1.83k | } |
1670 | 13.0k | } Unexecuted instantiation: void scn::v3::impl::contiguous_range_factory<char>::emplace_range<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >&&) Unexecuted instantiation: void scn::v3::impl::contiguous_range_factory<char>::emplace_range<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::detail::basic_scan_buffer<char>::forward_iterator> >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::detail::basic_scan_buffer<char>::forward_iterator>&&) void scn::v3::impl::contiguous_range_factory<char>::emplace_range<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> > >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> >&&) Line | Count | Source | 1620 | 1.53k | { | 1621 | 1.53k | using value_t = ranges::range_value_t<Range>; | 1622 | | | 1623 | 1.53k | if constexpr (ranges::borrowed_range<Range> && | 1624 | 1.53k | ranges::contiguous_range<Range> && | 1625 | 1.53k | ranges::sized_range<Range>) { | 1626 | 1.53k | m_storage.reset(); | 1627 | 1.53k | m_view = string_view_type{ranges::data(range), range.size()}; | 1628 | 1.53k | } | 1629 | 1.53k | else if constexpr (std::is_same_v<detail::remove_cvref_t<Range>, | 1630 | 1.53k | std::basic_string<CharT>>) { | 1631 | 1.53k | m_storage.emplace(SCN_FWD(range)); | 1632 | 1.53k | m_view = string_view_type{*m_storage}; | 1633 | 1.53k | } | 1634 | 1.53k | else if constexpr (std::is_same_v<ranges::iterator_t<Range>, | 1635 | 1.53k | typename detail::basic_scan_buffer< | 1636 | 1.53k | value_t>::forward_iterator> && | 1637 | 1.53k | ranges::common_range<Range>) { | 1638 | 1.53k | auto beg_seg = range.begin().contiguous_segment(); | 1639 | 1.53k | auto end_seg = range.end().contiguous_segment(); | 1640 | 1.53k | if (SCN_UNLIKELY(detail::to_address(beg_seg.end()) != | 1641 | 1.53k | detail::to_address(end_seg.end()))) { | 1642 | 1.53k | auto& str = m_storage.emplace(); | 1643 | 1.53k | str.reserve(range.end().position() - range.begin().position()); | 1644 | 1.53k | std::copy(range.begin(), range.end(), std::back_inserter(str)); | 1645 | 1.53k | m_view = string_view_type{str}; | 1646 | 1.53k | return; | 1647 | 1.53k | } | 1648 | | | 1649 | 1.53k | m_view = detail::make_string_view_from_pointers(beg_seg.data(), | 1650 | 1.53k | end_seg.data()); | 1651 | 1.53k | m_storage.reset(); | 1652 | 1.53k | } | 1653 | 1.53k | else { | 1654 | 1.53k | auto& str = m_storage.emplace(); | 1655 | 1.53k | if constexpr (ranges::sized_range<Range>) { | 1656 | 1.53k | str.reserve(range.size()); | 1657 | 1.53k | } | 1658 | 1.53k | if constexpr (ranges::common_range<Range>) { | 1659 | 1.53k | std::copy(ranges::begin(range), ranges::end(range), | 1660 | 1.53k | std::back_inserter(str)); | 1661 | 1.53k | } | 1662 | 1.53k | else { | 1663 | 1.53k | for (auto it = ranges::begin(range); it != ranges::end(range); | 1664 | 1.53k | ++it) { | 1665 | 1.53k | str.push_back(*it); | 1666 | 1.53k | } | 1667 | 1.53k | } | 1668 | 1.53k | m_view = string_view_type{str}; | 1669 | 1.53k | } | 1670 | 1.53k | } |
void scn::v3::impl::contiguous_range_factory<char>::emplace_range<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >(scn::v3::ranges::detail::subrange_::subrange<char const*, char const*>&&) Line | Count | Source | 1620 | 856 | { | 1621 | 856 | using value_t = ranges::range_value_t<Range>; | 1622 | | | 1623 | 856 | if constexpr (ranges::borrowed_range<Range> && | 1624 | 856 | ranges::contiguous_range<Range> && | 1625 | 856 | ranges::sized_range<Range>) { | 1626 | 856 | m_storage.reset(); | 1627 | 856 | m_view = string_view_type{ranges::data(range), range.size()}; | 1628 | 856 | } | 1629 | 856 | else if constexpr (std::is_same_v<detail::remove_cvref_t<Range>, | 1630 | 856 | std::basic_string<CharT>>) { | 1631 | 856 | m_storage.emplace(SCN_FWD(range)); | 1632 | 856 | m_view = string_view_type{*m_storage}; | 1633 | 856 | } | 1634 | 856 | else if constexpr (std::is_same_v<ranges::iterator_t<Range>, | 1635 | 856 | typename detail::basic_scan_buffer< | 1636 | 856 | value_t>::forward_iterator> && | 1637 | 856 | ranges::common_range<Range>) { | 1638 | 856 | auto beg_seg = range.begin().contiguous_segment(); | 1639 | 856 | auto end_seg = range.end().contiguous_segment(); | 1640 | 856 | if (SCN_UNLIKELY(detail::to_address(beg_seg.end()) != | 1641 | 856 | detail::to_address(end_seg.end()))) { | 1642 | 856 | auto& str = m_storage.emplace(); | 1643 | 856 | str.reserve(range.end().position() - range.begin().position()); | 1644 | 856 | std::copy(range.begin(), range.end(), std::back_inserter(str)); | 1645 | 856 | m_view = string_view_type{str}; | 1646 | 856 | return; | 1647 | 856 | } | 1648 | | | 1649 | 856 | m_view = detail::make_string_view_from_pointers(beg_seg.data(), | 1650 | 856 | end_seg.data()); | 1651 | 856 | m_storage.reset(); | 1652 | 856 | } | 1653 | 856 | else { | 1654 | 856 | auto& str = m_storage.emplace(); | 1655 | 856 | if constexpr (ranges::sized_range<Range>) { | 1656 | 856 | str.reserve(range.size()); | 1657 | 856 | } | 1658 | 856 | if constexpr (ranges::common_range<Range>) { | 1659 | 856 | std::copy(ranges::begin(range), ranges::end(range), | 1660 | 856 | std::back_inserter(str)); | 1661 | 856 | } | 1662 | 856 | else { | 1663 | 856 | for (auto it = ranges::begin(range); it != ranges::end(range); | 1664 | 856 | ++it) { | 1665 | 856 | str.push_back(*it); | 1666 | 856 | } | 1667 | 856 | } | 1668 | 856 | m_view = string_view_type{str}; | 1669 | 856 | } | 1670 | 856 | } |
Unexecuted instantiation: void scn::v3::impl::contiguous_range_factory<wchar_t>::emplace_range<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >&&) Unexecuted instantiation: void scn::v3::impl::contiguous_range_factory<wchar_t>::emplace_range<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator>&&) void scn::v3::impl::contiguous_range_factory<wchar_t>::emplace_range<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> > >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> >&&) Line | Count | Source | 1620 | 298 | { | 1621 | 298 | using value_t = ranges::range_value_t<Range>; | 1622 | | | 1623 | 298 | if constexpr (ranges::borrowed_range<Range> && | 1624 | 298 | ranges::contiguous_range<Range> && | 1625 | 298 | ranges::sized_range<Range>) { | 1626 | 298 | m_storage.reset(); | 1627 | 298 | m_view = string_view_type{ranges::data(range), range.size()}; | 1628 | 298 | } | 1629 | 298 | else if constexpr (std::is_same_v<detail::remove_cvref_t<Range>, | 1630 | 298 | std::basic_string<CharT>>) { | 1631 | 298 | m_storage.emplace(SCN_FWD(range)); | 1632 | 298 | m_view = string_view_type{*m_storage}; | 1633 | 298 | } | 1634 | 298 | else if constexpr (std::is_same_v<ranges::iterator_t<Range>, | 1635 | 298 | typename detail::basic_scan_buffer< | 1636 | 298 | value_t>::forward_iterator> && | 1637 | 298 | ranges::common_range<Range>) { | 1638 | 298 | auto beg_seg = range.begin().contiguous_segment(); | 1639 | 298 | auto end_seg = range.end().contiguous_segment(); | 1640 | 298 | if (SCN_UNLIKELY(detail::to_address(beg_seg.end()) != | 1641 | 298 | detail::to_address(end_seg.end()))) { | 1642 | 298 | auto& str = m_storage.emplace(); | 1643 | 298 | str.reserve(range.end().position() - range.begin().position()); | 1644 | 298 | std::copy(range.begin(), range.end(), std::back_inserter(str)); | 1645 | 298 | m_view = string_view_type{str}; | 1646 | 298 | return; | 1647 | 298 | } | 1648 | | | 1649 | 298 | m_view = detail::make_string_view_from_pointers(beg_seg.data(), | 1650 | 298 | end_seg.data()); | 1651 | 298 | m_storage.reset(); | 1652 | 298 | } | 1653 | 298 | else { | 1654 | 298 | auto& str = m_storage.emplace(); | 1655 | 298 | if constexpr (ranges::sized_range<Range>) { | 1656 | 298 | str.reserve(range.size()); | 1657 | 298 | } | 1658 | 298 | if constexpr (ranges::common_range<Range>) { | 1659 | 298 | std::copy(ranges::begin(range), ranges::end(range), | 1660 | 298 | std::back_inserter(str)); | 1661 | 298 | } | 1662 | 298 | else { | 1663 | 298 | for (auto it = ranges::begin(range); it != ranges::end(range); | 1664 | 298 | ++it) { | 1665 | 298 | str.push_back(*it); | 1666 | 298 | } | 1667 | 298 | } | 1668 | 298 | m_view = string_view_type{str}; | 1669 | 298 | } | 1670 | 298 | } |
void scn::v3::impl::contiguous_range_factory<wchar_t>::emplace_range<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >(scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*>&&) Line | Count | Source | 1620 | 10.3k | { | 1621 | 10.3k | using value_t = ranges::range_value_t<Range>; | 1622 | | | 1623 | 10.3k | if constexpr (ranges::borrowed_range<Range> && | 1624 | 10.3k | ranges::contiguous_range<Range> && | 1625 | 10.3k | ranges::sized_range<Range>) { | 1626 | 10.3k | m_storage.reset(); | 1627 | 10.3k | m_view = string_view_type{ranges::data(range), range.size()}; | 1628 | 10.3k | } | 1629 | 10.3k | else if constexpr (std::is_same_v<detail::remove_cvref_t<Range>, | 1630 | 10.3k | std::basic_string<CharT>>) { | 1631 | 10.3k | m_storage.emplace(SCN_FWD(range)); | 1632 | 10.3k | m_view = string_view_type{*m_storage}; | 1633 | 10.3k | } | 1634 | 10.3k | else if constexpr (std::is_same_v<ranges::iterator_t<Range>, | 1635 | 10.3k | typename detail::basic_scan_buffer< | 1636 | 10.3k | value_t>::forward_iterator> && | 1637 | 10.3k | ranges::common_range<Range>) { | 1638 | 10.3k | auto beg_seg = range.begin().contiguous_segment(); | 1639 | 10.3k | auto end_seg = range.end().contiguous_segment(); | 1640 | 10.3k | if (SCN_UNLIKELY(detail::to_address(beg_seg.end()) != | 1641 | 10.3k | detail::to_address(end_seg.end()))) { | 1642 | 10.3k | auto& str = m_storage.emplace(); | 1643 | 10.3k | str.reserve(range.end().position() - range.begin().position()); | 1644 | 10.3k | std::copy(range.begin(), range.end(), std::back_inserter(str)); | 1645 | 10.3k | m_view = string_view_type{str}; | 1646 | 10.3k | return; | 1647 | 10.3k | } | 1648 | | | 1649 | 10.3k | m_view = detail::make_string_view_from_pointers(beg_seg.data(), | 1650 | 10.3k | end_seg.data()); | 1651 | 10.3k | m_storage.reset(); | 1652 | 10.3k | } | 1653 | 10.3k | else { | 1654 | 10.3k | auto& str = m_storage.emplace(); | 1655 | 10.3k | if constexpr (ranges::sized_range<Range>) { | 1656 | 10.3k | str.reserve(range.size()); | 1657 | 10.3k | } | 1658 | 10.3k | if constexpr (ranges::common_range<Range>) { | 1659 | 10.3k | std::copy(ranges::begin(range), ranges::end(range), | 1660 | 10.3k | std::back_inserter(str)); | 1661 | 10.3k | } | 1662 | 10.3k | else { | 1663 | 10.3k | for (auto it = ranges::begin(range); it != ranges::end(range); | 1664 | 10.3k | ++it) { | 1665 | 10.3k | str.push_back(*it); | 1666 | 10.3k | } | 1667 | 10.3k | } | 1668 | 10.3k | m_view = string_view_type{str}; | 1669 | 10.3k | } | 1670 | 10.3k | } |
Unexecuted instantiation: void scn::v3::impl::contiguous_range_factory<char>::emplace_range<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&&) Unexecuted instantiation: void scn::v3::impl::contiguous_range_factory<wchar_t>::emplace_range<std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> > >(std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> >&&) |
1671 | | |
1672 | | std::optional<string_type> m_storage{std::nullopt}; |
1673 | | string_view_type m_view{}; |
1674 | | }; |
1675 | | |
1676 | | template <typename Range> |
1677 | | contiguous_range_factory(Range) |
1678 | | -> contiguous_range_factory<detail::char_t<detail::remove_cvref_t<Range>>>; |
1679 | | |
1680 | | template <typename Range> |
1681 | | auto make_contiguous_buffer(Range&& range) |
1682 | 102k | { |
1683 | 102k | if constexpr (ranges::borrowed_range<Range> && |
1684 | 102k | ranges::contiguous_range<Range> && |
1685 | 102k | ranges::sized_range<Range>) { |
1686 | 100k | return string_view_wrapper{SCN_FWD(range)}; |
1687 | 100k | } |
1688 | 1.83k | else { |
1689 | 1.83k | return contiguous_range_factory{SCN_FWD(range)}; |
1690 | 1.83k | } |
1691 | 102k | } Unexecuted instantiation: auto scn::v3::impl::make_contiguous_buffer<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >&&) Unexecuted instantiation: auto scn::v3::impl::make_contiguous_buffer<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::detail::basic_scan_buffer<char>::forward_iterator> >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::detail::basic_scan_buffer<char>::forward_iterator>&&) auto scn::v3::impl::make_contiguous_buffer<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> > >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> >&&) Line | Count | Source | 1682 | 1.53k | { | 1683 | 1.53k | if constexpr (ranges::borrowed_range<Range> && | 1684 | 1.53k | ranges::contiguous_range<Range> && | 1685 | 1.53k | ranges::sized_range<Range>) { | 1686 | 1.53k | return string_view_wrapper{SCN_FWD(range)}; | 1687 | 1.53k | } | 1688 | 1.53k | else { | 1689 | 1.53k | return contiguous_range_factory{SCN_FWD(range)}; | 1690 | 1.53k | } | 1691 | 1.53k | } |
auto scn::v3::impl::make_contiguous_buffer<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >(scn::v3::ranges::detail::subrange_::subrange<char const*, char const*>&&) Line | Count | Source | 1682 | 12.9k | { | 1683 | 12.9k | if constexpr (ranges::borrowed_range<Range> && | 1684 | 12.9k | ranges::contiguous_range<Range> && | 1685 | 12.9k | ranges::sized_range<Range>) { | 1686 | 12.9k | return string_view_wrapper{SCN_FWD(range)}; | 1687 | 12.9k | } | 1688 | 12.9k | else { | 1689 | 12.9k | return contiguous_range_factory{SCN_FWD(range)}; | 1690 | 12.9k | } | 1691 | 12.9k | } |
auto scn::v3::impl::make_contiguous_buffer<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*>&>(scn::v3::ranges::detail::subrange_::subrange<char const*, char const*>&) Line | Count | Source | 1682 | 15.1k | { | 1683 | 15.1k | if constexpr (ranges::borrowed_range<Range> && | 1684 | 15.1k | ranges::contiguous_range<Range> && | 1685 | 15.1k | ranges::sized_range<Range>) { | 1686 | 15.1k | return string_view_wrapper{SCN_FWD(range)}; | 1687 | 15.1k | } | 1688 | 15.1k | else { | 1689 | 15.1k | return contiguous_range_factory{SCN_FWD(range)}; | 1690 | 15.1k | } | 1691 | 15.1k | } |
Unexecuted instantiation: auto scn::v3::impl::make_contiguous_buffer<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >&&) Unexecuted instantiation: auto scn::v3::impl::make_contiguous_buffer<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator>&&) auto scn::v3::impl::make_contiguous_buffer<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> > >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> >&&) Line | Count | Source | 1682 | 298 | { | 1683 | 298 | if constexpr (ranges::borrowed_range<Range> && | 1684 | 298 | ranges::contiguous_range<Range> && | 1685 | 298 | ranges::sized_range<Range>) { | 1686 | 298 | return string_view_wrapper{SCN_FWD(range)}; | 1687 | 298 | } | 1688 | 298 | else { | 1689 | 298 | return contiguous_range_factory{SCN_FWD(range)}; | 1690 | 298 | } | 1691 | 298 | } |
auto scn::v3::impl::make_contiguous_buffer<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >(scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*>&&) Line | Count | Source | 1682 | 66.8k | { | 1683 | 66.8k | if constexpr (ranges::borrowed_range<Range> && | 1684 | 66.8k | ranges::contiguous_range<Range> && | 1685 | 66.8k | ranges::sized_range<Range>) { | 1686 | 66.8k | return string_view_wrapper{SCN_FWD(range)}; | 1687 | 66.8k | } | 1688 | 66.8k | else { | 1689 | 66.8k | return contiguous_range_factory{SCN_FWD(range)}; | 1690 | 66.8k | } | 1691 | 66.8k | } |
auto scn::v3::impl::make_contiguous_buffer<std::__1::basic_string_view<char, std::__1::char_traits<char> >&>(std::__1::basic_string_view<char, std::__1::char_traits<char> >&) Line | Count | Source | 1682 | 5.66k | { | 1683 | 5.66k | if constexpr (ranges::borrowed_range<Range> && | 1684 | 5.66k | ranges::contiguous_range<Range> && | 1685 | 5.66k | ranges::sized_range<Range>) { | 1686 | 5.66k | return string_view_wrapper{SCN_FWD(range)}; | 1687 | 5.66k | } | 1688 | 5.66k | else { | 1689 | 5.66k | return contiguous_range_factory{SCN_FWD(range)}; | 1690 | 5.66k | } | 1691 | 5.66k | } |
|
1692 | | } // namespace impl |
1693 | | |
1694 | | ///////////////////////////////////////////////////////////////// |
1695 | | // locale stuff |
1696 | | ///////////////////////////////////////////////////////////////// |
1697 | | |
1698 | | #if !SCN_DISABLE_LOCALE |
1699 | | |
1700 | | namespace detail { |
1701 | | extern template locale_ref::locale_ref(const std::locale&); |
1702 | | extern template auto locale_ref::get() const -> std::locale; |
1703 | | } // namespace detail |
1704 | | |
1705 | | namespace impl { |
1706 | | template <typename Facet> |
1707 | | const Facet& get_facet(detail::locale_ref loc) |
1708 | | { |
1709 | | auto stdloc = loc.get<std::locale>(); |
1710 | | SCN_EXPECT(std::has_facet<Facet>(stdloc)); |
1711 | | return std::use_facet<Facet>(stdloc); |
1712 | | } |
1713 | | |
1714 | | template <typename Facet> |
1715 | | const Facet& get_or_add_facet(std::locale& stdloc) |
1716 | 146 | { |
1717 | 146 | if (std::has_facet<Facet>(stdloc)) { |
1718 | 146 | return std::use_facet<Facet>(stdloc); |
1719 | 146 | } |
1720 | 0 | stdloc = std::locale(stdloc, new Facet{}); |
1721 | 0 | return std::use_facet<Facet>(stdloc); |
1722 | 146 | } std::__1::numpunct<char> const& scn::v3::impl::get_or_add_facet<std::__1::numpunct<char> >(std::__1::locale&) Line | Count | Source | 1716 | 78 | { | 1717 | 78 | if (std::has_facet<Facet>(stdloc)) { | 1718 | 78 | return std::use_facet<Facet>(stdloc); | 1719 | 78 | } | 1720 | 0 | stdloc = std::locale(stdloc, new Facet{}); | 1721 | 0 | return std::use_facet<Facet>(stdloc); | 1722 | 78 | } |
std::__1::numpunct<wchar_t> const& scn::v3::impl::get_or_add_facet<std::__1::numpunct<wchar_t> >(std::__1::locale&) Line | Count | Source | 1716 | 68 | { | 1717 | 68 | if (std::has_facet<Facet>(stdloc)) { | 1718 | 68 | return std::use_facet<Facet>(stdloc); | 1719 | 68 | } | 1720 | 0 | stdloc = std::locale(stdloc, new Facet{}); | 1721 | 0 | return std::use_facet<Facet>(stdloc); | 1722 | 68 | } |
|
1723 | | |
1724 | | class clocale_restorer { |
1725 | | public: |
1726 | | clocale_restorer(int cat) : m_category(cat) |
1727 | 0 | { |
1728 | 0 | const auto loc = std::setlocale(cat, nullptr); |
1729 | 0 | std::strcpy(m_locbuf, loc); |
1730 | 0 | } |
1731 | | ~clocale_restorer() |
1732 | 0 | { |
1733 | | // Restore locale to what it was before |
1734 | 0 | std::setlocale(m_category, m_locbuf); |
1735 | 0 | } |
1736 | | |
1737 | | clocale_restorer(const clocale_restorer&) = delete; |
1738 | | clocale_restorer(clocale_restorer&&) = delete; |
1739 | | clocale_restorer& operator=(const clocale_restorer&) = delete; |
1740 | | clocale_restorer& operator=(clocale_restorer&&) = delete; |
1741 | | |
1742 | | private: |
1743 | | // For whatever reason, this cannot be stored in the heap if |
1744 | | // setlocale hasn't been called before, or msan errors with |
1745 | | // 'use-of-unitialized-value' when resetting the locale |
1746 | | // back. POSIX specifies that the content of loc may not be |
1747 | | // static, so we need to save it ourselves |
1748 | | char m_locbuf[64] = {0}; |
1749 | | |
1750 | | int m_category; |
1751 | | }; |
1752 | | |
1753 | | class set_clocale_classic_guard { |
1754 | | public: |
1755 | | set_clocale_classic_guard(int cat) : m_restorer(cat) |
1756 | 0 | { |
1757 | 0 | std::setlocale(cat, "C"); |
1758 | 0 | } |
1759 | | |
1760 | | private: |
1761 | | clocale_restorer m_restorer; |
1762 | | }; |
1763 | | } // namespace impl |
1764 | | |
1765 | | namespace impl { |
1766 | | struct classic_with_thsep_tag {}; |
1767 | | |
1768 | | template <typename CharT> |
1769 | | struct localized_number_formatting_options { |
1770 | 11.6k | localized_number_formatting_options() = default; scn::v3::impl::localized_number_formatting_options<char>::localized_number_formatting_options() Line | Count | Source | 1770 | 1.15k | localized_number_formatting_options() = default; |
scn::v3::impl::localized_number_formatting_options<wchar_t>::localized_number_formatting_options() Line | Count | Source | 1770 | 10.4k | localized_number_formatting_options() = default; |
|
1771 | | |
1772 | | localized_number_formatting_options(classic_with_thsep_tag) |
1773 | 0 | { |
1774 | 0 | grouping = "\3"; |
1775 | 0 | thousands_sep = CharT{','}; |
1776 | 0 | } Unexecuted instantiation: scn::v3::impl::localized_number_formatting_options<char>::localized_number_formatting_options(scn::v3::impl::classic_with_thsep_tag) Unexecuted instantiation: scn::v3::impl::localized_number_formatting_options<wchar_t>::localized_number_formatting_options(scn::v3::impl::classic_with_thsep_tag) |
1777 | | |
1778 | | localized_number_formatting_options(detail::locale_ref loc) |
1779 | 114 | { |
1780 | 114 | auto stdloc = loc.get<std::locale>(); |
1781 | 114 | const auto& numpunct = get_or_add_facet<std::numpunct<CharT>>(stdloc); |
1782 | 114 | grouping = numpunct.grouping(); |
1783 | 114 | thousands_sep = |
1784 | 114 | grouping.length() != 0 ? numpunct.thousands_sep() : CharT{0}; |
1785 | 114 | decimal_point = numpunct.decimal_point(); |
1786 | 114 | } scn::v3::impl::localized_number_formatting_options<char>::localized_number_formatting_options(scn::v3::detail::locale_ref) Line | Count | Source | 1779 | 58 | { | 1780 | 58 | auto stdloc = loc.get<std::locale>(); | 1781 | 58 | const auto& numpunct = get_or_add_facet<std::numpunct<CharT>>(stdloc); | 1782 | 58 | grouping = numpunct.grouping(); | 1783 | 58 | thousands_sep = | 1784 | 58 | grouping.length() != 0 ? numpunct.thousands_sep() : CharT{0}; | 1785 | 58 | decimal_point = numpunct.decimal_point(); | 1786 | 58 | } |
scn::v3::impl::localized_number_formatting_options<wchar_t>::localized_number_formatting_options(scn::v3::detail::locale_ref) Line | Count | Source | 1779 | 56 | { | 1780 | 56 | auto stdloc = loc.get<std::locale>(); | 1781 | 56 | const auto& numpunct = get_or_add_facet<std::numpunct<CharT>>(stdloc); | 1782 | 56 | grouping = numpunct.grouping(); | 1783 | 56 | thousands_sep = | 1784 | 56 | grouping.length() != 0 ? numpunct.thousands_sep() : CharT{0}; | 1785 | 56 | decimal_point = numpunct.decimal_point(); | 1786 | 56 | } |
|
1787 | | |
1788 | | std::string grouping{}; |
1789 | | CharT thousands_sep{0}; |
1790 | | CharT decimal_point{CharT{'.'}}; |
1791 | | }; |
1792 | | } // namespace impl |
1793 | | |
1794 | | #else |
1795 | | |
1796 | | namespace impl { |
1797 | | struct set_clocale_classic_guard { |
1798 | | set_clocale_classic_guard(int) {} |
1799 | | }; |
1800 | | |
1801 | | struct classic_with_thsep_tag {}; |
1802 | | |
1803 | | template <typename CharT> |
1804 | | struct localized_number_formatting_options { |
1805 | | localized_number_formatting_options() = default; |
1806 | | |
1807 | | localized_number_formatting_options(classic_with_thsep_tag) |
1808 | | { |
1809 | | grouping = "\3"; |
1810 | | thousands_sep = CharT{','}; |
1811 | | } |
1812 | | |
1813 | | std::string grouping{}; |
1814 | | CharT thousands_sep{0}; |
1815 | | CharT decimal_point{CharT{'.'}}; |
1816 | | }; |
1817 | | } // namespace impl |
1818 | | |
1819 | | #endif // !SCN_DISABLE_LOCALE |
1820 | | |
1821 | | ///////////////////////////////////////////////////////////////// |
1822 | | // Range reading algorithms |
1823 | | ///////////////////////////////////////////////////////////////// |
1824 | | |
1825 | | namespace impl { |
1826 | | |
1827 | | std::string_view::iterator find_classic_space_narrow_fast( |
1828 | | std::string_view source); |
1829 | | |
1830 | | std::string_view::iterator find_classic_nonspace_narrow_fast( |
1831 | | std::string_view source); |
1832 | | |
1833 | | std::string_view::iterator find_nondecimal_digit_narrow_fast( |
1834 | | std::string_view source); |
1835 | | |
1836 | | template <typename Range> |
1837 | | auto read_all(Range range) -> ranges::const_iterator_t<Range> |
1838 | 11.3k | { |
1839 | 11.3k | return ranges::next(range.begin(), range.end()); |
1840 | 11.3k | } _ZN3scn2v34impl8read_allINS0_6ranges6detail9subrange_8subrangeIPKcS8_EEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESC_ Line | Count | Source | 1838 | 856 | { | 1839 | 856 | return ranges::next(range.begin(), range.end()); | 1840 | 856 | } |
Unexecuted instantiation: _ZN3scn2v34impl8read_allINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS4_18default_sentinel_tEEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESH_ _ZN3scn2v34impl8read_allINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcS9_EEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESE_ Line | Count | Source | 1838 | 96 | { | 1839 | 96 | return ranges::next(range.begin(), range.end()); | 1840 | 96 | } |
_ZN3scn2v34impl8read_allINS0_6ranges6detail9subrange_8subrangeIPKwS8_EEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESC_ Line | Count | Source | 1838 | 10.3k | { | 1839 | 10.3k | return ranges::next(range.begin(), range.end()); | 1840 | 10.3k | } |
Unexecuted instantiation: _ZN3scn2v34impl8read_allINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS4_18default_sentinel_tEEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESH_ _ZN3scn2v34impl8read_allINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwS9_EEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESE_ Line | Count | Source | 1838 | 54 | { | 1839 | 54 | return ranges::next(range.begin(), range.end()); | 1840 | 54 | } |
|
1841 | | |
1842 | | template <typename Range> |
1843 | | auto read_code_unit(Range range) |
1844 | | -> eof_expected<ranges::const_iterator_t<Range>> |
1845 | 81.3k | { |
1846 | 81.3k | if (auto e = eof_check(range); SCN_UNLIKELY(!e)) { |
1847 | 0 | return unexpected(e); |
1848 | 0 | } |
1849 | | |
1850 | 81.3k | return ranges::next(range.begin()); |
1851 | 81.3k | } Unexecuted instantiation: _ZN3scn2v34impl14read_code_unitINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS4_18default_sentinel_tEEEEEEENS1_12eof_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_ Unexecuted instantiation: _ZN3scn2v34impl14read_code_unitINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEENS1_15take_width_viewINS6_ISC_SD_EEE8sentinelILb1EEEEEEENS1_12eof_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_ Unexecuted instantiation: _ZN3scn2v34impl14read_code_unitINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEEEENS1_12eof_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_ _ZN3scn2v34impl14read_code_unitINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcS9_EEEEEENS1_12eof_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_ Line | Count | Source | 1845 | 1.87k | { | 1846 | 1.87k | if (auto e = eof_check(range); SCN_UNLIKELY(!e)) { | 1847 | 0 | return unexpected(e); | 1848 | 0 | } | 1849 | | | 1850 | 1.87k | return ranges::next(range.begin()); | 1851 | 1.87k | } |
_ZN3scn2v34impl14read_code_unitINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSA_EENS1_15take_width_viewINS6_ISA_SA_EEE8sentinelILb1EEEEEEENS1_12eof_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_ Line | Count | Source | 1845 | 34 | { | 1846 | 34 | if (auto e = eof_check(range); SCN_UNLIKELY(!e)) { | 1847 | 0 | return unexpected(e); | 1848 | 0 | } | 1849 | | | 1850 | 34 | return ranges::next(range.begin()); | 1851 | 34 | } |
_ZN3scn2v34impl14read_code_unitINS0_6ranges6detail9subrange_8subrangeIPKcS8_EEEENS1_12eof_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESD_ Line | Count | Source | 1845 | 6.14k | { | 1846 | 6.14k | if (auto e = eof_check(range); SCN_UNLIKELY(!e)) { | 1847 | 0 | return unexpected(e); | 1848 | 0 | } | 1849 | | | 1850 | 6.14k | return ranges::next(range.begin()); | 1851 | 6.14k | } |
Unexecuted instantiation: _ZN3scn2v34impl14read_code_unitINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS4_18default_sentinel_tEEEEEEENS1_12eof_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_ Unexecuted instantiation: _ZN3scn2v34impl14read_code_unitINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEENS1_15take_width_viewINS6_ISC_SD_EEE8sentinelILb1EEEEEEENS1_12eof_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_ Unexecuted instantiation: _ZN3scn2v34impl14read_code_unitINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEEEENS1_12eof_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_ _ZN3scn2v34impl14read_code_unitINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwS9_EEEEEENS1_12eof_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_ Line | Count | Source | 1845 | 870 | { | 1846 | 870 | if (auto e = eof_check(range); SCN_UNLIKELY(!e)) { | 1847 | 0 | return unexpected(e); | 1848 | 0 | } | 1849 | | | 1850 | 870 | return ranges::next(range.begin()); | 1851 | 870 | } |
_ZN3scn2v34impl14read_code_unitINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSA_EENS1_15take_width_viewINS6_ISA_SA_EEE8sentinelILb1EEEEEEENS1_12eof_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_ Line | Count | Source | 1845 | 34 | { | 1846 | 34 | if (auto e = eof_check(range); SCN_UNLIKELY(!e)) { | 1847 | 0 | return unexpected(e); | 1848 | 0 | } | 1849 | | | 1850 | 34 | return ranges::next(range.begin()); | 1851 | 34 | } |
_ZN3scn2v34impl14read_code_unitINS0_6ranges6detail9subrange_8subrangeIPKwS8_EEEENS1_12eof_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESD_ Line | Count | Source | 1845 | 72.4k | { | 1846 | 72.4k | if (auto e = eof_check(range); SCN_UNLIKELY(!e)) { | 1847 | 0 | return unexpected(e); | 1848 | 0 | } | 1849 | | | 1850 | 72.4k | return ranges::next(range.begin()); | 1851 | 72.4k | } |
|
1852 | | |
1853 | | template <typename Range> |
1854 | | auto read_exactly_n_code_units(Range range, std::ptrdiff_t count) |
1855 | | -> eof_expected<ranges::const_iterator_t<Range>> |
1856 | 87.1k | { |
1857 | 87.1k | SCN_EXPECT(count >= 0); |
1858 | | |
1859 | 87.1k | if constexpr (ranges::sized_range<Range>) { |
1860 | 4.69k | const auto sz = static_cast<std::ptrdiff_t>(range.size()); |
1861 | 82.4k | if (sz < count) { |
1862 | 550 | return unexpected(eof_error::eof); |
1863 | 550 | } |
1864 | | |
1865 | 81.8k | return ranges::next(range.begin(), count); |
1866 | 82.4k | } |
1867 | 4.69k | else { |
1868 | 4.69k | auto it = range.begin(); |
1869 | 4.69k | if (guaranteed_minimum_size(range) >= count) { |
1870 | 0 | return ranges::next(it, count); |
1871 | 0 | } |
1872 | | |
1873 | 18.1k | for (std::ptrdiff_t i = 0; i < count; ++i, (void)++it) { |
1874 | 13.9k | if (it == range.end()) { |
1875 | 518 | return unexpected(eof_error::eof); |
1876 | 518 | } |
1877 | 13.9k | } |
1878 | | |
1879 | 4.17k | return it; |
1880 | 4.69k | } |
1881 | 87.1k | } Unexecuted instantiation: _ZN3scn2v34impl25read_exactly_n_code_unitsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEEEENS1_12eof_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_l Unexecuted instantiation: _ZN3scn2v34impl25read_exactly_n_code_unitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEENS1_15take_width_viewINS6_ISC_SD_EEE8sentinelILb1EEEEEEENS1_12eof_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_l Unexecuted instantiation: _ZN3scn2v34impl25read_exactly_n_code_unitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS8_INS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEENS1_15take_width_viewINS6_ISC_SD_EEE8sentinelILb1EEEEENSF_ISH_E8sentinelILb1EEEEEEENS1_12eof_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESS_l _ZN3scn2v34impl25read_exactly_n_code_unitsINS0_6ranges6detail9subrange_8subrangeIPKcS8_EEEENS1_12eof_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESD_l Line | Count | Source | 1856 | 20.3k | { | 1857 | 20.3k | SCN_EXPECT(count >= 0); | 1858 | | | 1859 | 20.3k | if constexpr (ranges::sized_range<Range>) { | 1860 | 20.3k | const auto sz = static_cast<std::ptrdiff_t>(range.size()); | 1861 | 20.3k | if (sz < count) { | 1862 | 406 | return unexpected(eof_error::eof); | 1863 | 406 | } | 1864 | | | 1865 | 19.9k | return ranges::next(range.begin(), count); | 1866 | 20.3k | } | 1867 | 20.3k | else { | 1868 | 20.3k | auto it = range.begin(); | 1869 | 20.3k | if (guaranteed_minimum_size(range) >= count) { | 1870 | 20.3k | return ranges::next(it, count); | 1871 | 20.3k | } | 1872 | | | 1873 | 20.3k | for (std::ptrdiff_t i = 0; i < count; ++i, (void)++it) { | 1874 | 20.3k | if (it == range.end()) { | 1875 | 20.3k | return unexpected(eof_error::eof); | 1876 | 20.3k | } | 1877 | 20.3k | } | 1878 | | | 1879 | 20.3k | return it; | 1880 | 20.3k | } | 1881 | 20.3k | } |
Unexecuted instantiation: _ZN3scn2v34impl25read_exactly_n_code_unitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSA_EENS1_15take_width_viewINSt3__117basic_string_viewIcNSD_11char_traitsIcEEEEE8sentinelILb1EEEEEEENS1_12eof_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSD_9add_constIT_E4typeEEEEEEESO_l Unexecuted instantiation: _ZN3scn2v34impl25read_exactly_n_code_unitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS8_IPKcSA_EENS1_15take_width_viewINSt3__117basic_string_viewIcNSD_11char_traitsIcEEEEE8sentinelILb1EEEEENSC_ISI_E8sentinelILb1EEEEEEENS1_12eof_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSD_9add_constIT_E4typeEEEEEEESS_l _ZN3scn2v34impl25read_exactly_n_code_unitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSA_EENS1_15take_width_viewINS6_ISA_SA_EEE8sentinelILb1EEEEEEENS1_12eof_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_l Line | Count | Source | 1856 | 3.05k | { | 1857 | 3.05k | SCN_EXPECT(count >= 0); | 1858 | | | 1859 | 3.05k | if constexpr (ranges::sized_range<Range>) { | 1860 | 3.05k | const auto sz = static_cast<std::ptrdiff_t>(range.size()); | 1861 | 3.05k | if (sz < count) { | 1862 | 3.05k | return unexpected(eof_error::eof); | 1863 | 3.05k | } | 1864 | | | 1865 | 3.05k | return ranges::next(range.begin(), count); | 1866 | 3.05k | } | 1867 | 3.05k | else { | 1868 | 3.05k | auto it = range.begin(); | 1869 | 3.05k | if (guaranteed_minimum_size(range) >= count) { | 1870 | 0 | return ranges::next(it, count); | 1871 | 0 | } | 1872 | | | 1873 | 11.1k | for (std::ptrdiff_t i = 0; i < count; ++i, (void)++it) { | 1874 | 8.27k | if (it == range.end()) { | 1875 | 204 | return unexpected(eof_error::eof); | 1876 | 204 | } | 1877 | 8.27k | } | 1878 | | | 1879 | 2.85k | return it; | 1880 | 3.05k | } | 1881 | 3.05k | } |
Unexecuted instantiation: _ZN3scn2v34impl25read_exactly_n_code_unitsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEEEENS1_12eof_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_l Unexecuted instantiation: _ZN3scn2v34impl25read_exactly_n_code_unitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEENS1_15take_width_viewINS6_ISC_SD_EEE8sentinelILb1EEEEEEENS1_12eof_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_l Unexecuted instantiation: _ZN3scn2v34impl25read_exactly_n_code_unitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS8_INS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEENS1_15take_width_viewINS6_ISC_SD_EEE8sentinelILb1EEEEENSF_ISH_E8sentinelILb1EEEEEEENS1_12eof_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESS_l _ZN3scn2v34impl25read_exactly_n_code_unitsINS0_6ranges6detail9subrange_8subrangeIPKwS8_EEEENS1_12eof_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESD_l Line | Count | Source | 1856 | 62.1k | { | 1857 | 62.1k | SCN_EXPECT(count >= 0); | 1858 | | | 1859 | 62.1k | if constexpr (ranges::sized_range<Range>) { | 1860 | 62.1k | const auto sz = static_cast<std::ptrdiff_t>(range.size()); | 1861 | 62.1k | if (sz < count) { | 1862 | 144 | return unexpected(eof_error::eof); | 1863 | 144 | } | 1864 | | | 1865 | 61.9k | return ranges::next(range.begin(), count); | 1866 | 62.1k | } | 1867 | 62.1k | else { | 1868 | 62.1k | auto it = range.begin(); | 1869 | 62.1k | if (guaranteed_minimum_size(range) >= count) { | 1870 | 62.1k | return ranges::next(it, count); | 1871 | 62.1k | } | 1872 | | | 1873 | 62.1k | for (std::ptrdiff_t i = 0; i < count; ++i, (void)++it) { | 1874 | 62.1k | if (it == range.end()) { | 1875 | 62.1k | return unexpected(eof_error::eof); | 1876 | 62.1k | } | 1877 | 62.1k | } | 1878 | | | 1879 | 62.1k | return it; | 1880 | 62.1k | } | 1881 | 62.1k | } |
Unexecuted instantiation: _ZN3scn2v34impl25read_exactly_n_code_unitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSA_EENS1_15take_width_viewINSt3__117basic_string_viewIwNSD_11char_traitsIwEEEEE8sentinelILb1EEEEEEENS1_12eof_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSD_9add_constIT_E4typeEEEEEEESO_l Unexecuted instantiation: _ZN3scn2v34impl25read_exactly_n_code_unitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS8_IPKwSA_EENS1_15take_width_viewINSt3__117basic_string_viewIwNSD_11char_traitsIwEEEEE8sentinelILb1EEEEENSC_ISI_E8sentinelILb1EEEEEEENS1_12eof_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSD_9add_constIT_E4typeEEEEEEESS_l _ZN3scn2v34impl25read_exactly_n_code_unitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSA_EENS1_15take_width_viewINS6_ISA_SA_EEE8sentinelILb1EEEEEEENS1_12eof_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_l Line | Count | Source | 1856 | 554 | { | 1857 | 554 | SCN_EXPECT(count >= 0); | 1858 | | | 1859 | 554 | if constexpr (ranges::sized_range<Range>) { | 1860 | 554 | const auto sz = static_cast<std::ptrdiff_t>(range.size()); | 1861 | 554 | if (sz < count) { | 1862 | 554 | return unexpected(eof_error::eof); | 1863 | 554 | } | 1864 | | | 1865 | 554 | return ranges::next(range.begin(), count); | 1866 | 554 | } | 1867 | 554 | else { | 1868 | 554 | auto it = range.begin(); | 1869 | 554 | if (guaranteed_minimum_size(range) >= count) { | 1870 | 0 | return ranges::next(it, count); | 1871 | 0 | } | 1872 | | | 1873 | 1.81k | for (std::ptrdiff_t i = 0; i < count; ++i, (void)++it) { | 1874 | 1.33k | if (it == range.end()) { | 1875 | 74 | return unexpected(eof_error::eof); | 1876 | 74 | } | 1877 | 1.33k | } | 1878 | | | 1879 | 480 | return it; | 1880 | 554 | } | 1881 | 554 | } |
_ZN3scn2v34impl25read_exactly_n_code_unitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS8_IPKcSA_EENS1_15take_width_viewINS6_ISA_SA_EEE8sentinelILb1EEEEENSC_ISE_E8sentinelILb1EEEEEEENS1_12eof_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESP_l Line | Count | Source | 1856 | 206 | { | 1857 | 206 | SCN_EXPECT(count >= 0); | 1858 | | | 1859 | 206 | if constexpr (ranges::sized_range<Range>) { | 1860 | 206 | const auto sz = static_cast<std::ptrdiff_t>(range.size()); | 1861 | 206 | if (sz < count) { | 1862 | 206 | return unexpected(eof_error::eof); | 1863 | 206 | } | 1864 | | | 1865 | 206 | return ranges::next(range.begin(), count); | 1866 | 206 | } | 1867 | 206 | else { | 1868 | 206 | auto it = range.begin(); | 1869 | 206 | if (guaranteed_minimum_size(range) >= count) { | 1870 | 0 | return ranges::next(it, count); | 1871 | 0 | } | 1872 | | | 1873 | 804 | for (std::ptrdiff_t i = 0; i < count; ++i, (void)++it) { | 1874 | 658 | if (it == range.end()) { | 1875 | 60 | return unexpected(eof_error::eof); | 1876 | 60 | } | 1877 | 658 | } | 1878 | | | 1879 | 146 | return it; | 1880 | 206 | } | 1881 | 206 | } |
_ZN3scn2v34impl25read_exactly_n_code_unitsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcS9_EEEEEENS1_12eof_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_l Line | Count | Source | 1856 | 608 | { | 1857 | 608 | SCN_EXPECT(count >= 0); | 1858 | | | 1859 | 608 | if constexpr (ranges::sized_range<Range>) { | 1860 | 608 | const auto sz = static_cast<std::ptrdiff_t>(range.size()); | 1861 | 608 | if (sz < count) { | 1862 | 608 | return unexpected(eof_error::eof); | 1863 | 608 | } | 1864 | | | 1865 | 608 | return ranges::next(range.begin(), count); | 1866 | 608 | } | 1867 | 608 | else { | 1868 | 608 | auto it = range.begin(); | 1869 | 608 | if (guaranteed_minimum_size(range) >= count) { | 1870 | 0 | return ranges::next(it, count); | 1871 | 0 | } | 1872 | | | 1873 | 3.01k | for (std::ptrdiff_t i = 0; i < count; ++i, (void)++it) { | 1874 | 2.53k | if (it == range.end()) { | 1875 | 126 | return unexpected(eof_error::eof); | 1876 | 126 | } | 1877 | 2.53k | } | 1878 | | | 1879 | 482 | return it; | 1880 | 608 | } | 1881 | 608 | } |
Unexecuted instantiation: _ZN3scn2v34impl25read_exactly_n_code_unitsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS4_18default_sentinel_tEEEEEEENS1_12eof_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_l Unexecuted instantiation: _ZN3scn2v34impl25read_exactly_n_code_unitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS8_IPKwSA_EENS1_15take_width_viewINS6_ISA_SA_EEE8sentinelILb1EEEEENSC_ISE_E8sentinelILb1EEEEEEENS1_12eof_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESP_l _ZN3scn2v34impl25read_exactly_n_code_unitsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwS9_EEEEEENS1_12eof_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_l Line | Count | Source | 1856 | 268 | { | 1857 | 268 | SCN_EXPECT(count >= 0); | 1858 | | | 1859 | 268 | if constexpr (ranges::sized_range<Range>) { | 1860 | 268 | const auto sz = static_cast<std::ptrdiff_t>(range.size()); | 1861 | 268 | if (sz < count) { | 1862 | 268 | return unexpected(eof_error::eof); | 1863 | 268 | } | 1864 | | | 1865 | 268 | return ranges::next(range.begin(), count); | 1866 | 268 | } | 1867 | 268 | else { | 1868 | 268 | auto it = range.begin(); | 1869 | 268 | if (guaranteed_minimum_size(range) >= count) { | 1870 | 0 | return ranges::next(it, count); | 1871 | 0 | } | 1872 | | | 1873 | 1.34k | for (std::ptrdiff_t i = 0; i < count; ++i, (void)++it) { | 1874 | 1.13k | if (it == range.end()) { | 1875 | 54 | return unexpected(eof_error::eof); | 1876 | 54 | } | 1877 | 1.13k | } | 1878 | | | 1879 | 214 | return it; | 1880 | 268 | } | 1881 | 268 | } |
Unexecuted instantiation: _ZN3scn2v34impl25read_exactly_n_code_unitsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS4_18default_sentinel_tEEEEEEENS1_12eof_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_l |
1882 | | |
1883 | | template <typename Iterator, typename CharT> |
1884 | | struct read_code_point_into_result { |
1885 | | Iterator iterator; |
1886 | | std::basic_string<CharT> codepoint; |
1887 | | |
1888 | | bool is_valid() const |
1889 | 1.07M | { |
1890 | 1.07M | return !codepoint.empty(); |
1891 | 1.07M | } Unexecuted instantiation: scn::v3::impl::read_code_point_into_result<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >, char>::is_valid() const Unexecuted instantiation: scn::v3::impl::read_code_point_into_result<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, char>::is_valid() const Unexecuted instantiation: scn::v3::impl::read_code_point_into_result<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> >, char>::is_valid() const scn::v3::impl::read_code_point_into_result<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, char>::is_valid() const Line | Count | Source | 1889 | 31.5k | { | 1890 | 31.5k | return !codepoint.empty(); | 1891 | 31.5k | } |
Unexecuted instantiation: scn::v3::impl::read_code_point_into_result<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, char>::is_valid() const scn::v3::impl::read_code_point_into_result<char const*, char>::is_valid() const Line | Count | Source | 1889 | 284k | { | 1890 | 284k | return !codepoint.empty(); | 1891 | 284k | } |
Unexecuted instantiation: scn::v3::impl::read_code_point_into_result<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >, wchar_t>::is_valid() const Unexecuted instantiation: scn::v3::impl::read_code_point_into_result<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, wchar_t>::is_valid() const Unexecuted instantiation: scn::v3::impl::read_code_point_into_result<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> >, wchar_t>::is_valid() const scn::v3::impl::read_code_point_into_result<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, wchar_t>::is_valid() const Line | Count | Source | 1889 | 7.69k | { | 1890 | 7.69k | return !codepoint.empty(); | 1891 | 7.69k | } |
scn::v3::impl::read_code_point_into_result<wchar_t const*, wchar_t>::is_valid() const Line | Count | Source | 1889 | 748k | { | 1890 | 748k | return !codepoint.empty(); | 1891 | 748k | } |
Unexecuted instantiation: scn::v3::impl::read_code_point_into_result<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, wchar_t>::is_valid() const scn::v3::impl::read_code_point_into_result<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> >, char>::is_valid() const Line | Count | Source | 1889 | 2.86k | { | 1890 | 2.86k | return !codepoint.empty(); | 1891 | 2.86k | } |
scn::v3::impl::read_code_point_into_result<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> >, wchar_t>::is_valid() const Line | Count | Source | 1889 | 794 | { | 1890 | 794 | return !codepoint.empty(); | 1891 | 794 | } |
|
1892 | | }; |
1893 | | |
1894 | | template <typename Range> |
1895 | | auto read_code_point_into(Range range) |
1896 | | -> read_code_point_into_result<ranges::const_iterator_t<Range>, |
1897 | | detail::char_t<Range>> |
1898 | 1.07M | { |
1899 | 1.07M | SCN_EXPECT(!is_range_eof(range)); |
1900 | 1.07M | using string_type = std::basic_string<detail::char_t<Range>>; |
1901 | | |
1902 | 1.07M | auto it = range.begin(); |
1903 | 1.07M | const auto len = detail::code_point_length_by_starting_code_unit(*it); |
1904 | | |
1905 | 1.07M | if (SCN_UNLIKELY(len == 0)) { |
1906 | 3.38k | ++it; |
1907 | 3.38k | it = get_start_for_next_code_point(ranges::subrange{it, range.end()}); |
1908 | 3.38k | return {it, {}}; |
1909 | 3.38k | } |
1910 | | |
1911 | 1.07M | if (len == 1) { |
1912 | 1.03M | ++it; |
1913 | 1.03M | return {it, string_type(1, *range.begin())}; |
1914 | 1.03M | } |
1915 | | |
1916 | 39.8k | ranges::advance(it, static_cast<std::ptrdiff_t>(len), range.end()); |
1917 | 39.8k | return {it, string_type{range.begin(), it}}; |
1918 | 1.07M | } Unexecuted instantiation: _ZN3scn2v34impl20read_code_point_intoINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS8_INS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEENS1_15take_width_viewINS6_ISC_SD_EEE8sentinelILb1EEEEENSF_ISH_E8sentinelILb1EEEEEEENS1_27read_code_point_into_resultIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEENDTcl4implISS_EEE4typeEEESS_ Unexecuted instantiation: _ZN3scn2v34impl20read_code_point_intoINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEENS1_15take_width_viewINS6_ISC_SD_EEE8sentinelILb1EEEEEEENS1_27read_code_point_into_resultIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEENDTcl4implISO_EEE4typeEEESO_ Unexecuted instantiation: _ZN3scn2v34impl20read_code_point_intoINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS8_IPKcSA_EENS1_15take_width_viewINSt3__117basic_string_viewIcNSD_11char_traitsIcEEEEE8sentinelILb1EEEEENSC_ISI_E8sentinelILb1EEEEEEENS1_27read_code_point_into_resultIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSD_9add_constIT_E4typeEEEEENDTcl4implISS_EEE4typeEEESS_ Unexecuted instantiation: _ZN3scn2v34impl20read_code_point_intoINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSA_EENS1_15take_width_viewINSt3__117basic_string_viewIcNSD_11char_traitsIcEEEEE8sentinelILb1EEEEEEENS1_27read_code_point_into_resultIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSD_9add_constIT_E4typeEEEEENDTcl4implISO_EEE4typeEEESO_ _ZN3scn2v34impl20read_code_point_intoINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSA_EENS1_15take_width_viewINS6_ISA_SA_EEE8sentinelILb1EEEEEEENS1_27read_code_point_into_resultIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEENDTcl4implISL_EEE4typeEEESL_ Line | Count | Source | 1898 | 31.5k | { | 1899 | 31.5k | SCN_EXPECT(!is_range_eof(range)); | 1900 | 31.5k | using string_type = std::basic_string<detail::char_t<Range>>; | 1901 | | | 1902 | 31.5k | auto it = range.begin(); | 1903 | 31.5k | const auto len = detail::code_point_length_by_starting_code_unit(*it); | 1904 | | | 1905 | 31.5k | if (SCN_UNLIKELY(len == 0)) { | 1906 | 2.43k | ++it; | 1907 | 2.43k | it = get_start_for_next_code_point(ranges::subrange{it, range.end()}); | 1908 | 2.43k | return {it, {}}; | 1909 | 2.43k | } | 1910 | | | 1911 | 29.1k | if (len == 1) { | 1912 | 25.8k | ++it; | 1913 | 25.8k | return {it, string_type(1, *range.begin())}; | 1914 | 25.8k | } | 1915 | | | 1916 | 3.30k | ranges::advance(it, static_cast<std::ptrdiff_t>(len), range.end()); | 1917 | 3.30k | return {it, string_type{range.begin(), it}}; | 1918 | 29.1k | } |
Unexecuted instantiation: _ZN3scn2v34impl20read_code_point_intoINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEEEENS1_27read_code_point_into_resultIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEENDTcl4implISG_EEE4typeEEESG_ _ZN3scn2v34impl20read_code_point_intoINS0_6ranges6detail9subrange_8subrangeIPKcS8_EEEENS1_27read_code_point_into_resultIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEENDTcl4implISD_EEE4typeEEESD_ Line | Count | Source | 1898 | 284k | { | 1899 | 284k | SCN_EXPECT(!is_range_eof(range)); | 1900 | 284k | using string_type = std::basic_string<detail::char_t<Range>>; | 1901 | | | 1902 | 284k | auto it = range.begin(); | 1903 | 284k | const auto len = detail::code_point_length_by_starting_code_unit(*it); | 1904 | | | 1905 | 284k | if (SCN_UNLIKELY(len == 0)) { | 1906 | 954 | ++it; | 1907 | 954 | it = get_start_for_next_code_point(ranges::subrange{it, range.end()}); | 1908 | 954 | return {it, {}}; | 1909 | 954 | } | 1910 | | | 1911 | 283k | if (len == 1) { | 1912 | 247k | ++it; | 1913 | 247k | return {it, string_type(1, *range.begin())}; | 1914 | 247k | } | 1915 | | | 1916 | 35.9k | ranges::advance(it, static_cast<std::ptrdiff_t>(len), range.end()); | 1917 | 35.9k | return {it, string_type{range.begin(), it}}; | 1918 | 283k | } |
Unexecuted instantiation: _ZN3scn2v34impl20read_code_point_intoINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS8_INS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEENS1_15take_width_viewINS6_ISC_SD_EEE8sentinelILb1EEEEENSF_ISH_E8sentinelILb1EEEEEEENS1_27read_code_point_into_resultIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEENDTcl4implISS_EEE4typeEEESS_ Unexecuted instantiation: _ZN3scn2v34impl20read_code_point_intoINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEENS1_15take_width_viewINS6_ISC_SD_EEE8sentinelILb1EEEEEEENS1_27read_code_point_into_resultIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEENDTcl4implISO_EEE4typeEEESO_ Unexecuted instantiation: _ZN3scn2v34impl20read_code_point_intoINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS8_IPKwSA_EENS1_15take_width_viewINSt3__117basic_string_viewIwNSD_11char_traitsIwEEEEE8sentinelILb1EEEEENSC_ISI_E8sentinelILb1EEEEEEENS1_27read_code_point_into_resultIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSD_9add_constIT_E4typeEEEEENDTcl4implISS_EEE4typeEEESS_ Unexecuted instantiation: _ZN3scn2v34impl20read_code_point_intoINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSA_EENS1_15take_width_viewINSt3__117basic_string_viewIwNSD_11char_traitsIwEEEEE8sentinelILb1EEEEEEENS1_27read_code_point_into_resultIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSD_9add_constIT_E4typeEEEEENDTcl4implISO_EEE4typeEEESO_ _ZN3scn2v34impl20read_code_point_intoINS0_6ranges6detail9subrange_8subrangeIPKwS8_EEEENS1_27read_code_point_into_resultIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEENDTcl4implISD_EEE4typeEEESD_ Line | Count | Source | 1898 | 748k | { | 1899 | 748k | SCN_EXPECT(!is_range_eof(range)); | 1900 | 748k | using string_type = std::basic_string<detail::char_t<Range>>; | 1901 | | | 1902 | 748k | auto it = range.begin(); | 1903 | 748k | const auto len = detail::code_point_length_by_starting_code_unit(*it); | 1904 | | | 1905 | 748k | if (SCN_UNLIKELY(len == 0)) { | 1906 | 0 | ++it; | 1907 | 0 | it = get_start_for_next_code_point(ranges::subrange{it, range.end()}); | 1908 | 0 | return {it, {}}; | 1909 | 0 | } | 1910 | | | 1911 | 748k | if (len == 1) { | 1912 | 748k | ++it; | 1913 | 748k | return {it, string_type(1, *range.begin())}; | 1914 | 748k | } | 1915 | | | 1916 | 0 | ranges::advance(it, static_cast<std::ptrdiff_t>(len), range.end()); | 1917 | 0 | return {it, string_type{range.begin(), it}}; | 1918 | 748k | } |
_ZN3scn2v34impl20read_code_point_intoINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSA_EENS1_15take_width_viewINS6_ISA_SA_EEE8sentinelILb1EEEEEEENS1_27read_code_point_into_resultIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEENDTcl4implISL_EEE4typeEEESL_ Line | Count | Source | 1898 | 7.69k | { | 1899 | 7.69k | SCN_EXPECT(!is_range_eof(range)); | 1900 | 7.69k | using string_type = std::basic_string<detail::char_t<Range>>; | 1901 | | | 1902 | 7.69k | auto it = range.begin(); | 1903 | 7.69k | const auto len = detail::code_point_length_by_starting_code_unit(*it); | 1904 | | | 1905 | 7.69k | if (SCN_UNLIKELY(len == 0)) { | 1906 | 0 | ++it; | 1907 | 0 | it = get_start_for_next_code_point(ranges::subrange{it, range.end()}); | 1908 | 0 | return {it, {}}; | 1909 | 0 | } | 1910 | | | 1911 | 7.69k | if (len == 1) { | 1912 | 7.69k | ++it; | 1913 | 7.69k | return {it, string_type(1, *range.begin())}; | 1914 | 7.69k | } | 1915 | | | 1916 | 0 | ranges::advance(it, static_cast<std::ptrdiff_t>(len), range.end()); | 1917 | 0 | return {it, string_type{range.begin(), it}}; | 1918 | 7.69k | } |
Unexecuted instantiation: _ZN3scn2v34impl20read_code_point_intoINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEEEENS1_27read_code_point_into_resultIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEENDTcl4implISG_EEE4typeEEESG_ _ZN3scn2v34impl20read_code_point_intoINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS8_IPKcSA_EENS1_15take_width_viewINS6_ISA_SA_EEE8sentinelILb1EEEEENSC_ISE_E8sentinelILb1EEEEEEENS1_27read_code_point_into_resultIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEENDTcl4implISP_EEE4typeEEESP_ Line | Count | Source | 1898 | 2.86k | { | 1899 | 2.86k | SCN_EXPECT(!is_range_eof(range)); | 1900 | 2.86k | using string_type = std::basic_string<detail::char_t<Range>>; | 1901 | | | 1902 | 2.86k | auto it = range.begin(); | 1903 | 2.86k | const auto len = detail::code_point_length_by_starting_code_unit(*it); | 1904 | | | 1905 | 2.86k | if (SCN_UNLIKELY(len == 0)) { | 1906 | 0 | ++it; | 1907 | 0 | it = get_start_for_next_code_point(ranges::subrange{it, range.end()}); | 1908 | 0 | return {it, {}}; | 1909 | 0 | } | 1910 | | | 1911 | 2.86k | if (len == 1) { | 1912 | 2.30k | ++it; | 1913 | 2.30k | return {it, string_type(1, *range.begin())}; | 1914 | 2.30k | } | 1915 | | | 1916 | 566 | ranges::advance(it, static_cast<std::ptrdiff_t>(len), range.end()); | 1917 | 566 | return {it, string_type{range.begin(), it}}; | 1918 | 2.86k | } |
Unexecuted instantiation: _ZN3scn2v34impl20read_code_point_intoINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcS9_EEEEEENS1_27read_code_point_into_resultIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEENDTcl4implISF_EEE4typeEEESF_ Unexecuted instantiation: _ZN3scn2v34impl20read_code_point_intoINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS4_18default_sentinel_tEEEEEEENS1_27read_code_point_into_resultIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEENDTcl4implISI_EEE4typeEEESI_ _ZN3scn2v34impl20read_code_point_intoINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS8_IPKwSA_EENS1_15take_width_viewINS6_ISA_SA_EEE8sentinelILb1EEEEENSC_ISE_E8sentinelILb1EEEEEEENS1_27read_code_point_into_resultIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEENDTcl4implISP_EEE4typeEEESP_ Line | Count | Source | 1898 | 794 | { | 1899 | 794 | SCN_EXPECT(!is_range_eof(range)); | 1900 | 794 | using string_type = std::basic_string<detail::char_t<Range>>; | 1901 | | | 1902 | 794 | auto it = range.begin(); | 1903 | 794 | const auto len = detail::code_point_length_by_starting_code_unit(*it); | 1904 | | | 1905 | 794 | if (SCN_UNLIKELY(len == 0)) { | 1906 | 0 | ++it; | 1907 | 0 | it = get_start_for_next_code_point(ranges::subrange{it, range.end()}); | 1908 | 0 | return {it, {}}; | 1909 | 0 | } | 1910 | | | 1911 | 794 | if (len == 1) { | 1912 | 794 | ++it; | 1913 | 794 | return {it, string_type(1, *range.begin())}; | 1914 | 794 | } | 1915 | | | 1916 | 0 | ranges::advance(it, static_cast<std::ptrdiff_t>(len), range.end()); | 1917 | 0 | return {it, string_type{range.begin(), it}}; | 1918 | 794 | } |
Unexecuted instantiation: _ZN3scn2v34impl20read_code_point_intoINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwS9_EEEEEENS1_27read_code_point_into_resultIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEENDTcl4implISF_EEE4typeEEESF_ Unexecuted instantiation: _ZN3scn2v34impl20read_code_point_intoINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS4_18default_sentinel_tEEEEEEENS1_27read_code_point_into_resultIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEENDTcl4implISI_EEE4typeEEESI_ |
1919 | | |
1920 | | template <typename Range> |
1921 | | auto read_code_point(Range range) -> ranges::const_iterator_t<Range> |
1922 | | { |
1923 | | return read_code_point_into(range).iterator; |
1924 | | } |
1925 | | |
1926 | | template <typename Range> |
1927 | | auto read_exactly_n_code_points(Range range, std::ptrdiff_t count) |
1928 | | -> eof_expected<ranges::const_iterator_t<Range>> |
1929 | | { |
1930 | | SCN_EXPECT(count >= 0); |
1931 | | |
1932 | | if (count > 0) { |
1933 | | if (auto e = eof_check(range); SCN_UNLIKELY(!e)) { |
1934 | | return unexpected(e); |
1935 | | } |
1936 | | } |
1937 | | |
1938 | | auto it = range.begin(); |
1939 | | for (std::ptrdiff_t i = 0; i < count; ++i) { |
1940 | | auto rng = ranges::subrange{it, range.end()}; |
1941 | | |
1942 | | if (auto e = eof_check(rng); SCN_UNLIKELY(!e)) { |
1943 | | return unexpected(e); |
1944 | | } |
1945 | | |
1946 | | it = read_code_point(rng); |
1947 | | } |
1948 | | |
1949 | | return it; |
1950 | | } |
1951 | | |
1952 | | template <typename Range> |
1953 | | auto read_until_code_unit(Range range, |
1954 | | function_ref<bool(detail::char_t<Range>)> pred) |
1955 | | -> ranges::const_iterator_t<Range> |
1956 | 5.42k | { |
1957 | 5.42k | if constexpr (ranges::common_range<Range>) { |
1958 | 2.92k | return std::find_if(range.begin(), range.end(), pred); |
1959 | 2.92k | } |
1960 | 2.92k | else { |
1961 | 2.92k | auto first = range.begin(); |
1962 | 12.6k | for (; first != range.end(); ++first) { |
1963 | 12.1k | if (pred(*first)) { |
1964 | 2.52k | return first; |
1965 | 2.52k | } |
1966 | 12.1k | } |
1967 | 406 | return first; |
1968 | 2.92k | } |
1969 | 5.42k | } Unexecuted instantiation: _ZN3scn2v34impl20read_until_code_unitINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS4_18default_sentinel_tEEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESH_NS1_12function_refIFbNDTcl4implISH_EEE4typeEENS1_12fnref_detail11qual_fn_sigISP_E8functionEEE Unexecuted instantiation: _ZN3scn2v34impl20read_until_code_unitINS1_15take_width_viewINS3_INS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS4_18default_sentinel_tEEEEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESI_NS1_12function_refIFbNDTcl4implISI_EEE4typeEENS1_12fnref_detail11qual_fn_sigISQ_E8functionEEE Unexecuted instantiation: _ZN3scn2v34impl20read_until_code_unitINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESF_NS1_12function_refIFbNDTcl4implISF_EEE4typeEENS1_12fnref_detail11qual_fn_sigISN_E8functionEEE Unexecuted instantiation: _ZN3scn2v34impl20read_until_code_unitINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEENS1_15take_width_viewINS6_ISC_SD_EEE8sentinelILb1EEEEEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESN_NS1_12function_refIFbNDTcl4implISN_EEE4typeEENS1_12fnref_detail11qual_fn_sigISV_E8functionEEE Unexecuted instantiation: _ZN3scn2v34impl20read_until_code_unitINS1_15take_width_viewINSt3__117basic_string_viewIcNS4_11char_traitsIcEEEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS4_9add_constIT_E4typeEEEEESC_NS1_12function_refIFbNDTcl4implISC_EEE4typeEENS1_12fnref_detail11qual_fn_sigISK_E8functionEEE Unexecuted instantiation: _ZN3scn2v34impl20read_until_code_unitINS1_15take_width_viewINS3_INSt3__117basic_string_viewIcNS4_11char_traitsIcEEEEEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS4_9add_constIT_E4typeEEEEESD_NS1_12function_refIFbNDTcl4implISD_EEE4typeEENS1_12fnref_detail11qual_fn_sigISL_E8functionEEE Unexecuted instantiation: _ZN3scn2v34impl20read_until_code_unitINSt3__117basic_string_viewIcNS3_11char_traitsIcEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS3_9add_constIT_E4typeEEEEESA_NS1_12function_refIFbNDTcl4implISA_EEE4typeEENS1_12fnref_detail11qual_fn_sigISI_E8functionEEE _ZN3scn2v34impl20read_until_code_unitINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSA_EENS1_15take_width_viewINS6_ISA_SA_EEE8sentinelILb1EEEEEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESK_NS1_12function_refIFbNDTcl4implISK_EEE4typeEENS1_12fnref_detail11qual_fn_sigISS_E8functionEEE Line | Count | Source | 1956 | 1.06k | { | 1957 | 1.06k | if constexpr (ranges::common_range<Range>) { | 1958 | 1.06k | return std::find_if(range.begin(), range.end(), pred); | 1959 | 1.06k | } | 1960 | 1.06k | else { | 1961 | 1.06k | auto first = range.begin(); | 1962 | 1.06k | for (; first != range.end(); ++first) { | 1963 | 1.06k | if (pred(*first)) { | 1964 | 1.06k | return first; | 1965 | 1.06k | } | 1966 | 1.06k | } | 1967 | 0 | return first; | 1968 | 1.06k | } | 1969 | 1.06k | } |
_ZN3scn2v34impl20read_until_code_unitINS0_6ranges6detail9subrange_8subrangeIPKcS8_EEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESC_NS1_12function_refIFbNDTcl4implISC_EEE4typeEENS1_12fnref_detail11qual_fn_sigISK_E8functionEEE Line | Count | Source | 1956 | 1.96k | { | 1957 | 1.96k | if constexpr (ranges::common_range<Range>) { | 1958 | 1.96k | return std::find_if(range.begin(), range.end(), pred); | 1959 | 1.96k | } | 1960 | 1.96k | else { | 1961 | 1.96k | auto first = range.begin(); | 1962 | 1.96k | for (; first != range.end(); ++first) { | 1963 | 1.96k | if (pred(*first)) { | 1964 | 1.96k | return first; | 1965 | 1.96k | } | 1966 | 1.96k | } | 1967 | 1.96k | return first; | 1968 | 1.96k | } | 1969 | 1.96k | } |
_ZN3scn2v34impl20read_until_code_unitINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcS9_EEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESE_NS1_12function_refIFbNDTcl4implISE_EEE4typeEENS1_12fnref_detail11qual_fn_sigISM_E8functionEEE Line | Count | Source | 1956 | 524 | { | 1957 | 524 | if constexpr (ranges::common_range<Range>) { | 1958 | 524 | return std::find_if(range.begin(), range.end(), pred); | 1959 | 524 | } | 1960 | 524 | else { | 1961 | 524 | auto first = range.begin(); | 1962 | 8.68k | for (; first != range.end(); ++first) { | 1963 | 8.42k | if (pred(*first)) { | 1964 | 268 | return first; | 1965 | 268 | } | 1966 | 8.42k | } | 1967 | 256 | return first; | 1968 | 524 | } | 1969 | 524 | } |
Unexecuted instantiation: _ZN3scn2v34impl20read_until_code_unitINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS4_18default_sentinel_tEEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESH_NS1_12function_refIFbNDTcl4implISH_EEE4typeEENS1_12fnref_detail11qual_fn_sigISP_E8functionEEE Unexecuted instantiation: _ZN3scn2v34impl20read_until_code_unitINS1_15take_width_viewINS3_INS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS4_18default_sentinel_tEEEEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESI_NS1_12function_refIFbNDTcl4implISI_EEE4typeEENS1_12fnref_detail11qual_fn_sigISQ_E8functionEEE Unexecuted instantiation: _ZN3scn2v34impl20read_until_code_unitINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESF_NS1_12function_refIFbNDTcl4implISF_EEE4typeEENS1_12fnref_detail11qual_fn_sigISN_E8functionEEE Unexecuted instantiation: _ZN3scn2v34impl20read_until_code_unitINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEENS1_15take_width_viewINS6_ISC_SD_EEE8sentinelILb1EEEEEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESN_NS1_12function_refIFbNDTcl4implISN_EEE4typeEENS1_12fnref_detail11qual_fn_sigISV_E8functionEEE Unexecuted instantiation: _ZN3scn2v34impl20read_until_code_unitINS1_15take_width_viewINSt3__117basic_string_viewIwNS4_11char_traitsIwEEEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS4_9add_constIT_E4typeEEEEESC_NS1_12function_refIFbNDTcl4implISC_EEE4typeEENS1_12fnref_detail11qual_fn_sigISK_E8functionEEE Unexecuted instantiation: _ZN3scn2v34impl20read_until_code_unitINS1_15take_width_viewINS3_INSt3__117basic_string_viewIwNS4_11char_traitsIwEEEEEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS4_9add_constIT_E4typeEEEEESD_NS1_12function_refIFbNDTcl4implISD_EEE4typeEENS1_12fnref_detail11qual_fn_sigISL_E8functionEEE Unexecuted instantiation: _ZN3scn2v34impl20read_until_code_unitINSt3__117basic_string_viewIwNS3_11char_traitsIwEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS3_9add_constIT_E4typeEEEEESA_NS1_12function_refIFbNDTcl4implISA_EEE4typeEENS1_12fnref_detail11qual_fn_sigISI_E8functionEEE _ZN3scn2v34impl20read_until_code_unitINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSA_EENS1_15take_width_viewINS6_ISA_SA_EEE8sentinelILb1EEEEEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESK_NS1_12function_refIFbNDTcl4implISK_EEE4typeEENS1_12fnref_detail11qual_fn_sigISS_E8functionEEE Line | Count | Source | 1956 | 492 | { | 1957 | 492 | if constexpr (ranges::common_range<Range>) { | 1958 | 492 | return std::find_if(range.begin(), range.end(), pred); | 1959 | 492 | } | 1960 | 492 | else { | 1961 | 492 | auto first = range.begin(); | 1962 | 492 | for (; first != range.end(); ++first) { | 1963 | 492 | if (pred(*first)) { | 1964 | 492 | return first; | 1965 | 492 | } | 1966 | 492 | } | 1967 | 0 | return first; | 1968 | 492 | } | 1969 | 492 | } |
_ZN3scn2v34impl20read_until_code_unitINS0_6ranges6detail9subrange_8subrangeIPKwS8_EEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESC_NS1_12function_refIFbNDTcl4implISC_EEE4typeEENS1_12fnref_detail11qual_fn_sigISK_E8functionEEE Line | Count | Source | 1956 | 530 | { | 1957 | 530 | if constexpr (ranges::common_range<Range>) { | 1958 | 530 | return std::find_if(range.begin(), range.end(), pred); | 1959 | 530 | } | 1960 | 530 | else { | 1961 | 530 | auto first = range.begin(); | 1962 | 530 | for (; first != range.end(); ++first) { | 1963 | 530 | if (pred(*first)) { | 1964 | 530 | return first; | 1965 | 530 | } | 1966 | 530 | } | 1967 | 530 | return first; | 1968 | 530 | } | 1969 | 530 | } |
_ZN3scn2v34impl20read_until_code_unitINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwS9_EEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESE_NS1_12function_refIFbNDTcl4implISE_EEE4typeEENS1_12fnref_detail11qual_fn_sigISM_E8functionEEE Line | Count | Source | 1956 | 100 | { | 1957 | 100 | if constexpr (ranges::common_range<Range>) { | 1958 | 100 | return std::find_if(range.begin(), range.end(), pred); | 1959 | 100 | } | 1960 | 100 | else { | 1961 | 100 | auto first = range.begin(); | 1962 | 1.17k | for (; first != range.end(); ++first) { | 1963 | 1.11k | if (pred(*first)) { | 1964 | 38 | return first; | 1965 | 38 | } | 1966 | 1.11k | } | 1967 | 62 | return first; | 1968 | 100 | } | 1969 | 100 | } |
_ZN3scn2v34impl20read_until_code_unitINS1_15take_width_viewINS3_INS0_6ranges6detail9subrange_8subrangeIPKcS9_EEEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESF_NS1_12function_refIFbNDTcl4implISF_EEE4typeEENS1_12fnref_detail11qual_fn_sigISN_E8functionEEE Line | Count | Source | 1956 | 504 | { | 1957 | 504 | if constexpr (ranges::common_range<Range>) { | 1958 | 504 | return std::find_if(range.begin(), range.end(), pred); | 1959 | 504 | } | 1960 | 504 | else { | 1961 | 504 | auto first = range.begin(); | 1962 | 866 | for (; first != range.end(); ++first) { | 1963 | 812 | if (pred(*first)) { | 1964 | 450 | return first; | 1965 | 450 | } | 1966 | 812 | } | 1967 | 54 | return first; | 1968 | 504 | } | 1969 | 504 | } |
_ZN3scn2v34impl20read_until_code_unitINS1_15take_width_viewINS3_INS0_6ranges6detail9subrange_8subrangeIPKwS9_EEEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESF_NS1_12function_refIFbNDTcl4implISF_EEE4typeEENS1_12fnref_detail11qual_fn_sigISN_E8functionEEE Line | Count | Source | 1956 | 242 | { | 1957 | 242 | if constexpr (ranges::common_range<Range>) { | 1958 | 242 | return std::find_if(range.begin(), range.end(), pred); | 1959 | 242 | } | 1960 | 242 | else { | 1961 | 242 | auto first = range.begin(); | 1962 | 322 | for (; first != range.end(); ++first) { | 1963 | 288 | if (pred(*first)) { | 1964 | 208 | return first; | 1965 | 208 | } | 1966 | 288 | } | 1967 | 34 | return first; | 1968 | 242 | } | 1969 | 242 | } |
|
1970 | | |
1971 | | template <typename Range> |
1972 | | auto read_while_code_unit(Range range, |
1973 | | function_ref<bool(detail::char_t<Range>)> pred) |
1974 | | -> ranges::const_iterator_t<Range> |
1975 | 4.78k | { |
1976 | 4.78k | return read_until_code_unit(range, std::not_fn(pred)); |
1977 | 4.78k | } Unexecuted instantiation: _ZN3scn2v34impl20read_while_code_unitINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS4_18default_sentinel_tEEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESH_NS1_12function_refIFbNDTcl4implISH_EEE4typeEENS1_12fnref_detail11qual_fn_sigISP_E8functionEEE Unexecuted instantiation: _ZN3scn2v34impl20read_while_code_unitINS1_15take_width_viewINS3_INS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS4_18default_sentinel_tEEEEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESI_NS1_12function_refIFbNDTcl4implISI_EEE4typeEENS1_12fnref_detail11qual_fn_sigISQ_E8functionEEE Unexecuted instantiation: _ZN3scn2v34impl20read_while_code_unitINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESF_NS1_12function_refIFbNDTcl4implISF_EEE4typeEENS1_12fnref_detail11qual_fn_sigISN_E8functionEEE Unexecuted instantiation: _ZN3scn2v34impl20read_while_code_unitINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEENS1_15take_width_viewINS6_ISC_SD_EEE8sentinelILb1EEEEEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESN_NS1_12function_refIFbNDTcl4implISN_EEE4typeEENS1_12fnref_detail11qual_fn_sigISV_E8functionEEE Unexecuted instantiation: _ZN3scn2v34impl20read_while_code_unitINS1_15take_width_viewINSt3__117basic_string_viewIcNS4_11char_traitsIcEEEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS4_9add_constIT_E4typeEEEEESC_NS1_12function_refIFbNDTcl4implISC_EEE4typeEENS1_12fnref_detail11qual_fn_sigISK_E8functionEEE Unexecuted instantiation: _ZN3scn2v34impl20read_while_code_unitINS1_15take_width_viewINS3_INSt3__117basic_string_viewIcNS4_11char_traitsIcEEEEEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS4_9add_constIT_E4typeEEEEESD_NS1_12function_refIFbNDTcl4implISD_EEE4typeEENS1_12fnref_detail11qual_fn_sigISL_E8functionEEE Unexecuted instantiation: _ZN3scn2v34impl20read_while_code_unitINSt3__117basic_string_viewIcNS3_11char_traitsIcEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS3_9add_constIT_E4typeEEEEESA_NS1_12function_refIFbNDTcl4implISA_EEE4typeEENS1_12fnref_detail11qual_fn_sigISI_E8functionEEE _ZN3scn2v34impl20read_while_code_unitINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSA_EENS1_15take_width_viewINS6_ISA_SA_EEE8sentinelILb1EEEEEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESK_NS1_12function_refIFbNDTcl4implISK_EEE4typeEENS1_12fnref_detail11qual_fn_sigISS_E8functionEEE Line | Count | Source | 1975 | 1.06k | { | 1976 | 1.06k | return read_until_code_unit(range, std::not_fn(pred)); | 1977 | 1.06k | } |
_ZN3scn2v34impl20read_while_code_unitINS0_6ranges6detail9subrange_8subrangeIPKcS8_EEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESC_NS1_12function_refIFbNDTcl4implISC_EEE4typeEENS1_12fnref_detail11qual_fn_sigISK_E8functionEEE Line | Count | Source | 1975 | 1.73k | { | 1976 | 1.73k | return read_until_code_unit(range, std::not_fn(pred)); | 1977 | 1.73k | } |
_ZN3scn2v34impl20read_while_code_unitINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcS9_EEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESE_NS1_12function_refIFbNDTcl4implISE_EEE4typeEENS1_12fnref_detail11qual_fn_sigISM_E8functionEEE Line | Count | Source | 1975 | 284 | { | 1976 | 284 | return read_until_code_unit(range, std::not_fn(pred)); | 1977 | 284 | } |
Unexecuted instantiation: _ZN3scn2v34impl20read_while_code_unitINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS4_18default_sentinel_tEEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESH_NS1_12function_refIFbNDTcl4implISH_EEE4typeEENS1_12fnref_detail11qual_fn_sigISP_E8functionEEE Unexecuted instantiation: _ZN3scn2v34impl20read_while_code_unitINS1_15take_width_viewINS3_INS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS4_18default_sentinel_tEEEEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESI_NS1_12function_refIFbNDTcl4implISI_EEE4typeEENS1_12fnref_detail11qual_fn_sigISQ_E8functionEEE Unexecuted instantiation: _ZN3scn2v34impl20read_while_code_unitINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESF_NS1_12function_refIFbNDTcl4implISF_EEE4typeEENS1_12fnref_detail11qual_fn_sigISN_E8functionEEE Unexecuted instantiation: _ZN3scn2v34impl20read_while_code_unitINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEENS1_15take_width_viewINS6_ISC_SD_EEE8sentinelILb1EEEEEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESN_NS1_12function_refIFbNDTcl4implISN_EEE4typeEENS1_12fnref_detail11qual_fn_sigISV_E8functionEEE Unexecuted instantiation: _ZN3scn2v34impl20read_while_code_unitINS1_15take_width_viewINSt3__117basic_string_viewIwNS4_11char_traitsIwEEEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS4_9add_constIT_E4typeEEEEESC_NS1_12function_refIFbNDTcl4implISC_EEE4typeEENS1_12fnref_detail11qual_fn_sigISK_E8functionEEE Unexecuted instantiation: _ZN3scn2v34impl20read_while_code_unitINS1_15take_width_viewINS3_INSt3__117basic_string_viewIwNS4_11char_traitsIwEEEEEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS4_9add_constIT_E4typeEEEEESD_NS1_12function_refIFbNDTcl4implISD_EEE4typeEENS1_12fnref_detail11qual_fn_sigISL_E8functionEEE Unexecuted instantiation: _ZN3scn2v34impl20read_while_code_unitINSt3__117basic_string_viewIwNS3_11char_traitsIwEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS3_9add_constIT_E4typeEEEEESA_NS1_12function_refIFbNDTcl4implISA_EEE4typeEENS1_12fnref_detail11qual_fn_sigISI_E8functionEEE _ZN3scn2v34impl20read_while_code_unitINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSA_EENS1_15take_width_viewINS6_ISA_SA_EEE8sentinelILb1EEEEEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESK_NS1_12function_refIFbNDTcl4implISK_EEE4typeEENS1_12fnref_detail11qual_fn_sigISS_E8functionEEE Line | Count | Source | 1975 | 492 | { | 1976 | 492 | return read_until_code_unit(range, std::not_fn(pred)); | 1977 | 492 | } |
_ZN3scn2v34impl20read_while_code_unitINS0_6ranges6detail9subrange_8subrangeIPKwS8_EEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESC_NS1_12function_refIFbNDTcl4implISC_EEE4typeEENS1_12fnref_detail11qual_fn_sigISK_E8functionEEE Line | Count | Source | 1975 | 422 | { | 1976 | 422 | return read_until_code_unit(range, std::not_fn(pred)); | 1977 | 422 | } |
_ZN3scn2v34impl20read_while_code_unitINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwS9_EEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESE_NS1_12function_refIFbNDTcl4implISE_EEE4typeEENS1_12fnref_detail11qual_fn_sigISM_E8functionEEE Line | Count | Source | 1975 | 40 | { | 1976 | 40 | return read_until_code_unit(range, std::not_fn(pred)); | 1977 | 40 | } |
_ZN3scn2v34impl20read_while_code_unitINS1_15take_width_viewINS3_INS0_6ranges6detail9subrange_8subrangeIPKcS9_EEEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESF_NS1_12function_refIFbNDTcl4implISF_EEE4typeEENS1_12fnref_detail11qual_fn_sigISN_E8functionEEE Line | Count | Source | 1975 | 504 | { | 1976 | 504 | return read_until_code_unit(range, std::not_fn(pred)); | 1977 | 504 | } |
_ZN3scn2v34impl20read_while_code_unitINS1_15take_width_viewINS3_INS0_6ranges6detail9subrange_8subrangeIPKwS9_EEEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESF_NS1_12function_refIFbNDTcl4implISF_EEE4typeEENS1_12fnref_detail11qual_fn_sigISN_E8functionEEE Line | Count | Source | 1975 | 242 | { | 1976 | 242 | return read_until_code_unit(range, std::not_fn(pred)); | 1977 | 242 | } |
|
1978 | | |
1979 | | template <typename Range> |
1980 | | auto read_until1_code_unit(Range range, |
1981 | | function_ref<bool(detail::char_t<Range>)> pred) |
1982 | | -> parse_expected<ranges::const_iterator_t<Range>> |
1983 | | { |
1984 | | auto it = read_until_code_unit(range, pred); |
1985 | | if (it == range.begin()) { |
1986 | | return unexpected(parse_error::error); |
1987 | | } |
1988 | | return it; |
1989 | | } |
1990 | | |
1991 | | template <typename Range> |
1992 | | auto read_while1_code_unit(Range range, |
1993 | | function_ref<bool(detail::char_t<Range>)> pred) |
1994 | | -> parse_expected<ranges::const_iterator_t<Range>> |
1995 | 1.59k | { |
1996 | 1.59k | auto it = read_while_code_unit(range, pred); |
1997 | 1.59k | if (it == range.begin()) { |
1998 | 1.59k | return unexpected(parse_error::error); |
1999 | 1.59k | } |
2000 | 0 | return it; |
2001 | 1.59k | } Unexecuted instantiation: _ZN3scn2v34impl21read_while1_code_unitINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEENS1_15take_width_viewINS6_ISC_SD_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_NS1_12function_refIFbNDTcl4implISO_EEE4typeEENS1_12fnref_detail11qual_fn_sigISX_E8functionEEE Unexecuted instantiation: _ZN3scn2v34impl21read_while1_code_unitINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_NS1_12function_refIFbNDTcl4implISG_EEE4typeEENS1_12fnref_detail11qual_fn_sigISP_E8functionEEE _ZN3scn2v34impl21read_while1_code_unitINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSA_EENS1_15take_width_viewINS6_ISA_SA_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_NS1_12function_refIFbNDTcl4implISL_EEE4typeEENS1_12fnref_detail11qual_fn_sigISU_E8functionEEE Line | Count | Source | 1995 | 1.06k | { | 1996 | 1.06k | auto it = read_while_code_unit(range, pred); | 1997 | 1.06k | if (it == range.begin()) { | 1998 | 1.06k | return unexpected(parse_error::error); | 1999 | 1.06k | } | 2000 | 0 | return it; | 2001 | 1.06k | } |
_ZN3scn2v34impl21read_while1_code_unitINS0_6ranges6detail9subrange_8subrangeIPKcS8_EEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESD_NS1_12function_refIFbNDTcl4implISD_EEE4typeEENS1_12fnref_detail11qual_fn_sigISM_E8functionEEE Line | Count | Source | 1995 | 28 | { | 1996 | 28 | auto it = read_while_code_unit(range, pred); | 1997 | 28 | if (it == range.begin()) { | 1998 | 28 | return unexpected(parse_error::error); | 1999 | 28 | } | 2000 | 0 | return it; | 2001 | 28 | } |
Unexecuted instantiation: _ZN3scn2v34impl21read_while1_code_unitINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEENS1_15take_width_viewINS6_ISC_SD_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_NS1_12function_refIFbNDTcl4implISO_EEE4typeEENS1_12fnref_detail11qual_fn_sigISX_E8functionEEE Unexecuted instantiation: _ZN3scn2v34impl21read_while1_code_unitINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_NS1_12function_refIFbNDTcl4implISG_EEE4typeEENS1_12fnref_detail11qual_fn_sigISP_E8functionEEE _ZN3scn2v34impl21read_while1_code_unitINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSA_EENS1_15take_width_viewINS6_ISA_SA_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_NS1_12function_refIFbNDTcl4implISL_EEE4typeEENS1_12fnref_detail11qual_fn_sigISU_E8functionEEE Line | Count | Source | 1995 | 492 | { | 1996 | 492 | auto it = read_while_code_unit(range, pred); | 1997 | 492 | if (it == range.begin()) { | 1998 | 492 | return unexpected(parse_error::error); | 1999 | 492 | } | 2000 | 0 | return it; | 2001 | 492 | } |
_ZN3scn2v34impl21read_while1_code_unitINS0_6ranges6detail9subrange_8subrangeIPKwS8_EEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESD_NS1_12function_refIFbNDTcl4implISD_EEE4typeEENS1_12fnref_detail11qual_fn_sigISM_E8functionEEE Line | Count | Source | 1995 | 6 | { | 1996 | 6 | auto it = read_while_code_unit(range, pred); | 1997 | 6 | if (it == range.begin()) { | 1998 | 6 | return unexpected(parse_error::error); | 1999 | 6 | } | 2000 | 0 | return it; | 2001 | 6 | } |
|
2002 | | |
2003 | | template <typename Range, typename CodeUnits> |
2004 | | auto read_until_code_units(Range range, const CodeUnits& needle) |
2005 | | -> ranges::const_iterator_t<Range> |
2006 | 96 | { |
2007 | 96 | static_assert(ranges::common_range<CodeUnits>); |
2008 | | |
2009 | 96 | if constexpr (ranges::common_range<Range>) { |
2010 | 54 | return std::search(range.begin(), range.end(), needle.begin(), |
2011 | 54 | needle.end()); |
2012 | 54 | } |
2013 | 54 | else { |
2014 | 54 | auto first = range.begin(); |
2015 | 204 | while (true) { |
2016 | 204 | auto it = first; |
2017 | 300 | for (auto needle_it = needle.begin();; ++it, (void)++needle_it) { |
2018 | 300 | if (needle_it == needle.end()) { |
2019 | 30 | return first; |
2020 | 30 | } |
2021 | 270 | if (it == range.end()) { |
2022 | 24 | return it; |
2023 | 24 | } |
2024 | 246 | if (*it != *needle_it) { |
2025 | 150 | break; |
2026 | 150 | } |
2027 | 246 | } |
2028 | 150 | ++first; |
2029 | 150 | } |
2030 | 54 | } |
2031 | 96 | } Unexecuted instantiation: _ZN3scn2v34impl21read_until_code_unitsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS4_18default_sentinel_tEEEEENSt3__117basic_string_viewIcNSF_11char_traitsIcEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSF_9add_constIT_E4typeEEEEESL_RKT0_ Unexecuted instantiation: _ZN3scn2v34impl21read_until_code_unitsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEENSt3__117basic_string_viewIcNSD_11char_traitsIcEEEEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSD_9add_constIT_E4typeEEEEESJ_RKT0_ _ZN3scn2v34impl21read_until_code_unitsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcS9_EEEENSt3__117basic_string_viewIcNSC_11char_traitsIcEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSC_9add_constIT_E4typeEEEEESI_RKT0_ Line | Count | Source | 2006 | 54 | { | 2007 | 54 | static_assert(ranges::common_range<CodeUnits>); | 2008 | | | 2009 | 54 | if constexpr (ranges::common_range<Range>) { | 2010 | 54 | return std::search(range.begin(), range.end(), needle.begin(), | 2011 | 54 | needle.end()); | 2012 | 54 | } | 2013 | 54 | else { | 2014 | 54 | auto first = range.begin(); | 2015 | 204 | while (true) { | 2016 | 204 | auto it = first; | 2017 | 300 | for (auto needle_it = needle.begin();; ++it, (void)++needle_it) { | 2018 | 300 | if (needle_it == needle.end()) { | 2019 | 30 | return first; | 2020 | 30 | } | 2021 | 270 | if (it == range.end()) { | 2022 | 24 | return it; | 2023 | 24 | } | 2024 | 246 | if (*it != *needle_it) { | 2025 | 150 | break; | 2026 | 150 | } | 2027 | 246 | } | 2028 | 150 | ++first; | 2029 | 150 | } | 2030 | 54 | } | 2031 | 54 | } |
_ZN3scn2v34impl21read_until_code_unitsINS0_6ranges6detail9subrange_8subrangeIPKcS8_EENSt3__117basic_string_viewIcNSA_11char_traitsIcEEEEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSA_9add_constIT_E4typeEEEEESG_RKT0_ Line | Count | Source | 2006 | 42 | { | 2007 | 42 | static_assert(ranges::common_range<CodeUnits>); | 2008 | | | 2009 | 42 | if constexpr (ranges::common_range<Range>) { | 2010 | 42 | return std::search(range.begin(), range.end(), needle.begin(), | 2011 | 42 | needle.end()); | 2012 | 42 | } | 2013 | 42 | else { | 2014 | 42 | auto first = range.begin(); | 2015 | 42 | while (true) { | 2016 | 42 | auto it = first; | 2017 | 42 | for (auto needle_it = needle.begin();; ++it, (void)++needle_it) { | 2018 | 42 | if (needle_it == needle.end()) { | 2019 | 42 | return first; | 2020 | 42 | } | 2021 | 42 | if (it == range.end()) { | 2022 | 42 | return it; | 2023 | 42 | } | 2024 | 42 | if (*it != *needle_it) { | 2025 | 42 | break; | 2026 | 42 | } | 2027 | 42 | } | 2028 | 42 | ++first; | 2029 | 42 | } | 2030 | 42 | } | 2031 | 42 | } |
Unexecuted instantiation: _ZN3scn2v34impl21read_until_code_unitsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS4_18default_sentinel_tEEEEENSt3__117basic_string_viewIwNSF_11char_traitsIwEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSF_9add_constIT_E4typeEEEEESL_RKT0_ Unexecuted instantiation: _ZN3scn2v34impl21read_until_code_unitsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEENSt3__117basic_string_viewIwNSD_11char_traitsIwEEEEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSD_9add_constIT_E4typeEEEEESJ_RKT0_ Unexecuted instantiation: _ZN3scn2v34impl21read_until_code_unitsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwS9_EEEENSt3__117basic_string_viewIwNSC_11char_traitsIwEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSC_9add_constIT_E4typeEEEEESI_RKT0_ Unexecuted instantiation: _ZN3scn2v34impl21read_until_code_unitsINS0_6ranges6detail9subrange_8subrangeIPKwS8_EENSt3__117basic_string_viewIwNSA_11char_traitsIwEEEEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSA_9add_constIT_E4typeEEEEESG_RKT0_ |
2032 | | |
2033 | | template <typename Range, typename CodeUnits> |
2034 | | auto read_while_code_units(Range range, const CodeUnits& needle) |
2035 | | -> ranges::const_iterator_t<Range> |
2036 | 438 | { |
2037 | 438 | static_assert(ranges::common_range<CodeUnits>); |
2038 | | |
2039 | 438 | auto it = range.begin(); |
2040 | 516 | while (it != range.end()) { |
2041 | 486 | auto r = read_exactly_n_code_units(ranges::subrange{it, range.end()}, |
2042 | 486 | needle.size()); |
2043 | 486 | if (!r) { |
2044 | 88 | return it; |
2045 | 88 | } |
2046 | 398 | static_assert( |
2047 | 398 | std::is_same_v<decltype(it), detail::remove_cvref_t<decltype(*r)>>); |
2048 | 398 | if (!std::equal(it, *r, needle.begin())) { |
2049 | 320 | return it; |
2050 | 320 | } |
2051 | 78 | it = *r; |
2052 | 78 | } |
2053 | 30 | SCN_ENSURE(it == range.end()); |
2054 | 30 | return it; |
2055 | 30 | } Unexecuted instantiation: _ZN3scn2v34impl21read_while_code_unitsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS4_18default_sentinel_tEEEEENSt3__117basic_string_viewIcNSF_11char_traitsIcEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSF_9add_constIT_E4typeEEEEESL_RKT0_ Unexecuted instantiation: _ZN3scn2v34impl21read_while_code_unitsINS1_15take_width_viewINS3_INS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS4_18default_sentinel_tEEEEEEENSt3__117basic_string_viewIcNSG_11char_traitsIcEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSG_9add_constIT_E4typeEEEEESM_RKT0_ Unexecuted instantiation: _ZN3scn2v34impl21read_while_code_unitsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEENSt3__117basic_string_viewIcNSD_11char_traitsIcEEEEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSD_9add_constIT_E4typeEEEEESJ_RKT0_ Unexecuted instantiation: _ZN3scn2v34impl21read_while_code_unitsINS1_15take_width_viewINSt3__117basic_string_viewIcNS4_11char_traitsIcEEEEEES8_EEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS4_9add_constIT_E4typeEEEEESC_RKT0_ Unexecuted instantiation: _ZN3scn2v34impl21read_while_code_unitsINS1_15take_width_viewINS3_INSt3__117basic_string_viewIcNS4_11char_traitsIcEEEEEEEES8_EEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS4_9add_constIT_E4typeEEEEESD_RKT0_ Unexecuted instantiation: _ZN3scn2v34impl21read_while_code_unitsINSt3__117basic_string_viewIcNS3_11char_traitsIcEEEES7_EEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS3_9add_constIT_E4typeEEEEESA_RKT0_ _ZN3scn2v34impl21read_while_code_unitsINS0_6ranges6detail9subrange_8subrangeIPKcS8_EENSt3__117basic_string_viewIcNSA_11char_traitsIcEEEEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSA_9add_constIT_E4typeEEEEESG_RKT0_ Line | Count | Source | 2036 | 132 | { | 2037 | 132 | static_assert(ranges::common_range<CodeUnits>); | 2038 | | | 2039 | 132 | auto it = range.begin(); | 2040 | 168 | while (it != range.end()) { | 2041 | 168 | auto r = read_exactly_n_code_units(ranges::subrange{it, range.end()}, | 2042 | 168 | needle.size()); | 2043 | 168 | if (!r) { | 2044 | 6 | return it; | 2045 | 6 | } | 2046 | 162 | static_assert( | 2047 | 162 | std::is_same_v<decltype(it), detail::remove_cvref_t<decltype(*r)>>); | 2048 | 162 | if (!std::equal(it, *r, needle.begin())) { | 2049 | 126 | return it; | 2050 | 126 | } | 2051 | 36 | it = *r; | 2052 | 36 | } | 2053 | 0 | SCN_ENSURE(it == range.end()); | 2054 | 0 | return it; | 2055 | 0 | } |
_ZN3scn2v34impl21read_while_code_unitsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcS9_EEEENSt3__117basic_string_viewIcNSC_11char_traitsIcEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSC_9add_constIT_E4typeEEEEESI_RKT0_ Line | Count | Source | 2036 | 100 | { | 2037 | 100 | static_assert(ranges::common_range<CodeUnits>); | 2038 | | | 2039 | 100 | auto it = range.begin(); | 2040 | 142 | while (it != range.end()) { | 2041 | 112 | auto r = read_exactly_n_code_units(ranges::subrange{it, range.end()}, | 2042 | 112 | needle.size()); | 2043 | 112 | if (!r) { | 2044 | 22 | return it; | 2045 | 22 | } | 2046 | 90 | static_assert( | 2047 | 90 | std::is_same_v<decltype(it), detail::remove_cvref_t<decltype(*r)>>); | 2048 | 90 | if (!std::equal(it, *r, needle.begin())) { | 2049 | 48 | return it; | 2050 | 48 | } | 2051 | 42 | it = *r; | 2052 | 42 | } | 2053 | 30 | SCN_ENSURE(it == range.end()); | 2054 | 30 | return it; | 2055 | 30 | } |
Unexecuted instantiation: _ZN3scn2v34impl21read_while_code_unitsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS4_18default_sentinel_tEEEEENSt3__117basic_string_viewIwNSF_11char_traitsIwEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSF_9add_constIT_E4typeEEEEESL_RKT0_ Unexecuted instantiation: _ZN3scn2v34impl21read_while_code_unitsINS1_15take_width_viewINS3_INS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS4_18default_sentinel_tEEEEEEENSt3__117basic_string_viewIwNSG_11char_traitsIwEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSG_9add_constIT_E4typeEEEEESM_RKT0_ Unexecuted instantiation: _ZN3scn2v34impl21read_while_code_unitsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEENSt3__117basic_string_viewIwNSD_11char_traitsIwEEEEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSD_9add_constIT_E4typeEEEEESJ_RKT0_ Unexecuted instantiation: _ZN3scn2v34impl21read_while_code_unitsINS1_15take_width_viewINSt3__117basic_string_viewIwNS4_11char_traitsIwEEEEEES8_EEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS4_9add_constIT_E4typeEEEEESC_RKT0_ Unexecuted instantiation: _ZN3scn2v34impl21read_while_code_unitsINS1_15take_width_viewINS3_INSt3__117basic_string_viewIwNS4_11char_traitsIwEEEEEEEES8_EEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS4_9add_constIT_E4typeEEEEESD_RKT0_ Unexecuted instantiation: _ZN3scn2v34impl21read_while_code_unitsINSt3__117basic_string_viewIwNS3_11char_traitsIwEEEES7_EEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS3_9add_constIT_E4typeEEEEESA_RKT0_ Unexecuted instantiation: _ZN3scn2v34impl21read_while_code_unitsINS0_6ranges6detail9subrange_8subrangeIPKwS8_EENSt3__117basic_string_viewIwNSA_11char_traitsIwEEEEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSA_9add_constIT_E4typeEEEEESG_RKT0_ Unexecuted instantiation: _ZN3scn2v34impl21read_while_code_unitsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwS9_EEEENSt3__117basic_string_viewIwNSC_11char_traitsIwEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSC_9add_constIT_E4typeEEEEESI_RKT0_ _ZN3scn2v34impl21read_while_code_unitsINS1_15take_width_viewINS3_INS0_6ranges6detail9subrange_8subrangeIPKcS9_EEEEEENSt3__117basic_string_viewIcNSD_11char_traitsIcEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSD_9add_constIT_E4typeEEEEESJ_RKT0_ Line | Count | Source | 2036 | 206 | { | 2037 | 206 | static_assert(ranges::common_range<CodeUnits>); | 2038 | | | 2039 | 206 | auto it = range.begin(); | 2040 | 206 | while (it != range.end()) { | 2041 | 206 | auto r = read_exactly_n_code_units(ranges::subrange{it, range.end()}, | 2042 | 206 | needle.size()); | 2043 | 206 | if (!r) { | 2044 | 60 | return it; | 2045 | 60 | } | 2046 | 146 | static_assert( | 2047 | 146 | std::is_same_v<decltype(it), detail::remove_cvref_t<decltype(*r)>>); | 2048 | 146 | if (!std::equal(it, *r, needle.begin())) { | 2049 | 146 | return it; | 2050 | 146 | } | 2051 | 0 | it = *r; | 2052 | 0 | } | 2053 | 0 | SCN_ENSURE(it == range.end()); | 2054 | 0 | return it; | 2055 | 0 | } |
Unexecuted instantiation: _ZN3scn2v34impl21read_while_code_unitsINS1_15take_width_viewINS3_INS0_6ranges6detail9subrange_8subrangeIPKwS9_EEEEEENSt3__117basic_string_viewIwNSD_11char_traitsIwEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSD_9add_constIT_E4typeEEEEESJ_RKT0_ |
2056 | | |
2057 | | template <typename Range> |
2058 | | auto read_until_code_point(Range range, function_ref<bool(char32_t)> pred) |
2059 | | -> ranges::const_iterator_t<Range> |
2060 | 469k | { |
2061 | 469k | auto it = range.begin(); |
2062 | 1.16M | while (it != range.end()) { |
2063 | 1.07M | const auto val = |
2064 | 1.07M | read_code_point_into(ranges::subrange{it, range.end()}); |
2065 | 1.07M | if (SCN_LIKELY(val.is_valid())) { |
2066 | 1.07M | const auto cp = detail::decode_code_point_exhaustive( |
2067 | 1.07M | std::basic_string_view<detail::char_t<Range>>{val.codepoint}); |
2068 | 1.07M | if (pred(cp)) { |
2069 | 378k | return it; |
2070 | 378k | } |
2071 | 1.07M | } |
2072 | 696k | it = val.iterator; |
2073 | 696k | } |
2074 | | |
2075 | 90.6k | return it; |
2076 | 469k | } Unexecuted instantiation: _ZN3scn2v34impl21read_until_code_pointINS1_15take_width_viewINS3_INS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS4_18default_sentinel_tEEEEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESI_NS1_12function_refIFbDiESO_EE Unexecuted instantiation: _ZN3scn2v34impl21read_until_code_pointINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS4_18default_sentinel_tEEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESH_NS1_12function_refIFbDiESN_EE Unexecuted instantiation: _ZN3scn2v34impl21read_until_code_pointINS1_15take_width_viewINS3_INSt3__117basic_string_viewIcNS4_11char_traitsIcEEEEEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS4_9add_constIT_E4typeEEEEESD_NS1_12function_refIFbDiESJ_EE Unexecuted instantiation: _ZN3scn2v34impl21read_until_code_pointINS1_15take_width_viewINSt3__117basic_string_viewIcNS4_11char_traitsIcEEEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS4_9add_constIT_E4typeEEEEESC_NS1_12function_refIFbDiESI_EE _ZN3scn2v34impl21read_until_code_pointINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcS9_EEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESE_NS1_12function_refIFbDiESK_EE Line | Count | Source | 2060 | 796 | { | 2061 | 796 | auto it = range.begin(); | 2062 | 21.9k | while (it != range.end()) { | 2063 | 21.7k | const auto val = | 2064 | 21.7k | read_code_point_into(ranges::subrange{it, range.end()}); | 2065 | 21.7k | if (SCN_LIKELY(val.is_valid())) { | 2066 | 20.7k | const auto cp = detail::decode_code_point_exhaustive( | 2067 | 20.7k | std::basic_string_view<detail::char_t<Range>>{val.codepoint}); | 2068 | 20.7k | if (pred(cp)) { | 2069 | 560 | return it; | 2070 | 560 | } | 2071 | 20.7k | } | 2072 | 21.1k | it = val.iterator; | 2073 | 21.1k | } | 2074 | | | 2075 | 236 | return it; | 2076 | 796 | } |
Unexecuted instantiation: _ZN3scn2v34impl21read_until_code_pointINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEENS1_15take_width_viewINS6_ISC_SD_EEE8sentinelILb1EEEEEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESN_NS1_12function_refIFbDiEST_EE Unexecuted instantiation: _ZN3scn2v34impl21read_until_code_pointINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESF_NS1_12function_refIFbDiESL_EE _ZN3scn2v34impl21read_until_code_pointINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSA_EENS1_15take_width_viewINS6_ISA_SA_EEE8sentinelILb1EEEEEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESK_NS1_12function_refIFbDiESQ_EE Line | Count | Source | 2060 | 732 | { | 2061 | 732 | auto it = range.begin(); | 2062 | 10.4k | while (it != range.end()) { | 2063 | 9.88k | const auto val = | 2064 | 9.88k | read_code_point_into(ranges::subrange{it, range.end()}); | 2065 | 9.88k | if (SCN_LIKELY(val.is_valid())) { | 2066 | 8.44k | const auto cp = detail::decode_code_point_exhaustive( | 2067 | 8.44k | std::basic_string_view<detail::char_t<Range>>{val.codepoint}); | 2068 | 8.44k | if (pred(cp)) { | 2069 | 168 | return it; | 2070 | 168 | } | 2071 | 8.44k | } | 2072 | 9.71k | it = val.iterator; | 2073 | 9.71k | } | 2074 | | | 2075 | 564 | return it; | 2076 | 732 | } |
_ZN3scn2v34impl21read_until_code_pointINS0_6ranges6detail9subrange_8subrangeIPKcS8_EEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESC_NS1_12function_refIFbDiESI_EE Line | Count | Source | 2060 | 2.32k | { | 2061 | 2.32k | auto it = range.begin(); | 2062 | 284k | while (it != range.end()) { | 2063 | 284k | const auto val = | 2064 | 284k | read_code_point_into(ranges::subrange{it, range.end()}); | 2065 | 284k | if (SCN_LIKELY(val.is_valid())) { | 2066 | 283k | const auto cp = detail::decode_code_point_exhaustive( | 2067 | 283k | std::basic_string_view<detail::char_t<Range>>{val.codepoint}); | 2068 | 283k | if (pred(cp)) { | 2069 | 2.16k | return it; | 2070 | 2.16k | } | 2071 | 283k | } | 2072 | 282k | it = val.iterator; | 2073 | 282k | } | 2074 | | | 2075 | 156 | return it; | 2076 | 2.32k | } |
Unexecuted instantiation: _ZN3scn2v34impl21read_until_code_pointINS1_15take_width_viewINS3_INS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS4_18default_sentinel_tEEEEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESI_NS1_12function_refIFbDiESO_EE Unexecuted instantiation: _ZN3scn2v34impl21read_until_code_pointINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS4_18default_sentinel_tEEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESH_NS1_12function_refIFbDiESN_EE Unexecuted instantiation: _ZN3scn2v34impl21read_until_code_pointINS1_15take_width_viewINS3_INSt3__117basic_string_viewIwNS4_11char_traitsIwEEEEEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS4_9add_constIT_E4typeEEEEESD_NS1_12function_refIFbDiESJ_EE Unexecuted instantiation: _ZN3scn2v34impl21read_until_code_pointINS1_15take_width_viewINSt3__117basic_string_viewIwNS4_11char_traitsIwEEEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS4_9add_constIT_E4typeEEEEESC_NS1_12function_refIFbDiESI_EE _ZN3scn2v34impl21read_until_code_pointINSt3__117basic_string_viewIwNS3_11char_traitsIwEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS3_9add_constIT_E4typeEEEEESA_NS1_12function_refIFbDiESG_EE Line | Count | Source | 2060 | 174k | { | 2061 | 174k | auto it = range.begin(); | 2062 | 175k | while (it != range.end()) { | 2063 | 88.7k | const auto val = | 2064 | 88.7k | read_code_point_into(ranges::subrange{it, range.end()}); | 2065 | 88.7k | if (SCN_LIKELY(val.is_valid())) { | 2066 | 88.7k | const auto cp = detail::decode_code_point_exhaustive( | 2067 | 88.7k | std::basic_string_view<detail::char_t<Range>>{val.codepoint}); | 2068 | 88.7k | if (pred(cp)) { | 2069 | 87.4k | return it; | 2070 | 87.4k | } | 2071 | 88.7k | } | 2072 | 1.28k | it = val.iterator; | 2073 | 1.28k | } | 2074 | | | 2075 | 86.5k | return it; | 2076 | 174k | } |
_ZN3scn2v34impl21read_until_code_pointINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwS9_EEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESE_NS1_12function_refIFbDiESK_EE Line | Count | Source | 2060 | 86 | { | 2061 | 86 | auto it = range.begin(); | 2062 | 86 | while (it != range.end()) { | 2063 | 86 | const auto val = | 2064 | 86 | read_code_point_into(ranges::subrange{it, range.end()}); | 2065 | 86 | if (SCN_LIKELY(val.is_valid())) { | 2066 | 86 | const auto cp = detail::decode_code_point_exhaustive( | 2067 | 86 | std::basic_string_view<detail::char_t<Range>>{val.codepoint}); | 2068 | 86 | if (pred(cp)) { | 2069 | 86 | return it; | 2070 | 86 | } | 2071 | 86 | } | 2072 | 0 | it = val.iterator; | 2073 | 0 | } | 2074 | | | 2075 | 0 | return it; | 2076 | 86 | } |
_ZN3scn2v34impl21read_until_code_pointINS0_6ranges6detail9subrange_8subrangeIPKwS8_EEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESC_NS1_12function_refIFbDiESI_EE Line | Count | Source | 2060 | 288k | { | 2061 | 288k | auto it = range.begin(); | 2062 | 662k | while (it != range.end()) { | 2063 | 659k | const auto val = | 2064 | 659k | read_code_point_into(ranges::subrange{it, range.end()}); | 2065 | 659k | if (SCN_LIKELY(val.is_valid())) { | 2066 | 659k | const auto cp = detail::decode_code_point_exhaustive( | 2067 | 659k | std::basic_string_view<detail::char_t<Range>>{val.codepoint}); | 2068 | 659k | if (pred(cp)) { | 2069 | 285k | return it; | 2070 | 285k | } | 2071 | 659k | } | 2072 | 373k | it = val.iterator; | 2073 | 373k | } | 2074 | | | 2075 | 2.71k | return it; | 2076 | 288k | } |
Unexecuted instantiation: _ZN3scn2v34impl21read_until_code_pointINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEENS1_15take_width_viewINS6_ISC_SD_EEE8sentinelILb1EEEEEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESN_NS1_12function_refIFbDiEST_EE Unexecuted instantiation: _ZN3scn2v34impl21read_until_code_pointINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESF_NS1_12function_refIFbDiESL_EE _ZN3scn2v34impl21read_until_code_pointINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSA_EENS1_15take_width_viewINS6_ISA_SA_EEE8sentinelILb1EEEEEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESK_NS1_12function_refIFbDiESQ_EE Line | Count | Source | 2060 | 324 | { | 2061 | 324 | auto it = range.begin(); | 2062 | 7.87k | while (it != range.end()) { | 2063 | 7.60k | const auto val = | 2064 | 7.60k | read_code_point_into(ranges::subrange{it, range.end()}); | 2065 | 7.60k | if (SCN_LIKELY(val.is_valid())) { | 2066 | 7.60k | const auto cp = detail::decode_code_point_exhaustive( | 2067 | 7.60k | std::basic_string_view<detail::char_t<Range>>{val.codepoint}); | 2068 | 7.60k | if (pred(cp)) { | 2069 | 54 | return it; | 2070 | 54 | } | 2071 | 7.60k | } | 2072 | 7.55k | it = val.iterator; | 2073 | 7.55k | } | 2074 | | | 2075 | 270 | return it; | 2076 | 324 | } |
_ZN3scn2v34impl21read_until_code_pointINS1_15take_width_viewINS3_INS0_6ranges6detail9subrange_8subrangeIPKcS9_EEEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESF_NS1_12function_refIFbDiESL_EE Line | Count | Source | 2060 | 1.87k | { | 2061 | 1.87k | auto it = range.begin(); | 2062 | 3.00k | while (it != range.end()) { | 2063 | 2.86k | const auto val = | 2064 | 2.86k | read_code_point_into(ranges::subrange{it, range.end()}); | 2065 | 2.86k | if (SCN_LIKELY(val.is_valid())) { | 2066 | 2.86k | const auto cp = detail::decode_code_point_exhaustive( | 2067 | 2.86k | std::basic_string_view<detail::char_t<Range>>{val.codepoint}); | 2068 | 2.86k | if (pred(cp)) { | 2069 | 1.73k | return it; | 2070 | 1.73k | } | 2071 | 2.86k | } | 2072 | 1.13k | it = val.iterator; | 2073 | 1.13k | } | 2074 | | | 2075 | 142 | return it; | 2076 | 1.87k | } |
_ZN3scn2v34impl21read_until_code_pointINS1_15take_width_viewINS3_INS0_6ranges6detail9subrange_8subrangeIPKwS9_EEEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESF_NS1_12function_refIFbDiESL_EE Line | Count | Source | 2060 | 794 | { | 2061 | 794 | auto it = range.begin(); | 2062 | 794 | while (it != range.end()) { | 2063 | 794 | const auto val = | 2064 | 794 | read_code_point_into(ranges::subrange{it, range.end()}); | 2065 | 794 | if (SCN_LIKELY(val.is_valid())) { | 2066 | 794 | const auto cp = detail::decode_code_point_exhaustive( | 2067 | 794 | std::basic_string_view<detail::char_t<Range>>{val.codepoint}); | 2068 | 794 | if (pred(cp)) { | 2069 | 794 | return it; | 2070 | 794 | } | 2071 | 794 | } | 2072 | 0 | it = val.iterator; | 2073 | 0 | } | 2074 | | | 2075 | 0 | return it; | 2076 | 794 | } |
|
2077 | | |
2078 | | template <typename Range> |
2079 | | auto read_while_code_point(Range range, function_ref<bool(char32_t)> pred) |
2080 | | -> ranges::const_iterator_t<Range> |
2081 | 436k | { |
2082 | 436k | return read_until_code_point(range, std::not_fn(pred)); |
2083 | 436k | } Unexecuted instantiation: _ZN3scn2v34impl21read_while_code_pointINS1_15take_width_viewINS3_INS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS4_18default_sentinel_tEEEEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESI_NS1_12function_refIFbDiESO_EE Unexecuted instantiation: _ZN3scn2v34impl21read_while_code_pointINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS4_18default_sentinel_tEEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESH_NS1_12function_refIFbDiESN_EE Unexecuted instantiation: _ZN3scn2v34impl21read_while_code_pointINS1_15take_width_viewINS3_INSt3__117basic_string_viewIcNS4_11char_traitsIcEEEEEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS4_9add_constIT_E4typeEEEEESD_NS1_12function_refIFbDiESJ_EE Unexecuted instantiation: _ZN3scn2v34impl21read_while_code_pointINS1_15take_width_viewINSt3__117basic_string_viewIcNS4_11char_traitsIcEEEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS4_9add_constIT_E4typeEEEEESC_NS1_12function_refIFbDiESI_EE _ZN3scn2v34impl21read_while_code_pointINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcS9_EEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESE_NS1_12function_refIFbDiESK_EE Line | Count | Source | 2081 | 670 | { | 2082 | 670 | return read_until_code_point(range, std::not_fn(pred)); | 2083 | 670 | } |
Unexecuted instantiation: _ZN3scn2v34impl21read_while_code_pointINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESF_NS1_12function_refIFbDiESL_EE _ZN3scn2v34impl21read_while_code_pointINS0_6ranges6detail9subrange_8subrangeIPKcS8_EEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESC_NS1_12function_refIFbDiESI_EE Line | Count | Source | 2081 | 2.12k | { | 2082 | 2.12k | return read_until_code_point(range, std::not_fn(pred)); | 2083 | 2.12k | } |
Unexecuted instantiation: _ZN3scn2v34impl21read_while_code_pointINS1_15take_width_viewINS3_INS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS4_18default_sentinel_tEEEEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESI_NS1_12function_refIFbDiESO_EE Unexecuted instantiation: _ZN3scn2v34impl21read_while_code_pointINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS4_18default_sentinel_tEEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESH_NS1_12function_refIFbDiESN_EE Unexecuted instantiation: _ZN3scn2v34impl21read_while_code_pointINS1_15take_width_viewINS3_INSt3__117basic_string_viewIwNS4_11char_traitsIwEEEEEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS4_9add_constIT_E4typeEEEEESD_NS1_12function_refIFbDiESJ_EE Unexecuted instantiation: _ZN3scn2v34impl21read_while_code_pointINS1_15take_width_viewINSt3__117basic_string_viewIwNS4_11char_traitsIwEEEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS4_9add_constIT_E4typeEEEEESC_NS1_12function_refIFbDiESI_EE _ZN3scn2v34impl21read_while_code_pointINSt3__117basic_string_viewIwNS3_11char_traitsIwEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS3_9add_constIT_E4typeEEEEESA_NS1_12function_refIFbDiESG_EE Line | Count | Source | 2081 | 174k | { | 2082 | 174k | return read_until_code_point(range, std::not_fn(pred)); | 2083 | 174k | } |
_ZN3scn2v34impl21read_while_code_pointINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwS9_EEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESE_NS1_12function_refIFbDiESK_EE Line | Count | Source | 2081 | 86 | { | 2082 | 86 | return read_until_code_point(range, std::not_fn(pred)); | 2083 | 86 | } |
_ZN3scn2v34impl21read_while_code_pointINS0_6ranges6detail9subrange_8subrangeIPKwS8_EEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESC_NS1_12function_refIFbDiESI_EE Line | Count | Source | 2081 | 257k | { | 2082 | 257k | return read_until_code_point(range, std::not_fn(pred)); | 2083 | 257k | } |
Unexecuted instantiation: _ZN3scn2v34impl21read_while_code_pointINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESF_NS1_12function_refIFbDiESL_EE _ZN3scn2v34impl21read_while_code_pointINS1_15take_width_viewINS3_INS0_6ranges6detail9subrange_8subrangeIPKcS9_EEEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESF_NS1_12function_refIFbDiESL_EE Line | Count | Source | 2081 | 1.87k | { | 2082 | 1.87k | return read_until_code_point(range, std::not_fn(pred)); | 2083 | 1.87k | } |
_ZN3scn2v34impl21read_while_code_pointINS1_15take_width_viewINS3_INS0_6ranges6detail9subrange_8subrangeIPKwS9_EEEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESF_NS1_12function_refIFbDiESL_EE Line | Count | Source | 2081 | 794 | { | 2082 | 794 | return read_until_code_point(range, std::not_fn(pred)); | 2083 | 794 | } |
|
2084 | | |
2085 | | template <typename Range> |
2086 | | auto read_until_classic_space(Range range) -> ranges::const_iterator_t<Range> |
2087 | 34.7k | { |
2088 | 34.7k | if constexpr (ranges::contiguous_range<Range> && |
2089 | 34.7k | ranges::sized_range<Range> && |
2090 | 34.7k | std::is_same_v<detail::char_t<Range>, char>) { |
2091 | 32.0k | auto buf = make_contiguous_buffer(range); |
2092 | 32.0k | auto it = find_classic_space_narrow_fast(buf.view()); |
2093 | 32.0k | return ranges::next(range.begin(), |
2094 | 32.0k | ranges::distance(buf.view().begin(), it)); |
2095 | 32.0k | } |
2096 | 32.0k | else { |
2097 | 32.0k | auto it = range.begin(); |
2098 | | |
2099 | 32.0k | if constexpr (std::is_same_v<detail::char_t<Range>, char>) { |
2100 | 732 | auto seg = get_contiguous_beginning(range); |
2101 | 732 | if (auto seg_it = find_classic_space_narrow_fast(seg); |
2102 | 732 | seg_it != seg.end()) { |
2103 | 0 | return ranges::next(it, ranges::distance(seg.begin(), seg_it)); |
2104 | 0 | } |
2105 | 732 | ranges::advance(it, seg.size()); |
2106 | 732 | } |
2107 | | |
2108 | 732 | return read_until_code_point( |
2109 | 732 | ranges::subrange{it, range.end()}, |
2110 | 241k | [](char32_t cp) noexcept { return is_cp_space(cp); });Unexecuted instantiation: _ZZN3scn2v34impl24read_until_classic_spaceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS4_18default_sentinel_tEEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESH_ENKUlDiE_clEDi Unexecuted instantiation: _ZZN3scn2v34impl24read_until_classic_spaceINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESF_ENKUlDiE_clEDi _ZZN3scn2v34impl24read_until_classic_spaceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcS9_EEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESE_ENKUlDiE_clEDi Line | Count | Source | 2110 | 8.44k | [](char32_t cp) noexcept { return is_cp_space(cp); }); |
Unexecuted instantiation: _ZZN3scn2v34impl24read_until_classic_spaceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS4_18default_sentinel_tEEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESH_ENKUlDiE_clEDi Unexecuted instantiation: _ZZN3scn2v34impl24read_until_classic_spaceINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESF_ENKUlDiE_clEDi _ZZN3scn2v34impl24read_until_classic_spaceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwS9_EEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESE_ENKUlDiE_clEDi Line | Count | Source | 2110 | 7.60k | [](char32_t cp) noexcept { return is_cp_space(cp); }); |
_ZZN3scn2v34impl24read_until_classic_spaceINS0_6ranges6detail9subrange_8subrangeIPKwS8_EEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESC_ENKUlDiE_clEDi Line | Count | Source | 2110 | 225k | [](char32_t cp) noexcept { return is_cp_space(cp); }); |
Unexecuted instantiation: _ZZN3scn2v34impl24read_until_classic_spaceINSt3__117basic_string_viewIwNS3_11char_traitsIwEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS3_9add_constIT_E4typeEEEEESA_ENKUlDiE_clEDi |
2111 | 32.0k | } |
2112 | 34.7k | } Unexecuted instantiation: _ZN3scn2v34impl24read_until_classic_spaceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS4_18default_sentinel_tEEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESH_ Unexecuted instantiation: _ZN3scn2v34impl24read_until_classic_spaceINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESF_ _ZN3scn2v34impl24read_until_classic_spaceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcS9_EEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESE_ Line | Count | Source | 2087 | 732 | { | 2088 | 732 | if constexpr (ranges::contiguous_range<Range> && | 2089 | 732 | ranges::sized_range<Range> && | 2090 | 732 | std::is_same_v<detail::char_t<Range>, char>) { | 2091 | 732 | auto buf = make_contiguous_buffer(range); | 2092 | 732 | auto it = find_classic_space_narrow_fast(buf.view()); | 2093 | 732 | return ranges::next(range.begin(), | 2094 | 732 | ranges::distance(buf.view().begin(), it)); | 2095 | 732 | } | 2096 | 732 | else { | 2097 | 732 | auto it = range.begin(); | 2098 | | | 2099 | 732 | if constexpr (std::is_same_v<detail::char_t<Range>, char>) { | 2100 | 732 | auto seg = get_contiguous_beginning(range); | 2101 | 732 | if (auto seg_it = find_classic_space_narrow_fast(seg); | 2102 | 732 | seg_it != seg.end()) { | 2103 | 0 | return ranges::next(it, ranges::distance(seg.begin(), seg_it)); | 2104 | 0 | } | 2105 | 732 | ranges::advance(it, seg.size()); | 2106 | 732 | } | 2107 | | | 2108 | 732 | return read_until_code_point( | 2109 | 732 | ranges::subrange{it, range.end()}, | 2110 | 732 | [](char32_t cp) noexcept { return is_cp_space(cp); }); | 2111 | 732 | } | 2112 | 732 | } |
_ZN3scn2v34impl24read_until_classic_spaceINS0_6ranges6detail9subrange_8subrangeIPKcS8_EEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESC_ Line | Count | Source | 2087 | 2.71k | { | 2088 | 2.71k | if constexpr (ranges::contiguous_range<Range> && | 2089 | 2.71k | ranges::sized_range<Range> && | 2090 | 2.71k | std::is_same_v<detail::char_t<Range>, char>) { | 2091 | 2.71k | auto buf = make_contiguous_buffer(range); | 2092 | 2.71k | auto it = find_classic_space_narrow_fast(buf.view()); | 2093 | 2.71k | return ranges::next(range.begin(), | 2094 | 2.71k | ranges::distance(buf.view().begin(), it)); | 2095 | 2.71k | } | 2096 | 2.71k | else { | 2097 | 2.71k | auto it = range.begin(); | 2098 | | | 2099 | 2.71k | if constexpr (std::is_same_v<detail::char_t<Range>, char>) { | 2100 | 2.71k | auto seg = get_contiguous_beginning(range); | 2101 | 2.71k | if (auto seg_it = find_classic_space_narrow_fast(seg); | 2102 | 2.71k | seg_it != seg.end()) { | 2103 | 2.71k | return ranges::next(it, ranges::distance(seg.begin(), seg_it)); | 2104 | 2.71k | } | 2105 | 2.71k | ranges::advance(it, seg.size()); | 2106 | 2.71k | } | 2107 | | | 2108 | 2.71k | return read_until_code_point( | 2109 | 2.71k | ranges::subrange{it, range.end()}, | 2110 | 2.71k | [](char32_t cp) noexcept { return is_cp_space(cp); }); | 2111 | 2.71k | } | 2112 | 2.71k | } |
Unexecuted instantiation: _ZN3scn2v34impl24read_until_classic_spaceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS4_18default_sentinel_tEEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESH_ Unexecuted instantiation: _ZN3scn2v34impl24read_until_classic_spaceINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESF_ _ZN3scn2v34impl24read_until_classic_spaceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwS9_EEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESE_ Line | Count | Source | 2087 | 324 | { | 2088 | 324 | if constexpr (ranges::contiguous_range<Range> && | 2089 | 324 | ranges::sized_range<Range> && | 2090 | 324 | std::is_same_v<detail::char_t<Range>, char>) { | 2091 | 324 | auto buf = make_contiguous_buffer(range); | 2092 | 324 | auto it = find_classic_space_narrow_fast(buf.view()); | 2093 | 324 | return ranges::next(range.begin(), | 2094 | 324 | ranges::distance(buf.view().begin(), it)); | 2095 | 324 | } | 2096 | 324 | else { | 2097 | 324 | auto it = range.begin(); | 2098 | | | 2099 | 324 | if constexpr (std::is_same_v<detail::char_t<Range>, char>) { | 2100 | 324 | auto seg = get_contiguous_beginning(range); | 2101 | 324 | if (auto seg_it = find_classic_space_narrow_fast(seg); | 2102 | 324 | seg_it != seg.end()) { | 2103 | 324 | return ranges::next(it, ranges::distance(seg.begin(), seg_it)); | 2104 | 324 | } | 2105 | 324 | ranges::advance(it, seg.size()); | 2106 | 324 | } | 2107 | | | 2108 | 324 | return read_until_code_point( | 2109 | 324 | ranges::subrange{it, range.end()}, | 2110 | 324 | [](char32_t cp) noexcept { return is_cp_space(cp); }); | 2111 | 324 | } | 2112 | 324 | } |
_ZN3scn2v34impl24read_until_classic_spaceINS0_6ranges6detail9subrange_8subrangeIPKwS8_EEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESC_ Line | Count | Source | 2087 | 30.9k | { | 2088 | 30.9k | if constexpr (ranges::contiguous_range<Range> && | 2089 | 30.9k | ranges::sized_range<Range> && | 2090 | 30.9k | std::is_same_v<detail::char_t<Range>, char>) { | 2091 | 30.9k | auto buf = make_contiguous_buffer(range); | 2092 | 30.9k | auto it = find_classic_space_narrow_fast(buf.view()); | 2093 | 30.9k | return ranges::next(range.begin(), | 2094 | 30.9k | ranges::distance(buf.view().begin(), it)); | 2095 | 30.9k | } | 2096 | 30.9k | else { | 2097 | 30.9k | auto it = range.begin(); | 2098 | | | 2099 | 30.9k | if constexpr (std::is_same_v<detail::char_t<Range>, char>) { | 2100 | 30.9k | auto seg = get_contiguous_beginning(range); | 2101 | 30.9k | if (auto seg_it = find_classic_space_narrow_fast(seg); | 2102 | 30.9k | seg_it != seg.end()) { | 2103 | 30.9k | return ranges::next(it, ranges::distance(seg.begin(), seg_it)); | 2104 | 30.9k | } | 2105 | 30.9k | ranges::advance(it, seg.size()); | 2106 | 30.9k | } | 2107 | | | 2108 | 30.9k | return read_until_code_point( | 2109 | 30.9k | ranges::subrange{it, range.end()}, | 2110 | 30.9k | [](char32_t cp) noexcept { return is_cp_space(cp); }); | 2111 | 30.9k | } | 2112 | 30.9k | } |
Unexecuted instantiation: _ZN3scn2v34impl24read_until_classic_spaceINSt3__117basic_string_viewIcNS3_11char_traitsIcEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS3_9add_constIT_E4typeEEEEESA_ Unexecuted instantiation: _ZN3scn2v34impl24read_until_classic_spaceINSt3__117basic_string_viewIwNS3_11char_traitsIwEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS3_9add_constIT_E4typeEEEEESA_ |
2113 | | |
2114 | | template <typename Range> |
2115 | | auto read_while_classic_space(Range range) -> ranges::const_iterator_t<Range> |
2116 | 452k | { |
2117 | 452k | if constexpr (ranges::contiguous_range<Range> && |
2118 | 452k | ranges::sized_range<Range> && |
2119 | 452k | std::is_same_v<detail::char_t<Range>, char>) { |
2120 | 434k | auto buf = make_contiguous_buffer(range); |
2121 | 434k | auto it = find_classic_nonspace_narrow_fast(buf.view()); |
2122 | 434k | return ranges::next(range.begin(), |
2123 | 434k | ranges::distance(buf.view().begin(), it)); |
2124 | 434k | } |
2125 | 434k | else { |
2126 | 434k | auto it = range.begin(); |
2127 | | |
2128 | 434k | if constexpr (std::is_same_v<detail::char_t<Range>, char>) { |
2129 | 2.33k | auto seg = get_contiguous_beginning(range); |
2130 | 2.33k | if (auto seg_it = find_classic_nonspace_narrow_fast(seg); |
2131 | 2.33k | seg_it != seg.end()) { |
2132 | 0 | return ranges::next(it, ranges::distance(seg.begin(), seg_it)); |
2133 | 0 | } |
2134 | 2.33k | ranges::advance(it, seg.size()); |
2135 | 2.33k | } |
2136 | | |
2137 | 2.33k | return read_while_code_point( |
2138 | 523k | range, [](char32_t cp) noexcept { return is_cp_space(cp); });Unexecuted instantiation: _ZZN3scn2v34impl24read_while_classic_spaceINS1_15take_width_viewINS3_INS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS4_18default_sentinel_tEEEEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESI_ENKUlDiE_clEDi Unexecuted instantiation: _ZZN3scn2v34impl24read_while_classic_spaceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS4_18default_sentinel_tEEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESH_ENKUlDiE_clEDi Unexecuted instantiation: _ZZN3scn2v34impl24read_while_classic_spaceINS1_15take_width_viewINS3_INSt3__117basic_string_viewIcNS4_11char_traitsIcEEEEEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS4_9add_constIT_E4typeEEEEESD_ENKUlDiE_clEDi Unexecuted instantiation: _ZZN3scn2v34impl24read_while_classic_spaceINS1_15take_width_viewINSt3__117basic_string_viewIcNS4_11char_traitsIcEEEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS4_9add_constIT_E4typeEEEEESC_ENKUlDiE_clEDi _ZZN3scn2v34impl24read_while_classic_spaceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcS9_EEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESE_ENKUlDiE_clEDi Line | Count | Source | 2138 | 1.30k | range, [](char32_t cp) noexcept { return is_cp_space(cp); }); |
Unexecuted instantiation: _ZZN3scn2v34impl24read_while_classic_spaceINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESF_ENKUlDiE_clEDi Unexecuted instantiation: _ZZN3scn2v34impl24read_while_classic_spaceINS1_15take_width_viewINS3_INS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS4_18default_sentinel_tEEEEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESI_ENKUlDiE_clEDi Unexecuted instantiation: _ZZN3scn2v34impl24read_while_classic_spaceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS4_18default_sentinel_tEEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESH_ENKUlDiE_clEDi Unexecuted instantiation: _ZZN3scn2v34impl24read_while_classic_spaceINS1_15take_width_viewINS3_INSt3__117basic_string_viewIwNS4_11char_traitsIwEEEEEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS4_9add_constIT_E4typeEEEEESD_ENKUlDiE_clEDi Unexecuted instantiation: _ZZN3scn2v34impl24read_while_classic_spaceINS1_15take_width_viewINSt3__117basic_string_viewIwNS4_11char_traitsIwEEEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS4_9add_constIT_E4typeEEEEESC_ENKUlDiE_clEDi _ZZN3scn2v34impl24read_while_classic_spaceINSt3__117basic_string_viewIwNS3_11char_traitsIwEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS3_9add_constIT_E4typeEEEEESA_ENKUlDiE_clEDi Line | Count | Source | 2138 | 88.7k | range, [](char32_t cp) noexcept { return is_cp_space(cp); }); |
_ZZN3scn2v34impl24read_while_classic_spaceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwS9_EEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESE_ENKUlDiE_clEDi Line | Count | Source | 2138 | 86 | range, [](char32_t cp) noexcept { return is_cp_space(cp); }); |
_ZZN3scn2v34impl24read_while_classic_spaceINS0_6ranges6detail9subrange_8subrangeIPKwS8_EEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESC_ENKUlDiE_clEDi Line | Count | Source | 2138 | 429k | range, [](char32_t cp) noexcept { return is_cp_space(cp); }); |
Unexecuted instantiation: _ZZN3scn2v34impl24read_while_classic_spaceINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESF_ENKUlDiE_clEDi _ZZN3scn2v34impl24read_while_classic_spaceINS1_15take_width_viewINS3_INS0_6ranges6detail9subrange_8subrangeIPKcS9_EEEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESF_ENKUlDiE_clEDi Line | Count | Source | 2138 | 2.86k | range, [](char32_t cp) noexcept { return is_cp_space(cp); }); |
_ZZN3scn2v34impl24read_while_classic_spaceINS1_15take_width_viewINS3_INS0_6ranges6detail9subrange_8subrangeIPKwS9_EEEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESF_ENKUlDiE_clEDi Line | Count | Source | 2138 | 794 | range, [](char32_t cp) noexcept { return is_cp_space(cp); }); |
|
2139 | 434k | } |
2140 | 452k | } Unexecuted instantiation: _ZN3scn2v34impl24read_while_classic_spaceINS1_15take_width_viewINS3_INS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS4_18default_sentinel_tEEEEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESI_ Unexecuted instantiation: _ZN3scn2v34impl24read_while_classic_spaceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS4_18default_sentinel_tEEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESH_ Unexecuted instantiation: _ZN3scn2v34impl24read_while_classic_spaceINS1_15take_width_viewINS3_INSt3__117basic_string_viewIcNS4_11char_traitsIcEEEEEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS4_9add_constIT_E4typeEEEEESD_ Unexecuted instantiation: _ZN3scn2v34impl24read_while_classic_spaceINS1_15take_width_viewINSt3__117basic_string_viewIcNS4_11char_traitsIcEEEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS4_9add_constIT_E4typeEEEEESC_ _ZN3scn2v34impl24read_while_classic_spaceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcS9_EEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESE_ Line | Count | Source | 2116 | 460 | { | 2117 | 460 | if constexpr (ranges::contiguous_range<Range> && | 2118 | 460 | ranges::sized_range<Range> && | 2119 | 460 | std::is_same_v<detail::char_t<Range>, char>) { | 2120 | 460 | auto buf = make_contiguous_buffer(range); | 2121 | 460 | auto it = find_classic_nonspace_narrow_fast(buf.view()); | 2122 | 460 | return ranges::next(range.begin(), | 2123 | 460 | ranges::distance(buf.view().begin(), it)); | 2124 | 460 | } | 2125 | 460 | else { | 2126 | 460 | auto it = range.begin(); | 2127 | | | 2128 | 460 | if constexpr (std::is_same_v<detail::char_t<Range>, char>) { | 2129 | 460 | auto seg = get_contiguous_beginning(range); | 2130 | 460 | if (auto seg_it = find_classic_nonspace_narrow_fast(seg); | 2131 | 460 | seg_it != seg.end()) { | 2132 | 0 | return ranges::next(it, ranges::distance(seg.begin(), seg_it)); | 2133 | 0 | } | 2134 | 460 | ranges::advance(it, seg.size()); | 2135 | 460 | } | 2136 | | | 2137 | 460 | return read_while_code_point( | 2138 | 460 | range, [](char32_t cp) noexcept { return is_cp_space(cp); }); | 2139 | 460 | } | 2140 | 460 | } |
_ZN3scn2v34impl24read_while_classic_spaceINS0_6ranges6detail9subrange_8subrangeIPKcS8_EEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESC_ Line | Count | Source | 2116 | 12.4k | { | 2117 | 12.4k | if constexpr (ranges::contiguous_range<Range> && | 2118 | 12.4k | ranges::sized_range<Range> && | 2119 | 12.4k | std::is_same_v<detail::char_t<Range>, char>) { | 2120 | 12.4k | auto buf = make_contiguous_buffer(range); | 2121 | 12.4k | auto it = find_classic_nonspace_narrow_fast(buf.view()); | 2122 | 12.4k | return ranges::next(range.begin(), | 2123 | 12.4k | ranges::distance(buf.view().begin(), it)); | 2124 | 12.4k | } | 2125 | 12.4k | else { | 2126 | 12.4k | auto it = range.begin(); | 2127 | | | 2128 | 12.4k | if constexpr (std::is_same_v<detail::char_t<Range>, char>) { | 2129 | 12.4k | auto seg = get_contiguous_beginning(range); | 2130 | 12.4k | if (auto seg_it = find_classic_nonspace_narrow_fast(seg); | 2131 | 12.4k | seg_it != seg.end()) { | 2132 | 12.4k | return ranges::next(it, ranges::distance(seg.begin(), seg_it)); | 2133 | 12.4k | } | 2134 | 12.4k | ranges::advance(it, seg.size()); | 2135 | 12.4k | } | 2136 | | | 2137 | 12.4k | return read_while_code_point( | 2138 | 12.4k | range, [](char32_t cp) noexcept { return is_cp_space(cp); }); | 2139 | 12.4k | } | 2140 | 12.4k | } |
Unexecuted instantiation: _ZN3scn2v34impl24read_while_classic_spaceINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESF_ Unexecuted instantiation: _ZN3scn2v34impl24read_while_classic_spaceINS1_15take_width_viewINS3_INS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS4_18default_sentinel_tEEEEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESI_ Unexecuted instantiation: _ZN3scn2v34impl24read_while_classic_spaceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS4_18default_sentinel_tEEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESH_ Unexecuted instantiation: _ZN3scn2v34impl24read_while_classic_spaceINS1_15take_width_viewINS3_INSt3__117basic_string_viewIwNS4_11char_traitsIwEEEEEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS4_9add_constIT_E4typeEEEEESD_ Unexecuted instantiation: _ZN3scn2v34impl24read_while_classic_spaceINS1_15take_width_viewINSt3__117basic_string_viewIwNS4_11char_traitsIwEEEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS4_9add_constIT_E4typeEEEEESC_ _ZN3scn2v34impl24read_while_classic_spaceINSt3__117basic_string_viewIwNS3_11char_traitsIwEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS3_9add_constIT_E4typeEEEEESA_ Line | Count | Source | 2116 | 174k | { | 2117 | 174k | if constexpr (ranges::contiguous_range<Range> && | 2118 | 174k | ranges::sized_range<Range> && | 2119 | 174k | std::is_same_v<detail::char_t<Range>, char>) { | 2120 | 174k | auto buf = make_contiguous_buffer(range); | 2121 | 174k | auto it = find_classic_nonspace_narrow_fast(buf.view()); | 2122 | 174k | return ranges::next(range.begin(), | 2123 | 174k | ranges::distance(buf.view().begin(), it)); | 2124 | 174k | } | 2125 | 174k | else { | 2126 | 174k | auto it = range.begin(); | 2127 | | | 2128 | 174k | if constexpr (std::is_same_v<detail::char_t<Range>, char>) { | 2129 | 174k | auto seg = get_contiguous_beginning(range); | 2130 | 174k | if (auto seg_it = find_classic_nonspace_narrow_fast(seg); | 2131 | 174k | seg_it != seg.end()) { | 2132 | 174k | return ranges::next(it, ranges::distance(seg.begin(), seg_it)); | 2133 | 174k | } | 2134 | 174k | ranges::advance(it, seg.size()); | 2135 | 174k | } | 2136 | | | 2137 | 174k | return read_while_code_point( | 2138 | 174k | range, [](char32_t cp) noexcept { return is_cp_space(cp); }); | 2139 | 174k | } | 2140 | 174k | } |
_ZN3scn2v34impl24read_while_classic_spaceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwS9_EEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESE_ Line | Count | Source | 2116 | 86 | { | 2117 | 86 | if constexpr (ranges::contiguous_range<Range> && | 2118 | 86 | ranges::sized_range<Range> && | 2119 | 86 | std::is_same_v<detail::char_t<Range>, char>) { | 2120 | 86 | auto buf = make_contiguous_buffer(range); | 2121 | 86 | auto it = find_classic_nonspace_narrow_fast(buf.view()); | 2122 | 86 | return ranges::next(range.begin(), | 2123 | 86 | ranges::distance(buf.view().begin(), it)); | 2124 | 86 | } | 2125 | 86 | else { | 2126 | 86 | auto it = range.begin(); | 2127 | | | 2128 | 86 | if constexpr (std::is_same_v<detail::char_t<Range>, char>) { | 2129 | 86 | auto seg = get_contiguous_beginning(range); | 2130 | 86 | if (auto seg_it = find_classic_nonspace_narrow_fast(seg); | 2131 | 86 | seg_it != seg.end()) { | 2132 | 86 | return ranges::next(it, ranges::distance(seg.begin(), seg_it)); | 2133 | 86 | } | 2134 | 86 | ranges::advance(it, seg.size()); | 2135 | 86 | } | 2136 | | | 2137 | 86 | return read_while_code_point( | 2138 | 86 | range, [](char32_t cp) noexcept { return is_cp_space(cp); }); | 2139 | 86 | } | 2140 | 86 | } |
_ZN3scn2v34impl24read_while_classic_spaceINS0_6ranges6detail9subrange_8subrangeIPKwS8_EEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESC_ Line | Count | Source | 2116 | 256k | { | 2117 | 256k | if constexpr (ranges::contiguous_range<Range> && | 2118 | 256k | ranges::sized_range<Range> && | 2119 | 256k | std::is_same_v<detail::char_t<Range>, char>) { | 2120 | 256k | auto buf = make_contiguous_buffer(range); | 2121 | 256k | auto it = find_classic_nonspace_narrow_fast(buf.view()); | 2122 | 256k | return ranges::next(range.begin(), | 2123 | 256k | ranges::distance(buf.view().begin(), it)); | 2124 | 256k | } | 2125 | 256k | else { | 2126 | 256k | auto it = range.begin(); | 2127 | | | 2128 | 256k | if constexpr (std::is_same_v<detail::char_t<Range>, char>) { | 2129 | 256k | auto seg = get_contiguous_beginning(range); | 2130 | 256k | if (auto seg_it = find_classic_nonspace_narrow_fast(seg); | 2131 | 256k | seg_it != seg.end()) { | 2132 | 256k | return ranges::next(it, ranges::distance(seg.begin(), seg_it)); | 2133 | 256k | } | 2134 | 256k | ranges::advance(it, seg.size()); | 2135 | 256k | } | 2136 | | | 2137 | 256k | return read_while_code_point( | 2138 | 256k | range, [](char32_t cp) noexcept { return is_cp_space(cp); }); | 2139 | 256k | } | 2140 | 256k | } |
Unexecuted instantiation: _ZN3scn2v34impl24read_while_classic_spaceINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEEEEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESF_ _ZN3scn2v34impl24read_while_classic_spaceINSt3__117basic_string_viewIcNS3_11char_traitsIcEEEEEEDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS3_9add_constIT_E4typeEEEEESA_ Line | Count | Source | 2116 | 5.66k | { | 2117 | 5.66k | if constexpr (ranges::contiguous_range<Range> && | 2118 | 5.66k | ranges::sized_range<Range> && | 2119 | 5.66k | std::is_same_v<detail::char_t<Range>, char>) { | 2120 | 5.66k | auto buf = make_contiguous_buffer(range); | 2121 | 5.66k | auto it = find_classic_nonspace_narrow_fast(buf.view()); | 2122 | 5.66k | return ranges::next(range.begin(), | 2123 | 5.66k | ranges::distance(buf.view().begin(), it)); | 2124 | 5.66k | } | 2125 | 5.66k | else { | 2126 | 5.66k | auto it = range.begin(); | 2127 | | | 2128 | 5.66k | if constexpr (std::is_same_v<detail::char_t<Range>, char>) { | 2129 | 5.66k | auto seg = get_contiguous_beginning(range); | 2130 | 5.66k | if (auto seg_it = find_classic_nonspace_narrow_fast(seg); | 2131 | 5.66k | seg_it != seg.end()) { | 2132 | 5.66k | return ranges::next(it, ranges::distance(seg.begin(), seg_it)); | 2133 | 5.66k | } | 2134 | 5.66k | ranges::advance(it, seg.size()); | 2135 | 5.66k | } | 2136 | | | 2137 | 5.66k | return read_while_code_point( | 2138 | 5.66k | range, [](char32_t cp) noexcept { return is_cp_space(cp); }); | 2139 | 5.66k | } | 2140 | 5.66k | } |
_ZN3scn2v34impl24read_while_classic_spaceINS1_15take_width_viewINS3_INS0_6ranges6detail9subrange_8subrangeIPKcS9_EEEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESF_ Line | Count | Source | 2116 | 1.87k | { | 2117 | 1.87k | if constexpr (ranges::contiguous_range<Range> && | 2118 | 1.87k | ranges::sized_range<Range> && | 2119 | 1.87k | std::is_same_v<detail::char_t<Range>, char>) { | 2120 | 1.87k | auto buf = make_contiguous_buffer(range); | 2121 | 1.87k | auto it = find_classic_nonspace_narrow_fast(buf.view()); | 2122 | 1.87k | return ranges::next(range.begin(), | 2123 | 1.87k | ranges::distance(buf.view().begin(), it)); | 2124 | 1.87k | } | 2125 | 1.87k | else { | 2126 | 1.87k | auto it = range.begin(); | 2127 | | | 2128 | 1.87k | if constexpr (std::is_same_v<detail::char_t<Range>, char>) { | 2129 | 1.87k | auto seg = get_contiguous_beginning(range); | 2130 | 1.87k | if (auto seg_it = find_classic_nonspace_narrow_fast(seg); | 2131 | 1.87k | seg_it != seg.end()) { | 2132 | 0 | return ranges::next(it, ranges::distance(seg.begin(), seg_it)); | 2133 | 0 | } | 2134 | 1.87k | ranges::advance(it, seg.size()); | 2135 | 1.87k | } | 2136 | | | 2137 | 1.87k | return read_while_code_point( | 2138 | 1.87k | range, [](char32_t cp) noexcept { return is_cp_space(cp); }); | 2139 | 1.87k | } | 2140 | 1.87k | } |
_ZN3scn2v34impl24read_while_classic_spaceINS1_15take_width_viewINS3_INS0_6ranges6detail9subrange_8subrangeIPKwS9_EEEEEEEEDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESF_ Line | Count | Source | 2116 | 794 | { | 2117 | 794 | if constexpr (ranges::contiguous_range<Range> && | 2118 | 794 | ranges::sized_range<Range> && | 2119 | 794 | std::is_same_v<detail::char_t<Range>, char>) { | 2120 | 794 | auto buf = make_contiguous_buffer(range); | 2121 | 794 | auto it = find_classic_nonspace_narrow_fast(buf.view()); | 2122 | 794 | return ranges::next(range.begin(), | 2123 | 794 | ranges::distance(buf.view().begin(), it)); | 2124 | 794 | } | 2125 | 794 | else { | 2126 | 794 | auto it = range.begin(); | 2127 | | | 2128 | 794 | if constexpr (std::is_same_v<detail::char_t<Range>, char>) { | 2129 | 794 | auto seg = get_contiguous_beginning(range); | 2130 | 794 | if (auto seg_it = find_classic_nonspace_narrow_fast(seg); | 2131 | 794 | seg_it != seg.end()) { | 2132 | 794 | return ranges::next(it, ranges::distance(seg.begin(), seg_it)); | 2133 | 794 | } | 2134 | 794 | ranges::advance(it, seg.size()); | 2135 | 794 | } | 2136 | | | 2137 | 794 | return read_while_code_point( | 2138 | 794 | range, [](char32_t cp) noexcept { return is_cp_space(cp); }); | 2139 | 794 | } | 2140 | 794 | } |
|
2141 | | |
2142 | | template <typename Range> |
2143 | | auto read_matching_code_unit(Range range, detail::char_t<Range> ch) |
2144 | | -> parse_expected<ranges::const_iterator_t<Range>> |
2145 | 23.4k | { |
2146 | 23.4k | auto it = read_code_unit(range); |
2147 | 23.4k | if (SCN_UNLIKELY(!it)) { |
2148 | 0 | return unexpected(make_eof_parse_error(it.error())); |
2149 | 0 | } |
2150 | | |
2151 | 23.4k | if (SCN_UNLIKELY(*range.begin() != |
2152 | 23.4k | static_cast<detail::char_t<Range>>(ch))) { |
2153 | 23.4k | return unexpected(parse_error::error); |
2154 | 23.4k | } |
2155 | | |
2156 | 0 | return *it; |
2157 | 23.4k | } Unexecuted instantiation: _ZN3scn2v34impl23read_matching_code_unitINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEENS1_15take_width_viewINS6_ISC_SD_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_NDTcl4implISO_EEE4typeE Unexecuted instantiation: _ZN3scn2v34impl23read_matching_code_unitINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_NDTcl4implISG_EEE4typeE _ZN3scn2v34impl23read_matching_code_unitINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSA_EENS1_15take_width_viewINS6_ISA_SA_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_NDTcl4implISL_EEE4typeE Line | Count | Source | 2145 | 34 | { | 2146 | 34 | auto it = read_code_unit(range); | 2147 | 34 | if (SCN_UNLIKELY(!it)) { | 2148 | 0 | return unexpected(make_eof_parse_error(it.error())); | 2149 | 0 | } | 2150 | | | 2151 | 34 | if (SCN_UNLIKELY(*range.begin() != | 2152 | 34 | static_cast<detail::char_t<Range>>(ch))) { | 2153 | 34 | return unexpected(parse_error::error); | 2154 | 34 | } | 2155 | | | 2156 | 0 | return *it; | 2157 | 34 | } |
_ZN3scn2v34impl23read_matching_code_unitINS0_6ranges6detail9subrange_8subrangeIPKcS8_EEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESD_NDTcl4implISD_EEE4typeE Line | Count | Source | 2145 | 1.79k | { | 2146 | 1.79k | auto it = read_code_unit(range); | 2147 | 1.79k | if (SCN_UNLIKELY(!it)) { | 2148 | 0 | return unexpected(make_eof_parse_error(it.error())); | 2149 | 0 | } | 2150 | | | 2151 | 1.79k | if (SCN_UNLIKELY(*range.begin() != | 2152 | 1.79k | static_cast<detail::char_t<Range>>(ch))) { | 2153 | 1.79k | return unexpected(parse_error::error); | 2154 | 1.79k | } | 2155 | | | 2156 | 0 | return *it; | 2157 | 1.79k | } |
Unexecuted instantiation: _ZN3scn2v34impl23read_matching_code_unitINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEENS1_15take_width_viewINS6_ISC_SD_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_NDTcl4implISO_EEE4typeE Unexecuted instantiation: _ZN3scn2v34impl23read_matching_code_unitINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_NDTcl4implISG_EEE4typeE _ZN3scn2v34impl23read_matching_code_unitINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSA_EENS1_15take_width_viewINS6_ISA_SA_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_NDTcl4implISL_EEE4typeE Line | Count | Source | 2145 | 34 | { | 2146 | 34 | auto it = read_code_unit(range); | 2147 | 34 | if (SCN_UNLIKELY(!it)) { | 2148 | 0 | return unexpected(make_eof_parse_error(it.error())); | 2149 | 0 | } | 2150 | | | 2151 | 34 | if (SCN_UNLIKELY(*range.begin() != | 2152 | 34 | static_cast<detail::char_t<Range>>(ch))) { | 2153 | 34 | return unexpected(parse_error::error); | 2154 | 34 | } | 2155 | | | 2156 | 0 | return *it; | 2157 | 34 | } |
_ZN3scn2v34impl23read_matching_code_unitINS0_6ranges6detail9subrange_8subrangeIPKwS8_EEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESD_NDTcl4implISD_EEE4typeE Line | Count | Source | 2145 | 20.7k | { | 2146 | 20.7k | auto it = read_code_unit(range); | 2147 | 20.7k | if (SCN_UNLIKELY(!it)) { | 2148 | 0 | return unexpected(make_eof_parse_error(it.error())); | 2149 | 0 | } | 2150 | | | 2151 | 20.7k | if (SCN_UNLIKELY(*range.begin() != | 2152 | 20.7k | static_cast<detail::char_t<Range>>(ch))) { | 2153 | 20.7k | return unexpected(parse_error::error); | 2154 | 20.7k | } | 2155 | | | 2156 | 0 | return *it; | 2157 | 20.7k | } |
_ZN3scn2v34impl23read_matching_code_unitINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcS9_EEEEEENS1_14parse_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_NDTcl4implISF_EEE4typeE Line | Count | Source | 2145 | 544 | { | 2146 | 544 | auto it = read_code_unit(range); | 2147 | 544 | if (SCN_UNLIKELY(!it)) { | 2148 | 0 | return unexpected(make_eof_parse_error(it.error())); | 2149 | 0 | } | 2150 | | | 2151 | 544 | if (SCN_UNLIKELY(*range.begin() != | 2152 | 544 | static_cast<detail::char_t<Range>>(ch))) { | 2153 | 544 | return unexpected(parse_error::error); | 2154 | 544 | } | 2155 | | | 2156 | 0 | return *it; | 2157 | 544 | } |
Unexecuted instantiation: _ZN3scn2v34impl23read_matching_code_unitINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS4_18default_sentinel_tEEEEEEENS1_14parse_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_NDTcl4implISI_EEE4typeE _ZN3scn2v34impl23read_matching_code_unitINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwS9_EEEEEENS1_14parse_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_NDTcl4implISF_EEE4typeE Line | Count | Source | 2145 | 260 | { | 2146 | 260 | auto it = read_code_unit(range); | 2147 | 260 | if (SCN_UNLIKELY(!it)) { | 2148 | 0 | return unexpected(make_eof_parse_error(it.error())); | 2149 | 0 | } | 2150 | | | 2151 | 260 | if (SCN_UNLIKELY(*range.begin() != | 2152 | 260 | static_cast<detail::char_t<Range>>(ch))) { | 2153 | 260 | return unexpected(parse_error::error); | 2154 | 260 | } | 2155 | | | 2156 | 0 | return *it; | 2157 | 260 | } |
Unexecuted instantiation: _ZN3scn2v34impl23read_matching_code_unitINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS4_18default_sentinel_tEEEEEEENS1_14parse_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_NDTcl4implISI_EEE4typeE |
2158 | | |
2159 | | template <typename Range> |
2160 | | auto read_matching_code_point(Range range, char32_t cp) |
2161 | | -> parse_expected<ranges::const_iterator_t<Range>> |
2162 | | { |
2163 | | auto val = read_code_point_into(range); |
2164 | | if (!val.is_valid()) { |
2165 | | return unexpected(parse_error::error); |
2166 | | } |
2167 | | auto decoded_cp = decode_code_point_exhaustive(val.codepoint); |
2168 | | if (SCN_UNLIKELY(cp != decoded_cp)) { |
2169 | | return unexpected(parse_error::error); |
2170 | | } |
2171 | | return val.iterator; |
2172 | | } |
2173 | | |
2174 | | template <typename Range> |
2175 | | auto read_matching_string(Range range, |
2176 | | std::basic_string_view<detail::char_t<Range>> str) |
2177 | | -> parse_expected<ranges::const_iterator_t<Range>> |
2178 | 64 | { |
2179 | 64 | SCN_TRY(it, read_exactly_n_code_units( |
2180 | 44 | range, static_cast<std::ptrdiff_t>(str.size())) |
2181 | 44 | .transform_error(make_eof_parse_error)); |
2182 | | |
2183 | 44 | auto sv = make_contiguous_buffer(ranges::subrange{range.begin(), it}); |
2184 | 44 | if (SCN_UNLIKELY(sv.view() != str)) { |
2185 | 44 | return unexpected(parse_error::error); |
2186 | 44 | } |
2187 | 0 | return it; |
2188 | 44 | } _ZN3scn2v34impl20read_matching_stringINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcS9_EEEEEENS1_14parse_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_NSD_17basic_string_viewINDTcl4implISF_EEE4typeENSD_11char_traitsISN_EEEE Line | Count | Source | 2178 | 20 | { | 2179 | 20 | SCN_TRY(it, read_exactly_n_code_units( | 2180 | 10 | range, static_cast<std::ptrdiff_t>(str.size())) | 2181 | 10 | .transform_error(make_eof_parse_error)); | 2182 | | | 2183 | 10 | auto sv = make_contiguous_buffer(ranges::subrange{range.begin(), it}); | 2184 | 10 | if (SCN_UNLIKELY(sv.view() != str)) { | 2185 | 10 | return unexpected(parse_error::error); | 2186 | 10 | } | 2187 | 0 | return it; | 2188 | 10 | } |
_ZN3scn2v34impl20read_matching_stringINS0_6ranges6detail9subrange_8subrangeIPKcS8_EEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESD_NSB_17basic_string_viewINDTcl4implISD_EEE4typeENSB_11char_traitsISL_EEEE Line | Count | Source | 2178 | 20 | { | 2179 | 20 | SCN_TRY(it, read_exactly_n_code_units( | 2180 | 18 | range, static_cast<std::ptrdiff_t>(str.size())) | 2181 | 18 | .transform_error(make_eof_parse_error)); | 2182 | | | 2183 | 18 | auto sv = make_contiguous_buffer(ranges::subrange{range.begin(), it}); | 2184 | 18 | if (SCN_UNLIKELY(sv.view() != str)) { | 2185 | 18 | return unexpected(parse_error::error); | 2186 | 18 | } | 2187 | 0 | return it; | 2188 | 18 | } |
Unexecuted instantiation: _ZN3scn2v34impl20read_matching_stringINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS4_18default_sentinel_tEEEEEEENS1_14parse_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_NSG_17basic_string_viewINDTcl4implISI_EEE4typeENSG_11char_traitsISQ_EEEE Unexecuted instantiation: _ZN3scn2v34impl20read_matching_stringINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_NSE_17basic_string_viewINDTcl4implISG_EEE4typeENSE_11char_traitsISO_EEEE _ZN3scn2v34impl20read_matching_stringINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwS9_EEEEEENS1_14parse_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_NSD_17basic_string_viewINDTcl4implISF_EEE4typeENSD_11char_traitsISN_EEEE Line | Count | Source | 2178 | 12 | { | 2179 | 12 | SCN_TRY(it, read_exactly_n_code_units( | 2180 | 6 | range, static_cast<std::ptrdiff_t>(str.size())) | 2181 | 6 | .transform_error(make_eof_parse_error)); | 2182 | | | 2183 | 6 | auto sv = make_contiguous_buffer(ranges::subrange{range.begin(), it}); | 2184 | 6 | if (SCN_UNLIKELY(sv.view() != str)) { | 2185 | 6 | return unexpected(parse_error::error); | 2186 | 6 | } | 2187 | 0 | return it; | 2188 | 6 | } |
_ZN3scn2v34impl20read_matching_stringINS0_6ranges6detail9subrange_8subrangeIPKwS8_EEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESD_NSB_17basic_string_viewINDTcl4implISD_EEE4typeENSB_11char_traitsISL_EEEE Line | Count | Source | 2178 | 12 | { | 2179 | 12 | SCN_TRY(it, read_exactly_n_code_units( | 2180 | 10 | range, static_cast<std::ptrdiff_t>(str.size())) | 2181 | 10 | .transform_error(make_eof_parse_error)); | 2182 | | | 2183 | 10 | auto sv = make_contiguous_buffer(ranges::subrange{range.begin(), it}); | 2184 | 10 | if (SCN_UNLIKELY(sv.view() != str)) { | 2185 | 10 | return unexpected(parse_error::error); | 2186 | 10 | } | 2187 | 0 | return it; | 2188 | 10 | } |
Unexecuted instantiation: _ZN3scn2v34impl20read_matching_stringINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS4_18default_sentinel_tEEEEEEENS1_14parse_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_NSG_17basic_string_viewINDTcl4implISI_EEE4typeENSG_11char_traitsISQ_EEEE Unexecuted instantiation: _ZN3scn2v34impl20read_matching_stringINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_NSE_17basic_string_viewINDTcl4implISG_EEE4typeENSE_11char_traitsISO_EEEE |
2189 | | |
2190 | | template <typename Range> |
2191 | | auto read_matching_string_classic(Range range, std::string_view str) |
2192 | | -> parse_expected<ranges::const_iterator_t<Range>> |
2193 | 23.4k | { |
2194 | 23.4k | SCN_TRY(it, read_exactly_n_code_units( |
2195 | 23.0k | range, static_cast<std::ptrdiff_t>(str.size())) |
2196 | 23.0k | .transform_error(make_eof_parse_error)); |
2197 | | |
2198 | 23.0k | if constexpr (std::is_same_v<detail::char_t<Range>, char>) { |
2199 | 20.7k | auto sv = make_contiguous_buffer(ranges::subrange{range.begin(), it}); |
2200 | 20.7k | if (SCN_UNLIKELY(sv.view() != str)) { |
2201 | 2.27k | return unexpected(parse_error::error); |
2202 | 2.27k | } |
2203 | 0 | return it; |
2204 | 2.27k | } |
2205 | 20.7k | else { |
2206 | 20.7k | auto range_it = range.begin(); |
2207 | 20.7k | for (size_t i = 0; i < str.size(); ++i, (void)++range_it) { |
2208 | 20.7k | if (SCN_UNLIKELY(*range_it != |
2209 | 20.7k | static_cast<detail::char_t<Range>>(str[i]))) { |
2210 | 20.7k | return unexpected(parse_error::error); |
2211 | 20.7k | } |
2212 | 20.7k | } |
2213 | 0 | return it; |
2214 | 20.7k | } |
2215 | 23.0k | } _ZN3scn2v34impl28read_matching_string_classicINS0_6ranges6detail9subrange_8subrangeIPKcS8_EEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESD_NSB_17basic_string_viewIcNSB_11char_traitsIcEEEE Line | Count | Source | 2193 | 1.90k | { | 2194 | 1.90k | SCN_TRY(it, read_exactly_n_code_units( | 2195 | 1.79k | range, static_cast<std::ptrdiff_t>(str.size())) | 2196 | 1.79k | .transform_error(make_eof_parse_error)); | 2197 | | | 2198 | 1.79k | if constexpr (std::is_same_v<detail::char_t<Range>, char>) { | 2199 | 1.79k | auto sv = make_contiguous_buffer(ranges::subrange{range.begin(), it}); | 2200 | 1.79k | if (SCN_UNLIKELY(sv.view() != str)) { | 2201 | 1.79k | return unexpected(parse_error::error); | 2202 | 1.79k | } | 2203 | 0 | return it; | 2204 | 1.79k | } | 2205 | 1.79k | else { | 2206 | 1.79k | auto range_it = range.begin(); | 2207 | 1.79k | for (size_t i = 0; i < str.size(); ++i, (void)++range_it) { | 2208 | 1.79k | if (SCN_UNLIKELY(*range_it != | 2209 | 1.79k | static_cast<detail::char_t<Range>>(str[i]))) { | 2210 | 1.79k | return unexpected(parse_error::error); | 2211 | 1.79k | } | 2212 | 1.79k | } | 2213 | 1.79k | return it; | 2214 | 1.79k | } | 2215 | 1.79k | } |
Unexecuted instantiation: _ZN3scn2v34impl28read_matching_string_classicINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_NSE_17basic_string_viewIcNSE_11char_traitsIcEEEE _ZN3scn2v34impl28read_matching_string_classicINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcS9_EEEEEENS1_14parse_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_NSD_17basic_string_viewIcNSD_11char_traitsIcEEEE Line | Count | Source | 2193 | 588 | { | 2194 | 588 | SCN_TRY(it, read_exactly_n_code_units( | 2195 | 472 | range, static_cast<std::ptrdiff_t>(str.size())) | 2196 | 472 | .transform_error(make_eof_parse_error)); | 2197 | | | 2198 | 472 | if constexpr (std::is_same_v<detail::char_t<Range>, char>) { | 2199 | 472 | auto sv = make_contiguous_buffer(ranges::subrange{range.begin(), it}); | 2200 | 472 | if (SCN_UNLIKELY(sv.view() != str)) { | 2201 | 472 | return unexpected(parse_error::error); | 2202 | 472 | } | 2203 | 0 | return it; | 2204 | 472 | } | 2205 | 472 | else { | 2206 | 472 | auto range_it = range.begin(); | 2207 | 472 | for (size_t i = 0; i < str.size(); ++i, (void)++range_it) { | 2208 | 472 | if (SCN_UNLIKELY(*range_it != | 2209 | 472 | static_cast<detail::char_t<Range>>(str[i]))) { | 2210 | 472 | return unexpected(parse_error::error); | 2211 | 472 | } | 2212 | 472 | } | 2213 | 472 | return it; | 2214 | 472 | } | 2215 | 472 | } |
Unexecuted instantiation: _ZN3scn2v34impl28read_matching_string_classicINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS4_18default_sentinel_tEEEEEEENS1_14parse_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_NSG_17basic_string_viewIcNSG_11char_traitsIcEEEE _ZN3scn2v34impl28read_matching_string_classicINS0_6ranges6detail9subrange_8subrangeIPKwS8_EEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESD_NSB_17basic_string_viewIcNSB_11char_traitsIcEEEE Line | Count | Source | 2193 | 20.7k | { | 2194 | 20.7k | SCN_TRY(it, read_exactly_n_code_units( | 2195 | 20.5k | range, static_cast<std::ptrdiff_t>(str.size())) | 2196 | 20.5k | .transform_error(make_eof_parse_error)); | 2197 | | | 2198 | 20.5k | if constexpr (std::is_same_v<detail::char_t<Range>, char>) { | 2199 | 20.5k | auto sv = make_contiguous_buffer(ranges::subrange{range.begin(), it}); | 2200 | 20.5k | if (SCN_UNLIKELY(sv.view() != str)) { | 2201 | 20.5k | return unexpected(parse_error::error); | 2202 | 20.5k | } | 2203 | 20.5k | return it; | 2204 | 20.5k | } | 2205 | 20.5k | else { | 2206 | 20.5k | auto range_it = range.begin(); | 2207 | 20.5k | for (size_t i = 0; i < str.size(); ++i, (void)++range_it) { | 2208 | 20.5k | if (SCN_UNLIKELY(*range_it != | 2209 | 20.5k | static_cast<detail::char_t<Range>>(str[i]))) { | 2210 | 20.5k | return unexpected(parse_error::error); | 2211 | 20.5k | } | 2212 | 20.5k | } | 2213 | 0 | return it; | 2214 | 20.5k | } | 2215 | 20.5k | } |
_ZN3scn2v34impl28read_matching_string_classicINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwS9_EEEEEENS1_14parse_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_NSD_17basic_string_viewIcNSD_11char_traitsIcEEEE Line | Count | Source | 2193 | 256 | { | 2194 | 256 | SCN_TRY(it, read_exactly_n_code_units( | 2195 | 208 | range, static_cast<std::ptrdiff_t>(str.size())) | 2196 | 208 | .transform_error(make_eof_parse_error)); | 2197 | | | 2198 | 208 | if constexpr (std::is_same_v<detail::char_t<Range>, char>) { | 2199 | 208 | auto sv = make_contiguous_buffer(ranges::subrange{range.begin(), it}); | 2200 | 208 | if (SCN_UNLIKELY(sv.view() != str)) { | 2201 | 208 | return unexpected(parse_error::error); | 2202 | 208 | } | 2203 | 208 | return it; | 2204 | 208 | } | 2205 | 208 | else { | 2206 | 208 | auto range_it = range.begin(); | 2207 | 208 | for (size_t i = 0; i < str.size(); ++i, (void)++range_it) { | 2208 | 208 | if (SCN_UNLIKELY(*range_it != | 2209 | 208 | static_cast<detail::char_t<Range>>(str[i]))) { | 2210 | 208 | return unexpected(parse_error::error); | 2211 | 208 | } | 2212 | 208 | } | 2213 | 0 | return it; | 2214 | 208 | } | 2215 | 208 | } |
Unexecuted instantiation: _ZN3scn2v34impl28read_matching_string_classicINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_NSE_17basic_string_viewIcNSE_11char_traitsIcEEEE Unexecuted instantiation: _ZN3scn2v34impl28read_matching_string_classicINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS4_18default_sentinel_tEEEEEEENS1_14parse_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_NSG_17basic_string_viewIcNSG_11char_traitsIcEEEE |
2216 | | |
2217 | | // Ripped from fast_float |
2218 | | constexpr bool fast_streq_nocase(const char* a, const char* b, size_t len) |
2219 | 3.54k | { |
2220 | 3.54k | unsigned char running_diff{0}; |
2221 | 12.3k | for (size_t i = 0; i < len; ++i) { |
2222 | 8.85k | running_diff |= static_cast<unsigned char>(a[i] ^ b[i]); |
2223 | 8.85k | } |
2224 | 3.54k | return running_diff == 0 || running_diff == 32; |
2225 | 3.54k | } |
2226 | | |
2227 | | template <typename Range> |
2228 | | auto read_matching_string_classic_nocase(Range range, std::string_view str) |
2229 | | -> parse_expected<ranges::const_iterator_t<Range>> |
2230 | 46.6k | { |
2231 | 46.6k | using char_type = detail::char_t<Range>; |
2232 | | |
2233 | 46.6k | if constexpr (ranges::contiguous_range<Range> && |
2234 | 46.6k | std::is_same_v<char_type, char>) { |
2235 | 43.1k | if (range.size() < str.size()) { |
2236 | 8 | return unexpected(make_eof_parse_error(eof_error::eof)); |
2237 | 8 | } |
2238 | 3.54k | if (!fast_streq_nocase(range.data(), str.data(), str.size())) { |
2239 | 3.54k | return unexpected(parse_error::error); |
2240 | 3.54k | } |
2241 | 0 | return ranges::next(range.begin(), str.size()); |
2242 | 3.54k | } |
2243 | 43.1k | else { |
2244 | 43.1k | auto ascii_tolower = [](char_type ch) -> char_type { |
2245 | 42.8k | if (ch < 'A' || ch > 'Z') { |
2246 | 42.8k | return ch; |
2247 | 42.8k | } |
2248 | 0 | return static_cast<char_type>(ch + |
2249 | 0 | static_cast<char_type>('a' - 'A')); |
2250 | 42.8k | }; Unexecuted instantiation: _ZZN3scn2v34impl35read_matching_string_classic_nocaseINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEENS1_15take_width_viewINS6_ISC_SD_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_NSM_17basic_string_viewIcNSM_11char_traitsIcEEEEENKUlcE_clEc Unexecuted instantiation: _ZZN3scn2v34impl35read_matching_string_classic_nocaseINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_NSE_17basic_string_viewIcNSE_11char_traitsIcEEEEENKUlcE_clEc _ZZN3scn2v34impl35read_matching_string_classic_nocaseINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSA_EENS1_15take_width_viewINS6_ISA_SA_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_NSJ_17basic_string_viewIcNSJ_11char_traitsIcEEEEENKUlcE_clEc Line | Count | Source | 2244 | 956 | auto ascii_tolower = [](char_type ch) -> char_type { | 2245 | 956 | if (ch < 'A' || ch > 'Z') { | 2246 | 956 | return ch; | 2247 | 956 | } | 2248 | 0 | return static_cast<char_type>(ch + | 2249 | 0 | static_cast<char_type>('a' - 'A')); | 2250 | 956 | }; |
Unexecuted instantiation: _ZZN3scn2v34impl35read_matching_string_classic_nocaseINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEENS1_15take_width_viewINS6_ISC_SD_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_NSM_17basic_string_viewIcNSM_11char_traitsIcEEEEENKUlwE_clEw Unexecuted instantiation: _ZZN3scn2v34impl35read_matching_string_classic_nocaseINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_NSE_17basic_string_viewIcNSE_11char_traitsIcEEEEENKUlwE_clEw _ZZN3scn2v34impl35read_matching_string_classic_nocaseINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSA_EENS1_15take_width_viewINS6_ISA_SA_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_NSJ_17basic_string_viewIcNSJ_11char_traitsIcEEEEENKUlwE_clEw Line | Count | Source | 2244 | 480 | auto ascii_tolower = [](char_type ch) -> char_type { | 2245 | 480 | if (ch < 'A' || ch > 'Z') { | 2246 | 480 | return ch; | 2247 | 480 | } | 2248 | 0 | return static_cast<char_type>(ch + | 2249 | 0 | static_cast<char_type>('a' - 'A')); | 2250 | 480 | }; |
_ZZN3scn2v34impl35read_matching_string_classic_nocaseINS0_6ranges6detail9subrange_8subrangeIPKwS8_EEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESD_NSB_17basic_string_viewIcNSB_11char_traitsIcEEEEENKUlwE_clEw Line | Count | Source | 2244 | 41.4k | auto ascii_tolower = [](char_type ch) -> char_type { | 2245 | 41.4k | if (ch < 'A' || ch > 'Z') { | 2246 | 41.4k | return ch; | 2247 | 41.4k | } | 2248 | 0 | return static_cast<char_type>(ch + | 2249 | 0 | static_cast<char_type>('a' - 'A')); | 2250 | 41.4k | }; |
|
2251 | | |
2252 | 43.1k | SCN_TRY(it, read_exactly_n_code_units( |
2253 | 42.8k | range, static_cast<std::ptrdiff_t>(str.size())) |
2254 | 42.8k | .transform_error(make_eof_parse_error)); |
2255 | | |
2256 | 42.8k | if (SCN_UNLIKELY(!std::equal( |
2257 | 42.8k | range.begin(), it, str.begin(), [&](auto a, auto b) { |
2258 | 42.8k | return ascii_tolower(a) == |
2259 | 42.8k | static_cast<detail::char_t<Range>>(b); |
2260 | 42.8k | }))) { |
2261 | 42.8k | return unexpected(parse_error::error); |
2262 | 42.8k | } |
2263 | | |
2264 | 0 | return it; |
2265 | 42.8k | } |
2266 | 46.6k | } Unexecuted instantiation: _ZN3scn2v34impl35read_matching_string_classic_nocaseINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEENS1_15take_width_viewINS6_ISC_SD_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_NSM_17basic_string_viewIcNSM_11char_traitsIcEEEE Unexecuted instantiation: _ZN3scn2v34impl35read_matching_string_classic_nocaseINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_NSE_17basic_string_viewIcNSE_11char_traitsIcEEEE _ZN3scn2v34impl35read_matching_string_classic_nocaseINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSA_EENS1_15take_width_viewINS6_ISA_SA_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_NSJ_17basic_string_viewIcNSJ_11char_traitsIcEEEE Line | Count | Source | 2230 | 1.13k | { | 2231 | 1.13k | using char_type = detail::char_t<Range>; | 2232 | | | 2233 | 1.13k | if constexpr (ranges::contiguous_range<Range> && | 2234 | 1.13k | std::is_same_v<char_type, char>) { | 2235 | 1.13k | if (range.size() < str.size()) { | 2236 | 1.13k | return unexpected(make_eof_parse_error(eof_error::eof)); | 2237 | 1.13k | } | 2238 | 1.13k | if (!fast_streq_nocase(range.data(), str.data(), str.size())) { | 2239 | 1.13k | return unexpected(parse_error::error); | 2240 | 1.13k | } | 2241 | 1.13k | return ranges::next(range.begin(), str.size()); | 2242 | 1.13k | } | 2243 | 1.13k | else { | 2244 | 1.13k | auto ascii_tolower = [](char_type ch) -> char_type { | 2245 | 1.13k | if (ch < 'A' || ch > 'Z') { | 2246 | 1.13k | return ch; | 2247 | 1.13k | } | 2248 | 1.13k | return static_cast<char_type>(ch + | 2249 | 1.13k | static_cast<char_type>('a' - 'A')); | 2250 | 1.13k | }; | 2251 | | | 2252 | 1.13k | SCN_TRY(it, read_exactly_n_code_units( | 2253 | 956 | range, static_cast<std::ptrdiff_t>(str.size())) | 2254 | 956 | .transform_error(make_eof_parse_error)); | 2255 | | | 2256 | 956 | if (SCN_UNLIKELY(!std::equal( | 2257 | 956 | range.begin(), it, str.begin(), [&](auto a, auto b) { | 2258 | 956 | return ascii_tolower(a) == | 2259 | 956 | static_cast<detail::char_t<Range>>(b); | 2260 | 956 | }))) { | 2261 | 956 | return unexpected(parse_error::error); | 2262 | 956 | } | 2263 | | | 2264 | 0 | return it; | 2265 | 956 | } | 2266 | 1.13k | } |
_ZN3scn2v34impl35read_matching_string_classic_nocaseINS0_6ranges6detail9subrange_8subrangeIPKcS8_EEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESD_NSB_17basic_string_viewIcNSB_11char_traitsIcEEEE Line | Count | Source | 2230 | 3.55k | { | 2231 | 3.55k | using char_type = detail::char_t<Range>; | 2232 | | | 2233 | 3.55k | if constexpr (ranges::contiguous_range<Range> && | 2234 | 3.55k | std::is_same_v<char_type, char>) { | 2235 | 3.55k | if (range.size() < str.size()) { | 2236 | 8 | return unexpected(make_eof_parse_error(eof_error::eof)); | 2237 | 8 | } | 2238 | 3.54k | if (!fast_streq_nocase(range.data(), str.data(), str.size())) { | 2239 | 3.54k | return unexpected(parse_error::error); | 2240 | 3.54k | } | 2241 | 0 | return ranges::next(range.begin(), str.size()); | 2242 | 3.54k | } | 2243 | 3.55k | else { | 2244 | 3.55k | auto ascii_tolower = [](char_type ch) -> char_type { | 2245 | 3.55k | if (ch < 'A' || ch > 'Z') { | 2246 | 3.55k | return ch; | 2247 | 3.55k | } | 2248 | 3.55k | return static_cast<char_type>(ch + | 2249 | 3.55k | static_cast<char_type>('a' - 'A')); | 2250 | 3.55k | }; | 2251 | | | 2252 | 3.55k | SCN_TRY(it, read_exactly_n_code_units( | 2253 | 3.55k | range, static_cast<std::ptrdiff_t>(str.size())) | 2254 | 3.55k | .transform_error(make_eof_parse_error)); | 2255 | | | 2256 | 3.55k | if (SCN_UNLIKELY(!std::equal( | 2257 | 3.55k | range.begin(), it, str.begin(), [&](auto a, auto b) { | 2258 | 3.55k | return ascii_tolower(a) == | 2259 | 3.55k | static_cast<detail::char_t<Range>>(b); | 2260 | 3.55k | }))) { | 2261 | 3.55k | return unexpected(parse_error::error); | 2262 | 3.55k | } | 2263 | | | 2264 | 3.55k | return it; | 2265 | 3.55k | } | 2266 | 3.55k | } |
Unexecuted instantiation: _ZN3scn2v34impl35read_matching_string_classic_nocaseINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEENS1_15take_width_viewINS6_ISC_SD_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_NSM_17basic_string_viewIcNSM_11char_traitsIcEEEE Unexecuted instantiation: _ZN3scn2v34impl35read_matching_string_classic_nocaseINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_NSE_17basic_string_viewIcNSE_11char_traitsIcEEEE _ZN3scn2v34impl35read_matching_string_classic_nocaseINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSA_EENS1_15take_width_viewINS6_ISA_SA_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_NSJ_17basic_string_viewIcNSJ_11char_traitsIcEEEE Line | Count | Source | 2230 | 554 | { | 2231 | 554 | using char_type = detail::char_t<Range>; | 2232 | | | 2233 | 554 | if constexpr (ranges::contiguous_range<Range> && | 2234 | 554 | std::is_same_v<char_type, char>) { | 2235 | 554 | if (range.size() < str.size()) { | 2236 | 554 | return unexpected(make_eof_parse_error(eof_error::eof)); | 2237 | 554 | } | 2238 | 554 | if (!fast_streq_nocase(range.data(), str.data(), str.size())) { | 2239 | 554 | return unexpected(parse_error::error); | 2240 | 554 | } | 2241 | 554 | return ranges::next(range.begin(), str.size()); | 2242 | 554 | } | 2243 | 554 | else { | 2244 | 554 | auto ascii_tolower = [](char_type ch) -> char_type { | 2245 | 554 | if (ch < 'A' || ch > 'Z') { | 2246 | 554 | return ch; | 2247 | 554 | } | 2248 | 554 | return static_cast<char_type>(ch + | 2249 | 554 | static_cast<char_type>('a' - 'A')); | 2250 | 554 | }; | 2251 | | | 2252 | 554 | SCN_TRY(it, read_exactly_n_code_units( | 2253 | 480 | range, static_cast<std::ptrdiff_t>(str.size())) | 2254 | 480 | .transform_error(make_eof_parse_error)); | 2255 | | | 2256 | 480 | if (SCN_UNLIKELY(!std::equal( | 2257 | 480 | range.begin(), it, str.begin(), [&](auto a, auto b) { | 2258 | 480 | return ascii_tolower(a) == | 2259 | 480 | static_cast<detail::char_t<Range>>(b); | 2260 | 480 | }))) { | 2261 | 480 | return unexpected(parse_error::error); | 2262 | 480 | } | 2263 | | | 2264 | 0 | return it; | 2265 | 480 | } | 2266 | 554 | } |
_ZN3scn2v34impl35read_matching_string_classic_nocaseINS0_6ranges6detail9subrange_8subrangeIPKwS8_EEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESD_NSB_17basic_string_viewIcNSB_11char_traitsIcEEEE Line | Count | Source | 2230 | 41.4k | { | 2231 | 41.4k | using char_type = detail::char_t<Range>; | 2232 | | | 2233 | 41.4k | if constexpr (ranges::contiguous_range<Range> && | 2234 | 41.4k | std::is_same_v<char_type, char>) { | 2235 | 41.4k | if (range.size() < str.size()) { | 2236 | 41.4k | return unexpected(make_eof_parse_error(eof_error::eof)); | 2237 | 41.4k | } | 2238 | 41.4k | if (!fast_streq_nocase(range.data(), str.data(), str.size())) { | 2239 | 41.4k | return unexpected(parse_error::error); | 2240 | 41.4k | } | 2241 | 41.4k | return ranges::next(range.begin(), str.size()); | 2242 | 41.4k | } | 2243 | 41.4k | else { | 2244 | 41.4k | auto ascii_tolower = [](char_type ch) -> char_type { | 2245 | 41.4k | if (ch < 'A' || ch > 'Z') { | 2246 | 41.4k | return ch; | 2247 | 41.4k | } | 2248 | 41.4k | return static_cast<char_type>(ch + | 2249 | 41.4k | static_cast<char_type>('a' - 'A')); | 2250 | 41.4k | }; | 2251 | | | 2252 | 41.4k | SCN_TRY(it, read_exactly_n_code_units( | 2253 | 41.4k | range, static_cast<std::ptrdiff_t>(str.size())) | 2254 | 41.4k | .transform_error(make_eof_parse_error)); | 2255 | | | 2256 | 41.4k | if (SCN_UNLIKELY(!std::equal( | 2257 | 41.4k | range.begin(), it, str.begin(), [&](auto a, auto b) { | 2258 | 41.4k | return ascii_tolower(a) == | 2259 | 41.4k | static_cast<detail::char_t<Range>>(b); | 2260 | 41.4k | }))) { | 2261 | 41.4k | return unexpected(parse_error::error); | 2262 | 41.4k | } | 2263 | | | 2264 | 0 | return it; | 2265 | 41.4k | } | 2266 | 41.4k | } |
|
2267 | | |
2268 | | template <typename Range> |
2269 | | auto read_one_of_code_unit(Range range, std::string_view str) |
2270 | | -> parse_expected<ranges::const_iterator_t<Range>> |
2271 | 46.4k | { |
2272 | 46.4k | auto it = read_code_unit(range); |
2273 | 46.4k | if (SCN_UNLIKELY(!it)) { |
2274 | 0 | return unexpected(make_eof_parse_error(it.error())); |
2275 | 0 | } |
2276 | | |
2277 | 92.9k | for (auto ch : str) { |
2278 | 92.9k | if (*range.begin() == static_cast<detail::char_t<Range>>(ch)) { |
2279 | 0 | return *it; |
2280 | 0 | } |
2281 | 92.9k | } |
2282 | | |
2283 | 46.4k | return unexpected(parse_error::error); |
2284 | 46.4k | } Unexecuted instantiation: _ZN3scn2v34impl21read_one_of_code_unitINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS4_18default_sentinel_tEEEEEEENS1_14parse_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_NSG_17basic_string_viewIcNSG_11char_traitsIcEEEE Unexecuted instantiation: _ZN3scn2v34impl21read_one_of_code_unitINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_NSE_17basic_string_viewIcNSE_11char_traitsIcEEEE _ZN3scn2v34impl21read_one_of_code_unitINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcS9_EEEEEENS1_14parse_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_NSD_17basic_string_viewIcNSD_11char_traitsIcEEEE Line | Count | Source | 2271 | 1.08k | { | 2272 | 1.08k | auto it = read_code_unit(range); | 2273 | 1.08k | if (SCN_UNLIKELY(!it)) { | 2274 | 0 | return unexpected(make_eof_parse_error(it.error())); | 2275 | 0 | } | 2276 | | | 2277 | 2.16k | for (auto ch : str) { | 2278 | 2.16k | if (*range.begin() == static_cast<detail::char_t<Range>>(ch)) { | 2279 | 0 | return *it; | 2280 | 0 | } | 2281 | 2.16k | } | 2282 | | | 2283 | 1.08k | return unexpected(parse_error::error); | 2284 | 1.08k | } |
_ZN3scn2v34impl21read_one_of_code_unitINS0_6ranges6detail9subrange_8subrangeIPKcS8_EEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESD_NSB_17basic_string_viewIcNSB_11char_traitsIcEEEE Line | Count | Source | 2271 | 3.50k | { | 2272 | 3.50k | auto it = read_code_unit(range); | 2273 | 3.50k | if (SCN_UNLIKELY(!it)) { | 2274 | 0 | return unexpected(make_eof_parse_error(it.error())); | 2275 | 0 | } | 2276 | | | 2277 | 7.00k | for (auto ch : str) { | 2278 | 7.00k | if (*range.begin() == static_cast<detail::char_t<Range>>(ch)) { | 2279 | 0 | return *it; | 2280 | 0 | } | 2281 | 7.00k | } | 2282 | | | 2283 | 3.50k | return unexpected(parse_error::error); | 2284 | 3.50k | } |
Unexecuted instantiation: _ZN3scn2v34impl21read_one_of_code_unitINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEENS1_15take_width_viewINS6_ISC_SD_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_NSM_17basic_string_viewIcNSM_11char_traitsIcEEEE Unexecuted instantiation: _ZN3scn2v34impl21read_one_of_code_unitINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSA_EENS1_15take_width_viewINS6_ISA_SA_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_NSJ_17basic_string_viewIcNSJ_11char_traitsIcEEEE Unexecuted instantiation: _ZN3scn2v34impl21read_one_of_code_unitINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS4_18default_sentinel_tEEEEEEENS1_14parse_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_NSG_17basic_string_viewIcNSG_11char_traitsIcEEEE Unexecuted instantiation: _ZN3scn2v34impl21read_one_of_code_unitINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_NSE_17basic_string_viewIcNSE_11char_traitsIcEEEE _ZN3scn2v34impl21read_one_of_code_unitINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwS9_EEEEEENS1_14parse_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_NSD_17basic_string_viewIcNSD_11char_traitsIcEEEE Line | Count | Source | 2271 | 508 | { | 2272 | 508 | auto it = read_code_unit(range); | 2273 | 508 | if (SCN_UNLIKELY(!it)) { | 2274 | 0 | return unexpected(make_eof_parse_error(it.error())); | 2275 | 0 | } | 2276 | | | 2277 | 1.01k | for (auto ch : str) { | 2278 | 1.01k | if (*range.begin() == static_cast<detail::char_t<Range>>(ch)) { | 2279 | 0 | return *it; | 2280 | 0 | } | 2281 | 1.01k | } | 2282 | | | 2283 | 508 | return unexpected(parse_error::error); | 2284 | 508 | } |
_ZN3scn2v34impl21read_one_of_code_unitINS0_6ranges6detail9subrange_8subrangeIPKwS8_EEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESD_NSB_17basic_string_viewIcNSB_11char_traitsIcEEEE Line | Count | Source | 2271 | 41.3k | { | 2272 | 41.3k | auto it = read_code_unit(range); | 2273 | 41.3k | if (SCN_UNLIKELY(!it)) { | 2274 | 0 | return unexpected(make_eof_parse_error(it.error())); | 2275 | 0 | } | 2276 | | | 2277 | 82.7k | for (auto ch : str) { | 2278 | 82.7k | if (*range.begin() == static_cast<detail::char_t<Range>>(ch)) { | 2279 | 0 | return *it; | 2280 | 0 | } | 2281 | 82.7k | } | 2282 | | | 2283 | 41.3k | return unexpected(parse_error::error); | 2284 | 41.3k | } |
Unexecuted instantiation: _ZN3scn2v34impl21read_one_of_code_unitINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEENS1_15take_width_viewINS6_ISC_SD_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_NSM_17basic_string_viewIcNSM_11char_traitsIcEEEE Unexecuted instantiation: _ZN3scn2v34impl21read_one_of_code_unitINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSA_EENS1_15take_width_viewINS6_ISA_SA_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_NSJ_17basic_string_viewIcNSJ_11char_traitsIcEEEE |
2285 | | |
2286 | | template <typename Range, template <class> class Expected, typename Iterator> |
2287 | | auto apply_opt(Expected<Iterator>&& result, Range range) |
2288 | | -> std::enable_if_t<detail::is_expected<Expected<Iterator>>::value, |
2289 | | ranges::const_iterator_t<Range>> |
2290 | 11.6k | { |
2291 | 11.6k | if (!result) { |
2292 | 11.6k | return range.begin(); |
2293 | 11.6k | } |
2294 | 0 | return *result; |
2295 | 11.6k | } Unexecuted instantiation: _ZN3scn2v34impl9apply_optINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEENS1_15take_width_viewINS6_ISC_SD_EEE8sentinelILb1EEEEENS1_14parse_expectedESE_EENSt3__19enable_ifIXsr6detail11is_expectedIT0_IT1_EEE5valueEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSM_9add_constIT_E4typeEEEEEE4typeEOSQ_SS_ Unexecuted instantiation: _ZN3scn2v34impl9apply_optINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEENS1_14parse_expectedESA_EENSt3__19enable_ifIXsr6detail11is_expectedIT0_IT1_EEE5valueEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSE_9add_constIT_E4typeEEEEEE4typeEOSI_SK_ _ZN3scn2v34impl9apply_optINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSA_EENS1_15take_width_viewINS6_ISA_SA_EEE8sentinelILb1EEEEENS1_14parse_expectedESB_EENSt3__19enable_ifIXsr6detail11is_expectedIT0_IT1_EEE5valueEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSJ_9add_constIT_E4typeEEEEEE4typeEOSN_SP_ Line | Count | Source | 2290 | 286 | { | 2291 | 286 | if (!result) { | 2292 | 286 | return range.begin(); | 2293 | 286 | } | 2294 | 0 | return *result; | 2295 | 286 | } |
_ZN3scn2v34impl9apply_optINS0_6ranges6detail9subrange_8subrangeIPKcS8_EENS1_14parse_expectedES8_EENSt3__19enable_ifIXsr6detail11is_expectedIT0_IT1_EEE5valueEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSB_9add_constIT_E4typeEEEEEE4typeEOSF_SH_ Line | Count | Source | 2290 | 894 | { | 2291 | 894 | if (!result) { | 2292 | 894 | return range.begin(); | 2293 | 894 | } | 2294 | 0 | return *result; | 2295 | 894 | } |
Unexecuted instantiation: _ZN3scn2v34impl9apply_optINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEENS1_15take_width_viewINS6_ISC_SD_EEE8sentinelILb1EEEEENS1_14parse_expectedESE_EENSt3__19enable_ifIXsr6detail11is_expectedIT0_IT1_EEE5valueEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSM_9add_constIT_E4typeEEEEEE4typeEOSQ_SS_ Unexecuted instantiation: _ZN3scn2v34impl9apply_optINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEENS1_14parse_expectedESA_EENSt3__19enable_ifIXsr6detail11is_expectedIT0_IT1_EEE5valueEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSE_9add_constIT_E4typeEEEEEE4typeEOSI_SK_ _ZN3scn2v34impl9apply_optINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSA_EENS1_15take_width_viewINS6_ISA_SA_EEE8sentinelILb1EEEEENS1_14parse_expectedESB_EENSt3__19enable_ifIXsr6detail11is_expectedIT0_IT1_EEE5valueEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSJ_9add_constIT_E4typeEEEEEE4typeEOSN_SP_ Line | Count | Source | 2290 | 130 | { | 2291 | 130 | if (!result) { | 2292 | 130 | return range.begin(); | 2293 | 130 | } | 2294 | 0 | return *result; | 2295 | 130 | } |
_ZN3scn2v34impl9apply_optINS0_6ranges6detail9subrange_8subrangeIPKwS8_EENS1_14parse_expectedES8_EENSt3__19enable_ifIXsr6detail11is_expectedIT0_IT1_EEE5valueEDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSB_9add_constIT_E4typeEEEEEE4typeEOSF_SH_ Line | Count | Source | 2290 | 10.3k | { | 2291 | 10.3k | if (!result) { | 2292 | 10.3k | return range.begin(); | 2293 | 10.3k | } | 2294 | 0 | return *result; | 2295 | 10.3k | } |
|
2296 | | |
2297 | | ///////////////////////////////////////////////////////////////// |
2298 | | // Text width calculation |
2299 | | ///////////////////////////////////////////////////////////////// |
2300 | | |
2301 | | constexpr std::size_t calculate_text_width_for_fmt_v10(char32_t cp) |
2302 | 120k | { |
2303 | 120k | if (cp >= 0x1100 && |
2304 | 120k | (cp <= 0x115f || // Hangul Jamo init. consonants |
2305 | 19.0k | cp == 0x2329 || // LEFT-POINTING ANGLE BRACKET |
2306 | 19.0k | cp == 0x232a || // RIGHT-POINTING ANGLE BRACKET |
2307 | | // CJK ... Yi except IDEOGRAPHIC HALF FILL SPACE: |
2308 | 19.0k | (cp >= 0x2e80 && cp <= 0xa4cf && cp != 0x303f) || |
2309 | 19.0k | (cp >= 0xac00 && cp <= 0xd7a3) || // Hangul Syllables |
2310 | 19.0k | (cp >= 0xf900 && cp <= 0xfaff) || // CJK Compatibility Ideographs |
2311 | 19.0k | (cp >= 0xfe10 && cp <= 0xfe19) || // Vertical Forms |
2312 | 19.0k | (cp >= 0xfe30 && cp <= 0xfe6f) || // CJK Compatibility Forms |
2313 | 19.0k | (cp >= 0xff00 && cp <= 0xff60) || // Fullwidth Forms |
2314 | 19.0k | (cp >= 0xffe0 && cp <= 0xffe6) || // Fullwidth Forms |
2315 | 19.0k | (cp >= 0x20000 && cp <= 0x2fffd) || // CJK |
2316 | 19.0k | (cp >= 0x30000 && cp <= 0x3fffd) || |
2317 | | // Miscellaneous Symbols and Pictographs + Emoticons: |
2318 | 19.0k | (cp >= 0x1f300 && cp <= 0x1f64f) || |
2319 | | // Supplemental Symbols and Pictographs: |
2320 | 19.0k | (cp >= 0x1f900 && cp <= 0x1f9ff))) { |
2321 | 2.78k | return 2; |
2322 | 2.78k | } |
2323 | 118k | return 1; |
2324 | 120k | } |
2325 | | |
2326 | | constexpr std::size_t calculate_valid_text_width(char32_t cp) |
2327 | 77.3k | { |
2328 | 77.3k | return calculate_text_width_for_fmt_v10(cp); |
2329 | 77.3k | } |
2330 | | |
2331 | | template <typename CharT> |
2332 | | std::size_t calculate_valid_text_width(std::basic_string_view<CharT> input) |
2333 | | { |
2334 | | size_t count{0}; |
2335 | | for_each_code_point_valid(input, [&count](char32_t cp) { |
2336 | | count += calculate_text_width_for_fmt_v10(cp); |
2337 | | }); |
2338 | | return count; |
2339 | | } |
2340 | | |
2341 | | constexpr std::size_t calculate_text_width(char32_t cp) |
2342 | 202 | { |
2343 | 202 | return calculate_text_width_for_fmt_v10(cp); |
2344 | 202 | } |
2345 | | |
2346 | | template <typename CharT> |
2347 | | std::size_t calculate_text_width(std::basic_string_view<CharT> input) |
2348 | 25.0k | { |
2349 | 25.0k | size_t count{0}; |
2350 | 43.3k | for_each_code_point(input, [&count](char32_t cp) { |
2351 | 43.3k | count += calculate_text_width_for_fmt_v10(cp); |
2352 | 43.3k | }); scn::v3::impl::calculate_text_width<char>(std::__1::basic_string_view<char, std::__1::char_traits<char> >)::{lambda(char32_t)#1}::operator()(char32_t) constLine | Count | Source | 2350 | 37.3k | for_each_code_point(input, [&count](char32_t cp) { | 2351 | 37.3k | count += calculate_text_width_for_fmt_v10(cp); | 2352 | 37.3k | }); |
scn::v3::impl::calculate_text_width<wchar_t>(std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> >)::{lambda(char32_t)#1}::operator()(char32_t) constLine | Count | Source | 2350 | 5.96k | for_each_code_point(input, [&count](char32_t cp) { | 2351 | 5.96k | count += calculate_text_width_for_fmt_v10(cp); | 2352 | 5.96k | }); |
|
2353 | 25.0k | return count; |
2354 | 25.0k | } unsigned long scn::v3::impl::calculate_text_width<char>(std::__1::basic_string_view<char, std::__1::char_traits<char> >) Line | Count | Source | 2348 | 21.6k | { | 2349 | 21.6k | size_t count{0}; | 2350 | 21.6k | for_each_code_point(input, [&count](char32_t cp) { | 2351 | 21.6k | count += calculate_text_width_for_fmt_v10(cp); | 2352 | 21.6k | }); | 2353 | 21.6k | return count; | 2354 | 21.6k | } |
unsigned long scn::v3::impl::calculate_text_width<wchar_t>(std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> >) Line | Count | Source | 2348 | 3.47k | { | 2349 | 3.47k | size_t count{0}; | 2350 | 3.47k | for_each_code_point(input, [&count](char32_t cp) { | 2351 | 3.47k | count += calculate_text_width_for_fmt_v10(cp); | 2352 | 3.47k | }); | 2353 | 3.47k | return count; | 2354 | 3.47k | } |
|
2355 | | |
2356 | | namespace counted_width_iterator_impl { |
2357 | | template <typename It, typename S> |
2358 | | class counted_width_iterator { |
2359 | | static_assert(ranges::forward_iterator<It>); |
2360 | | static_assert(ranges::sentinel_for<S, It>); |
2361 | | |
2362 | | template <typename OtherIt, typename OtherS> |
2363 | | friend class counted_width_iterator; |
2364 | | |
2365 | | public: |
2366 | | using iterator = It; |
2367 | | using sentinel = S; |
2368 | | using value_type = ranges::iter_value_t<It>; |
2369 | | using pointer = value_type*; |
2370 | | using reference = value_type&; |
2371 | | using difference_type = ranges::iter_difference_t<It>; |
2372 | | using iterator_category = |
2373 | | std::conditional_t<ranges::bidirectional_iterator<It>, |
2374 | | std::bidirectional_iterator_tag, |
2375 | | std::forward_iterator_tag>; |
2376 | | |
2377 | | constexpr counted_width_iterator() = default; |
2378 | | |
2379 | | constexpr counted_width_iterator(iterator x, sentinel s, difference_type n) |
2380 | | : m_current(x), m_end(s), m_count(n) |
2381 | 33.0k | { |
2382 | 33.0k | } Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >::counted_width_iterator(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true>, long) Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>::counted_width_iterator(scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t, long) Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> >::counted_width_iterator(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true>, long) scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>::counted_width_iterator(char const*, char const*, long) Line | Count | Source | 2381 | 19.5k | { | 2382 | 19.5k | } |
Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >::counted_width_iterator(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true>, long) Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>::counted_width_iterator(scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t, long) Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> >::counted_width_iterator(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true>, long) scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>::counted_width_iterator(wchar_t const*, wchar_t const*, long) Line | Count | Source | 2381 | 7.24k | { | 2382 | 7.24k | } |
scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> >::counted_width_iterator(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true>, long) Line | Count | Source | 2381 | 4.45k | { | 2382 | 4.45k | } |
scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> >::counted_width_iterator(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true>, long) Line | Count | Source | 2381 | 1.83k | { | 2382 | 1.83k | } |
|
2383 | | |
2384 | | template <typename OtherIt, |
2385 | | typename OtherS, |
2386 | | std::enable_if_t<std::is_convertible_v<OtherIt, It> && |
2387 | | std::is_convertible_v<OtherS, S>>* = nullptr> |
2388 | | constexpr counted_width_iterator( |
2389 | | const counted_width_iterator<OtherIt, OtherS>& other) |
2390 | | : m_current(other.m_current), |
2391 | | m_end(other.m_end), |
2392 | | m_count(other.m_count), |
2393 | | m_multibyte_left(other.m_multibyte_left) |
2394 | | { |
2395 | | } |
2396 | | |
2397 | | template <typename OtherIt, typename OtherS> |
2398 | | constexpr auto operator=( |
2399 | | const counted_width_iterator<OtherIt, OtherS>& other) |
2400 | | -> std::enable_if_t<std::is_convertible_v<OtherIt, It> && |
2401 | | std::is_convertible_v<OtherS, S>, |
2402 | | counted_width_iterator&> |
2403 | | { |
2404 | | m_current = other.m_current; |
2405 | | m_end = other.m_end; |
2406 | | m_count = other.m_count; |
2407 | | m_multibyte_left = other.m_multibyte_left; |
2408 | | return *this; |
2409 | | } |
2410 | | |
2411 | | constexpr It base() const |
2412 | 174k | { |
2413 | 174k | return m_current; |
2414 | 174k | } Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >::base() const Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>::base() const Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> >::base() const scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>::base() const Line | Count | Source | 2412 | 129k | { | 2413 | 129k | return m_current; | 2414 | 129k | } |
Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >::base() const Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>::base() const Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> >::base() const scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>::base() const Line | Count | Source | 2412 | 28.3k | { | 2413 | 28.3k | return m_current; | 2414 | 28.3k | } |
scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> >::base() const Line | Count | Source | 2412 | 13.1k | { | 2413 | 13.1k | return m_current; | 2414 | 13.1k | } |
scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> >::base() const Line | Count | Source | 2412 | 3.70k | { | 2413 | 3.70k | return m_current; | 2414 | 3.70k | } |
|
2415 | | constexpr difference_type count() const |
2416 | 169k | { |
2417 | 169k | return m_count; |
2418 | 169k | } Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >::count() const Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>::count() const Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> >::count() const scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>::count() const Line | Count | Source | 2416 | 125k | { | 2417 | 125k | return m_count; | 2418 | 125k | } |
Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >::count() const Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>::count() const Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> >::count() const scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>::count() const Line | Count | Source | 2416 | 27.0k | { | 2417 | 27.0k | return m_count; | 2418 | 27.0k | } |
scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> >::count() const Line | Count | Source | 2416 | 13.5k | { | 2417 | 13.5k | return m_count; | 2418 | 13.5k | } |
scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> >::count() const Line | Count | Source | 2416 | 3.74k | { | 2417 | 3.74k | return m_count; | 2418 | 3.74k | } |
|
2419 | | constexpr difference_type multibyte_left() const |
2420 | 3.99k | { |
2421 | 3.99k | return m_multibyte_left; |
2422 | 3.99k | } Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>::multibyte_left() const Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >::multibyte_left() const scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>::multibyte_left() const Line | Count | Source | 2420 | 3.02k | { | 2421 | 3.02k | return m_multibyte_left; | 2422 | 3.02k | } |
Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> >::multibyte_left() const Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>::multibyte_left() const Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >::multibyte_left() const scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>::multibyte_left() const Line | Count | Source | 2420 | 280 | { | 2421 | 280 | return m_multibyte_left; | 2422 | 280 | } |
Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> >::multibyte_left() const scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> >::multibyte_left() const Line | Count | Source | 2420 | 664 | { | 2421 | 664 | return m_multibyte_left; | 2422 | 664 | } |
scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> >::multibyte_left() const Line | Count | Source | 2420 | 34 | { | 2421 | 34 | return m_multibyte_left; | 2422 | 34 | } |
|
2423 | | |
2424 | | constexpr decltype(auto) operator*() |
2425 | 166k | { |
2426 | 166k | return *m_current; |
2427 | 166k | } Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>::operator*() Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >::operator*() scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>::operator*() Line | Count | Source | 2425 | 128k | { | 2426 | 128k | return *m_current; | 2427 | 128k | } |
Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> >::operator*() Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>::operator*() Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >::operator*() scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>::operator*() Line | Count | Source | 2425 | 27.8k | { | 2426 | 27.8k | return *m_current; | 2427 | 27.8k | } |
Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> >::operator*() scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> >::operator*() Line | Count | Source | 2425 | 7.73k | { | 2426 | 7.73k | return *m_current; | 2427 | 7.73k | } |
scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> >::operator*() Line | Count | Source | 2425 | 1.87k | { | 2426 | 1.87k | return *m_current; | 2427 | 1.87k | } |
|
2428 | | constexpr decltype(auto) operator*() const |
2429 | 9.64k | { |
2430 | 9.64k | return *m_current; |
2431 | 9.64k | } Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>::operator*() const scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>::operator*() const Line | Count | Source | 2429 | 7.90k | { | 2430 | 7.90k | return *m_current; | 2431 | 7.90k | } |
Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>::operator*() const scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>::operator*() const Line | Count | Source | 2429 | 1.74k | { | 2430 | 1.74k | return *m_current; | 2431 | 1.74k | } |
|
2432 | | |
2433 | | constexpr counted_width_iterator& operator++() |
2434 | 156k | { |
2435 | 156k | SCN_EXPECT(m_current != m_end); |
2436 | 156k | _increment_current(); |
2437 | 156k | return *this; |
2438 | 156k | } Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>::operator++() Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >::operator++() scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>::operator++() Line | Count | Source | 2434 | 126k | { | 2435 | 126k | SCN_EXPECT(m_current != m_end); | 2436 | 126k | _increment_current(); | 2437 | 126k | return *this; | 2438 | 126k | } |
Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> >::operator++() Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>::operator++() Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >::operator++() scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>::operator++() Line | Count | Source | 2434 | 20.3k | { | 2435 | 20.3k | SCN_EXPECT(m_current != m_end); | 2436 | 20.3k | _increment_current(); | 2437 | 20.3k | return *this; | 2438 | 20.3k | } |
Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> >::operator++() scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> >::operator++() Line | Count | Source | 2434 | 8.09k | { | 2435 | 8.09k | SCN_EXPECT(m_current != m_end); | 2436 | 8.09k | _increment_current(); | 2437 | 8.09k | return *this; | 2438 | 8.09k | } |
scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> >::operator++() Line | Count | Source | 2434 | 874 | { | 2435 | 874 | SCN_EXPECT(m_current != m_end); | 2436 | 874 | _increment_current(); | 2437 | 874 | return *this; | 2438 | 874 | } |
|
2439 | | |
2440 | | constexpr counted_width_iterator operator++(int) |
2441 | | { |
2442 | | auto tmp = *this; |
2443 | | ++*this; |
2444 | | return tmp; |
2445 | | } |
2446 | | |
2447 | | template <typename Iter = It> |
2448 | | constexpr auto operator--() |
2449 | | -> std::enable_if_t<ranges::bidirectional_iterator<Iter>, |
2450 | | counted_width_iterator&> |
2451 | 0 | { |
2452 | 0 | _decrement_current(); |
2453 | 0 | return *this; |
2454 | 0 | } Unexecuted instantiation: _ZN3scn2v34impl27counted_width_iterator_impl22counted_width_iteratorIPKcS5_EmmIS5_EENSt3__19enable_ifIXsr6rangesE22bidirectional_iteratorIT_EERS6_E4typeEv Unexecuted instantiation: _ZN3scn2v34impl27counted_width_iterator_impl22counted_width_iteratorINS3_IPKcS5_EENS1_15take_width_viewINSt3__117basic_string_viewIcNS8_11char_traitsIcEEEEE8sentinelILb1EEEEmmIS6_EENS8_9enable_ifIXsr6rangesE22bidirectional_iteratorIT_EERSG_E4typeEv Unexecuted instantiation: _ZN3scn2v34impl27counted_width_iterator_impl22counted_width_iteratorIPKwS5_EmmIS5_EENSt3__19enable_ifIXsr6rangesE22bidirectional_iteratorIT_EERS6_E4typeEv Unexecuted instantiation: _ZN3scn2v34impl27counted_width_iterator_impl22counted_width_iteratorINS3_IPKwS5_EENS1_15take_width_viewINSt3__117basic_string_viewIwNS8_11char_traitsIwEEEEE8sentinelILb1EEEEmmIS6_EENS8_9enable_ifIXsr6rangesE22bidirectional_iteratorIT_EERSG_E4typeEv Unexecuted instantiation: _ZN3scn2v34impl27counted_width_iterator_impl22counted_width_iteratorINS3_IPKcS5_EENS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIS5_S5_EEE8sentinelILb1EEEEmmIS6_EENSt3__19enable_ifIXsr6rangesE22bidirectional_iteratorIT_EERSG_E4typeEv Unexecuted instantiation: _ZN3scn2v34impl27counted_width_iterator_impl22counted_width_iteratorINS3_IPKwS5_EENS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIS5_S5_EEE8sentinelILb1EEEEmmIS6_EENSt3__19enable_ifIXsr6rangesE22bidirectional_iteratorIT_EERSG_E4typeEv |
2455 | | |
2456 | | template <typename Iter = It> |
2457 | | constexpr auto operator--(int) |
2458 | | -> std::enable_if_t<ranges::bidirectional_iterator<Iter>, |
2459 | | counted_width_iterator> |
2460 | | { |
2461 | | auto tmp = *this; |
2462 | | --*this; |
2463 | | return tmp; |
2464 | | } |
2465 | | |
2466 | | // TODO: optimize, make better than forward, if possible |
2467 | | #if 0 |
2468 | | template <typename Iter = It> |
2469 | | constexpr auto operator+(difference_type n) -> std::enable_if_t< |
2470 | | ranges_std::random_access_iterator<Iter>, |
2471 | | counted_width_iterator> |
2472 | | { |
2473 | | // TODO |
2474 | | return counted_width_iterator(m_current + n, m_count - n); |
2475 | | } |
2476 | | |
2477 | | template <typename Iter = It, |
2478 | | std::enable_if_t<ranges_std::random_access_iterator< |
2479 | | Iter>>* = nullptr> |
2480 | | friend constexpr counted_width_iterator operator+( |
2481 | | ranges_std::iter_difference_t<Iter> n, |
2482 | | const counted_width_iterator<Iter>& x) |
2483 | | { |
2484 | | return x + n; |
2485 | | } |
2486 | | |
2487 | | template <typename Iter = It> |
2488 | | constexpr auto operator+=(difference_type n) |
2489 | | -> std::enable_if_t< |
2490 | | ranges_std::random_access_iterator<Iter>, |
2491 | | counted_width_iterator&> |
2492 | | { |
2493 | | // TODO |
2494 | | m_current += n; |
2495 | | m_count -= n; |
2496 | | return *this; |
2497 | | } |
2498 | | |
2499 | | template <typename Iter = It> |
2500 | | constexpr auto operator-(difference_type n) -> std::enable_if_t< |
2501 | | ranges_std::random_access_iterator<Iter>, |
2502 | | counted_width_iterator> |
2503 | | { |
2504 | | // TODO |
2505 | | return counted_width_iterator(m_current - n, m_count + n); |
2506 | | } |
2507 | | |
2508 | | template <typename Iter = It, |
2509 | | std::enable_if_t<ranges_std::random_access_iterator< |
2510 | | Iter>>* = nullptr> |
2511 | | constexpr decltype(auto) operator[](difference_type n) const |
2512 | | { |
2513 | | return m_current[n]; |
2514 | | } |
2515 | | #endif |
2516 | | |
2517 | | template <typename OtherIt, typename OtherS> |
2518 | | friend constexpr auto operator==( |
2519 | | const counted_width_iterator& a, |
2520 | | const counted_width_iterator<OtherIt, OtherS>& b) |
2521 | | -> decltype(SCN_DECLVAL(const It&) == SCN_DECLVAL(const OtherIt&)) |
2522 | 89.6k | { |
2523 | 89.6k | return a.m_current == b.m_current; |
2524 | 89.6k | } Unexecuted instantiation: decltype (((static_cast<scn::v3::detail::basic_scan_buffer<char>::forward_iterator const& (*scn::v3::impl::counted_width_iterator_impl::operator==<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> const&, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> const&))()>(decltype(nullptr)))())==((static_cast<scn::v3::detail::basic_scan_buffer<char>::forward_iterator const& (*)()>(decltype(nullptr)))())) Unexecuted instantiation: decltype (((static_cast<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> const& (*scn::v3::impl::counted_width_iterator_impl::operator==<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > const&, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > const&))()>(decltype(nullptr)))())==((static_cast<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> const& (*)()>(decltype(nullptr)))())) decltype (((static_cast<char const* const& (*scn::v3::impl::counted_width_iterator_impl::operator==<char const*, char const*>(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> const&, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> const&))()>(decltype(nullptr)))())==((static_cast<char const* const& (*)()>(decltype(nullptr)))())) Line | Count | Source | 2522 | 77.4k | { | 2523 | 77.4k | return a.m_current == b.m_current; | 2524 | 77.4k | } |
Unexecuted instantiation: decltype (((static_cast<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> const& (*scn::v3::impl::counted_width_iterator_impl::operator==<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> > const&, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> > const&))()>(decltype(nullptr)))())==((static_cast<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> const& (*)()>(decltype(nullptr)))())) Unexecuted instantiation: decltype (((static_cast<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator const& (*scn::v3::impl::counted_width_iterator_impl::operator==<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> const&, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> const&))()>(decltype(nullptr)))())==((static_cast<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator const& (*)()>(decltype(nullptr)))())) Unexecuted instantiation: decltype (((static_cast<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> const& (*scn::v3::impl::counted_width_iterator_impl::operator==<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > const&, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > const&))()>(decltype(nullptr)))())==((static_cast<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> const& (*)()>(decltype(nullptr)))())) decltype (((static_cast<wchar_t const* const& (*scn::v3::impl::counted_width_iterator_impl::operator==<wchar_t const*, wchar_t const*>(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> const&, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> const&))()>(decltype(nullptr)))())==((static_cast<wchar_t const* const& (*)()>(decltype(nullptr)))())) Line | Count | Source | 2522 | 7.70k | { | 2523 | 7.70k | return a.m_current == b.m_current; | 2524 | 7.70k | } |
Unexecuted instantiation: decltype (((static_cast<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> const& (*scn::v3::impl::counted_width_iterator_impl::operator==<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> > const&, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> > const&))()>(decltype(nullptr)))())==((static_cast<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> const& (*)()>(decltype(nullptr)))())) decltype (((static_cast<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> const& (*scn::v3::impl::counted_width_iterator_impl::operator==<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> > const&, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> > const&))()>(decltype(nullptr)))())==((static_cast<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> const& (*)()>(decltype(nullptr)))())) Line | Count | Source | 2522 | 4.50k | { | 2523 | 4.50k | return a.m_current == b.m_current; | 2524 | 4.50k | } |
Unexecuted instantiation: decltype (((static_cast<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> const& (*scn::v3::impl::counted_width_iterator_impl::operator==<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> > const&, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> > const&))()>(decltype(nullptr)))())==((static_cast<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> const& (*)()>(decltype(nullptr)))())) |
2525 | | template <typename OtherIt, typename OtherS> |
2526 | | friend constexpr auto operator!=( |
2527 | | const counted_width_iterator& a, |
2528 | | const counted_width_iterator<OtherIt, OtherS>& b) |
2529 | | -> decltype(SCN_DECLVAL(const It&) == SCN_DECLVAL(const OtherIt&)) |
2530 | 82.9k | { |
2531 | 82.9k | return !(a == b); |
2532 | 82.9k | } Unexecuted instantiation: decltype (((static_cast<scn::v3::detail::basic_scan_buffer<char>::forward_iterator const& (*scn::v3::impl::counted_width_iterator_impl::operator!=<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> const&, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> const&))()>(decltype(nullptr)))())==((static_cast<scn::v3::detail::basic_scan_buffer<char>::forward_iterator const& (*)()>(decltype(nullptr)))())) Unexecuted instantiation: decltype (((static_cast<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> const& (*scn::v3::impl::counted_width_iterator_impl::operator!=<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > const&, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > const&))()>(decltype(nullptr)))())==((static_cast<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> const& (*)()>(decltype(nullptr)))())) decltype (((static_cast<char const* const& (*scn::v3::impl::counted_width_iterator_impl::operator!=<char const*, char const*>(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> const&, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> const&))()>(decltype(nullptr)))())==((static_cast<char const* const& (*)()>(decltype(nullptr)))())) Line | Count | Source | 2530 | 71.2k | { | 2531 | 71.2k | return !(a == b); | 2532 | 71.2k | } |
Unexecuted instantiation: decltype (((static_cast<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> const& (*scn::v3::impl::counted_width_iterator_impl::operator!=<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> > const&, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> > const&))()>(decltype(nullptr)))())==((static_cast<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> const& (*)()>(decltype(nullptr)))())) Unexecuted instantiation: decltype (((static_cast<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator const& (*scn::v3::impl::counted_width_iterator_impl::operator!=<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> const&, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> const&))()>(decltype(nullptr)))())==((static_cast<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator const& (*)()>(decltype(nullptr)))())) Unexecuted instantiation: decltype (((static_cast<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> const& (*scn::v3::impl::counted_width_iterator_impl::operator!=<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > const&, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > const&))()>(decltype(nullptr)))())==((static_cast<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> const& (*)()>(decltype(nullptr)))())) decltype (((static_cast<wchar_t const* const& (*scn::v3::impl::counted_width_iterator_impl::operator!=<wchar_t const*, wchar_t const*>(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> const&, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> const&))()>(decltype(nullptr)))())==((static_cast<wchar_t const* const& (*)()>(decltype(nullptr)))())) Line | Count | Source | 2530 | 7.21k | { | 2531 | 7.21k | return !(a == b); | 2532 | 7.21k | } |
Unexecuted instantiation: decltype (((static_cast<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> const& (*scn::v3::impl::counted_width_iterator_impl::operator!=<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> > const&, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> > const&))()>(decltype(nullptr)))())==((static_cast<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> const& (*)()>(decltype(nullptr)))())) decltype (((static_cast<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> const& (*scn::v3::impl::counted_width_iterator_impl::operator!=<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> > const&, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> > const&))()>(decltype(nullptr)))())==((static_cast<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> const& (*)()>(decltype(nullptr)))())) Line | Count | Source | 2530 | 4.50k | { | 2531 | 4.50k | return !(a == b); | 2532 | 4.50k | } |
Unexecuted instantiation: decltype (((static_cast<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> const& (*scn::v3::impl::counted_width_iterator_impl::operator!=<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> > const&, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> > const&))()>(decltype(nullptr)))())==((static_cast<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> const& (*)()>(decltype(nullptr)))())) |
2533 | | |
2534 | | friend constexpr bool operator==(const counted_width_iterator& x, |
2535 | | ranges::default_sentinel_t) |
2536 | | { |
2537 | | return x.count() == 0 && x.multibyte_left() == 0; |
2538 | | } |
2539 | | friend constexpr bool operator==(ranges::default_sentinel_t, |
2540 | | const counted_width_iterator& x) |
2541 | | { |
2542 | | return x.count() == 0 && x.multibyte_left() == 0; |
2543 | | } |
2544 | | |
2545 | | friend constexpr bool operator!=(const counted_width_iterator& a, |
2546 | | ranges::default_sentinel_t b) |
2547 | | { |
2548 | | return !(a == b); |
2549 | | } |
2550 | | friend constexpr bool operator!=(ranges::default_sentinel_t a, |
2551 | | const counted_width_iterator& b) |
2552 | | { |
2553 | | return !(a == b); |
2554 | | } |
2555 | | |
2556 | | template <typename OtherIt, typename OtherS> |
2557 | | friend constexpr auto operator<( |
2558 | | const counted_width_iterator& a, |
2559 | | const counted_width_iterator<OtherIt, OtherS>& b) |
2560 | | -> decltype(SCN_DECLVAL(const It&) < SCN_DECLVAL(const OtherIt&)) |
2561 | | { |
2562 | | if (a.count() == b.count()) { |
2563 | | return a.multibyte_left() > b.multibyte_left(); |
2564 | | } |
2565 | | |
2566 | | return a.count() > b.count(); |
2567 | | } |
2568 | | |
2569 | | template <typename OtherIt, typename OtherS> |
2570 | | friend constexpr auto operator>( |
2571 | | const counted_width_iterator& a, |
2572 | | const counted_width_iterator<OtherIt, OtherS>& b) |
2573 | | -> decltype(SCN_DECLVAL(const It&) < SCN_DECLVAL(const OtherIt&)) |
2574 | | { |
2575 | | return !(b < a); |
2576 | | } |
2577 | | |
2578 | | template <typename OtherIt, typename OtherS> |
2579 | | friend constexpr auto operator<=( |
2580 | | const counted_width_iterator& a, |
2581 | | const counted_width_iterator<OtherIt, OtherS>& b) |
2582 | | -> decltype(SCN_DECLVAL(const It&) < SCN_DECLVAL(const OtherIt&)) |
2583 | | { |
2584 | | return !(b < a); |
2585 | | } |
2586 | | |
2587 | | template <typename OtherIt, typename OtherS> |
2588 | | friend constexpr auto operator>=( |
2589 | | const counted_width_iterator& a, |
2590 | | const counted_width_iterator<OtherIt, OtherS>& b) |
2591 | | -> decltype(SCN_DECLVAL(const It&) < SCN_DECLVAL(const OtherIt&)) |
2592 | | { |
2593 | | return !(a < b); |
2594 | | } |
2595 | | |
2596 | | #if 0 |
2597 | | template <typename OtherIt, typename OtherS> |
2598 | | friend constexpr auto operator-( |
2599 | | const counted_width_iterator& a, |
2600 | | const counted_width_iterator<OtherIt, OtherS>& b) |
2601 | | -> std::enable_if_t<ranges_std::common_with<OtherIt, It>, |
2602 | | ranges_std::iter_difference_t<OtherIt>> |
2603 | | { |
2604 | | // TODO |
2605 | | } |
2606 | | |
2607 | | friend constexpr ranges_std::iter_difference_t<It> operator-( |
2608 | | const counted_width_iterator& x, |
2609 | | ranges_std::default_sentinel_t) |
2610 | | { |
2611 | | // TODO |
2612 | | } |
2613 | | |
2614 | | friend constexpr ranges_std::iter_difference_t<It> operator-( |
2615 | | ranges_std::default_sentinel_t, |
2616 | | const counted_width_iterator& x) |
2617 | | { |
2618 | | // TODO |
2619 | | } |
2620 | | #endif |
2621 | | |
2622 | | #if 0 |
2623 | | template <typename Iter = It> |
2624 | | constexpr auto operator-=(difference_type n) |
2625 | | -> std::enable_if_t< |
2626 | | ranges_std::random_access_iterator<Iter>, |
2627 | | counted_width_iterator&> |
2628 | | { |
2629 | | // TODO |
2630 | | m_current -= n; |
2631 | | m_count += n; |
2632 | | return *this; |
2633 | | } |
2634 | | #endif |
2635 | | |
2636 | | private: |
2637 | | difference_type _get_cp_length_at_current() const |
2638 | 98.0k | { |
2639 | 98.0k | return static_cast<difference_type>( |
2640 | 98.0k | detail::code_point_length_by_starting_code_unit(*m_current)); |
2641 | 98.0k | } Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>::_get_cp_length_at_current() const Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >::_get_cp_length_at_current() const scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>::_get_cp_length_at_current() const Line | Count | Source | 2638 | 71.9k | { | 2639 | 71.9k | return static_cast<difference_type>( | 2640 | 71.9k | detail::code_point_length_by_starting_code_unit(*m_current)); | 2641 | 71.9k | } |
Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> >::_get_cp_length_at_current() const Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>::_get_cp_length_at_current() const Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >::_get_cp_length_at_current() const scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>::_get_cp_length_at_current() const Line | Count | Source | 2638 | 20.3k | { | 2639 | 20.3k | return static_cast<difference_type>( | 2640 | 20.3k | detail::code_point_length_by_starting_code_unit(*m_current)); | 2641 | 20.3k | } |
Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> >::_get_cp_length_at_current() const scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> >::_get_cp_length_at_current() const Line | Count | Source | 2638 | 4.85k | { | 2639 | 4.85k | return static_cast<difference_type>( | 2640 | 4.85k | detail::code_point_length_by_starting_code_unit(*m_current)); | 2641 | 4.85k | } |
scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> >::_get_cp_length_at_current() const Line | Count | Source | 2638 | 874 | { | 2639 | 874 | return static_cast<difference_type>( | 2640 | 874 | detail::code_point_length_by_starting_code_unit(*m_current)); | 2641 | 874 | } |
|
2642 | | |
2643 | | difference_type _get_width_at_current_cp_start(difference_type cplen) const |
2644 | 98.0k | { |
2645 | 98.0k | if (SCN_UNLIKELY(cplen == 0)) { |
2646 | 608 | return 0; |
2647 | 608 | } |
2648 | | |
2649 | 97.4k | if (cplen == 1) { |
2650 | 77.3k | SCN_EXPECT(m_current != m_end); |
2651 | 77.3k | auto cp = static_cast<char32_t>(*m_current); |
2652 | 77.3k | return static_cast<difference_type>(calculate_valid_text_width(cp)); |
2653 | 77.3k | } |
2654 | | |
2655 | 20.0k | auto r = read_exactly_n_code_units(ranges::subrange{m_current, m_end}, |
2656 | 20.0k | cplen); |
2657 | 20.0k | if (SCN_UNLIKELY(!r)) { |
2658 | 296 | return 0; |
2659 | 296 | } |
2660 | | |
2661 | 19.7k | auto cp_str = std::basic_string<value_type>{m_current, *r}; |
2662 | 19.7k | return static_cast<difference_type>( |
2663 | 19.7k | calculate_text_width(std::basic_string_view<value_type>{cp_str})); |
2664 | 20.0k | } Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>::_get_width_at_current_cp_start(long) const Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >::_get_width_at_current_cp_start(long) const scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>::_get_width_at_current_cp_start(long) const Line | Count | Source | 2644 | 71.9k | { | 2645 | 71.9k | if (SCN_UNLIKELY(cplen == 0)) { | 2646 | 608 | return 0; | 2647 | 608 | } | 2648 | | | 2649 | 71.3k | if (cplen == 1) { | 2650 | 53.1k | SCN_EXPECT(m_current != m_end); | 2651 | 53.1k | auto cp = static_cast<char32_t>(*m_current); | 2652 | 53.1k | return static_cast<difference_type>(calculate_valid_text_width(cp)); | 2653 | 53.1k | } | 2654 | | | 2655 | 18.2k | auto r = read_exactly_n_code_units(ranges::subrange{m_current, m_end}, | 2656 | 18.2k | cplen); | 2657 | 18.2k | if (SCN_UNLIKELY(!r)) { | 2658 | 296 | return 0; | 2659 | 296 | } | 2660 | | | 2661 | 17.9k | auto cp_str = std::basic_string<value_type>{m_current, *r}; | 2662 | 17.9k | return static_cast<difference_type>( | 2663 | 17.9k | calculate_text_width(std::basic_string_view<value_type>{cp_str})); | 2664 | 18.2k | } |
Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> >::_get_width_at_current_cp_start(long) const Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>::_get_width_at_current_cp_start(long) const Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >::_get_width_at_current_cp_start(long) const scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>::_get_width_at_current_cp_start(long) const Line | Count | Source | 2644 | 20.3k | { | 2645 | 20.3k | if (SCN_UNLIKELY(cplen == 0)) { | 2646 | 0 | return 0; | 2647 | 0 | } | 2648 | | | 2649 | 20.3k | if (cplen == 1) { | 2650 | 20.3k | SCN_EXPECT(m_current != m_end); | 2651 | 20.3k | auto cp = static_cast<char32_t>(*m_current); | 2652 | 20.3k | return static_cast<difference_type>(calculate_valid_text_width(cp)); | 2653 | 20.3k | } | 2654 | | | 2655 | 0 | auto r = read_exactly_n_code_units(ranges::subrange{m_current, m_end}, | 2656 | 0 | cplen); | 2657 | 0 | if (SCN_UNLIKELY(!r)) { | 2658 | 0 | return 0; | 2659 | 0 | } | 2660 | | | 2661 | 0 | auto cp_str = std::basic_string<value_type>{m_current, *r}; | 2662 | 0 | return static_cast<difference_type>( | 2663 | 0 | calculate_text_width(std::basic_string_view<value_type>{cp_str})); | 2664 | 0 | } |
Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> >::_get_width_at_current_cp_start(long) const scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> >::_get_width_at_current_cp_start(long) const Line | Count | Source | 2644 | 4.85k | { | 2645 | 4.85k | if (SCN_UNLIKELY(cplen == 0)) { | 2646 | 0 | return 0; | 2647 | 0 | } | 2648 | | | 2649 | 4.85k | if (cplen == 1) { | 2650 | 3.04k | SCN_EXPECT(m_current != m_end); | 2651 | 3.04k | auto cp = static_cast<char32_t>(*m_current); | 2652 | 3.04k | return static_cast<difference_type>(calculate_valid_text_width(cp)); | 2653 | 3.04k | } | 2654 | | | 2655 | 1.80k | auto r = read_exactly_n_code_units(ranges::subrange{m_current, m_end}, | 2656 | 1.80k | cplen); | 2657 | 1.80k | if (SCN_UNLIKELY(!r)) { | 2658 | 0 | return 0; | 2659 | 0 | } | 2660 | | | 2661 | 1.80k | auto cp_str = std::basic_string<value_type>{m_current, *r}; | 2662 | 1.80k | return static_cast<difference_type>( | 2663 | 1.80k | calculate_text_width(std::basic_string_view<value_type>{cp_str})); | 2664 | 1.80k | } |
scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> >::_get_width_at_current_cp_start(long) const Line | Count | Source | 2644 | 874 | { | 2645 | 874 | if (SCN_UNLIKELY(cplen == 0)) { | 2646 | 0 | return 0; | 2647 | 0 | } | 2648 | | | 2649 | 874 | if (cplen == 1) { | 2650 | 874 | SCN_EXPECT(m_current != m_end); | 2651 | 874 | auto cp = static_cast<char32_t>(*m_current); | 2652 | 874 | return static_cast<difference_type>(calculate_valid_text_width(cp)); | 2653 | 874 | } | 2654 | | | 2655 | 0 | auto r = read_exactly_n_code_units(ranges::subrange{m_current, m_end}, | 2656 | 0 | cplen); | 2657 | 0 | if (SCN_UNLIKELY(!r)) { | 2658 | 0 | return 0; | 2659 | 0 | } | 2660 | | | 2661 | 0 | auto cp_str = std::basic_string<value_type>{m_current, *r}; | 2662 | 0 | return static_cast<difference_type>( | 2663 | 0 | calculate_text_width(std::basic_string_view<value_type>{cp_str})); | 2664 | 0 | } |
|
2665 | | |
2666 | | void _increment_current() |
2667 | 156k | { |
2668 | 156k | if (m_multibyte_left == 0) { |
2669 | 98.0k | auto cplen = _get_cp_length_at_current(); |
2670 | 98.0k | m_multibyte_left = cplen - 1; |
2671 | 98.0k | m_count -= _get_width_at_current_cp_start(cplen); |
2672 | 98.0k | } |
2673 | 58.1k | else { |
2674 | 58.1k | --m_multibyte_left; |
2675 | 58.1k | } |
2676 | | |
2677 | 156k | ++m_current; |
2678 | 156k | } Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>::_increment_current() Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >::_increment_current() scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>::_increment_current() Line | Count | Source | 2667 | 126k | { | 2668 | 126k | if (m_multibyte_left == 0) { | 2669 | 71.9k | auto cplen = _get_cp_length_at_current(); | 2670 | 71.9k | m_multibyte_left = cplen - 1; | 2671 | 71.9k | m_count -= _get_width_at_current_cp_start(cplen); | 2672 | 71.9k | } | 2673 | 54.8k | else { | 2674 | 54.8k | --m_multibyte_left; | 2675 | 54.8k | } | 2676 | | | 2677 | 126k | ++m_current; | 2678 | 126k | } |
Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> >::_increment_current() Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>::_increment_current() Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> >::_increment_current() scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>::_increment_current() Line | Count | Source | 2667 | 20.3k | { | 2668 | 20.3k | if (m_multibyte_left == 0) { | 2669 | 20.3k | auto cplen = _get_cp_length_at_current(); | 2670 | 20.3k | m_multibyte_left = cplen - 1; | 2671 | 20.3k | m_count -= _get_width_at_current_cp_start(cplen); | 2672 | 20.3k | } | 2673 | 0 | else { | 2674 | 0 | --m_multibyte_left; | 2675 | 0 | } | 2676 | | | 2677 | 20.3k | ++m_current; | 2678 | 20.3k | } |
Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> >::_increment_current() scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> >::_increment_current() Line | Count | Source | 2667 | 8.09k | { | 2668 | 8.09k | if (m_multibyte_left == 0) { | 2669 | 4.85k | auto cplen = _get_cp_length_at_current(); | 2670 | 4.85k | m_multibyte_left = cplen - 1; | 2671 | 4.85k | m_count -= _get_width_at_current_cp_start(cplen); | 2672 | 4.85k | } | 2673 | 3.24k | else { | 2674 | 3.24k | --m_multibyte_left; | 2675 | 3.24k | } | 2676 | | | 2677 | 8.09k | ++m_current; | 2678 | 8.09k | } |
scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> >::_increment_current() Line | Count | Source | 2667 | 874 | { | 2668 | 874 | if (m_multibyte_left == 0) { | 2669 | 874 | auto cplen = _get_cp_length_at_current(); | 2670 | 874 | m_multibyte_left = cplen - 1; | 2671 | 874 | m_count -= _get_width_at_current_cp_start(cplen); | 2672 | 874 | } | 2673 | 0 | else { | 2674 | 0 | --m_multibyte_left; | 2675 | 0 | } | 2676 | | | 2677 | 874 | ++m_current; | 2678 | 874 | } |
|
2679 | | |
2680 | | void _decrement_current() |
2681 | 0 | { |
2682 | 0 | --m_current; |
2683 | |
|
2684 | 0 | auto cplen = _get_cp_length_at_current(); |
2685 | 0 | if (cplen == 0) { |
2686 | 0 | ++m_multibyte_left; |
2687 | 0 | } |
2688 | 0 | else { |
2689 | 0 | m_count += _get_width_at_current_cp_start(cplen); |
2690 | 0 | m_multibyte_left = cplen - 1; |
2691 | 0 | } |
2692 | 0 | } Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>::_decrement_current() Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> >::_decrement_current() Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>::_decrement_current() Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> >::_decrement_current() Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> >::_decrement_current() Unexecuted instantiation: scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> >::_decrement_current() |
2693 | | |
2694 | | It m_current{}; |
2695 | | S m_end{}; |
2696 | | difference_type m_count{0}; |
2697 | | difference_type m_multibyte_left{0}; |
2698 | | }; |
2699 | | |
2700 | | template <typename I, typename S> |
2701 | | counted_width_iterator(I, S, ranges::iter_difference_t<I>) |
2702 | | -> counted_width_iterator<I, S>; |
2703 | | } // namespace counted_width_iterator_impl |
2704 | | |
2705 | | using counted_width_iterator_impl::counted_width_iterator; |
2706 | | |
2707 | | template <typename View, typename = void> |
2708 | | struct take_width_view_storage; |
2709 | | |
2710 | | template <typename View> |
2711 | | struct take_width_view_storage<View, |
2712 | | std::enable_if_t<ranges::borrowed_range<View>>> { |
2713 | 14.2k | take_width_view_storage(const View& v) : view(v) {}Unexecuted instantiation: scn::v3::impl::take_width_view_storage<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, void>::take_width_view_storage(scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> const&) Unexecuted instantiation: scn::v3::impl::take_width_view_storage<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >, void>::take_width_view_storage(scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> > const&) Unexecuted instantiation: scn::v3::impl::take_width_view_storage<std::__1::basic_string_view<char, std::__1::char_traits<char> >, void>::take_width_view_storage(std::__1::basic_string_view<char, std::__1::char_traits<char> > const&) Unexecuted instantiation: scn::v3::impl::take_width_view_storage<scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >, void>::take_width_view_storage(scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > > const&) scn::v3::impl::take_width_view_storage<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*>, void>::take_width_view_storage(scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> const&) Line | Count | Source | 2713 | 8.06k | take_width_view_storage(const View& v) : view(v) {} |
Unexecuted instantiation: scn::v3::impl::take_width_view_storage<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, void>::take_width_view_storage(scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> const&) Unexecuted instantiation: scn::v3::impl::take_width_view_storage<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >, void>::take_width_view_storage(scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> > const&) Unexecuted instantiation: scn::v3::impl::take_width_view_storage<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> >, void>::take_width_view_storage(std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > const&) Unexecuted instantiation: scn::v3::impl::take_width_view_storage<scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >, void>::take_width_view_storage(scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > > const&) scn::v3::impl::take_width_view_storage<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*>, void>::take_width_view_storage(scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> const&) Line | Count | Source | 2713 | 2.60k | take_width_view_storage(const View& v) : view(v) {} |
scn::v3::impl::take_width_view_storage<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >, void>::take_width_view_storage(scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> > const&) Line | Count | Source | 2713 | 2.58k | take_width_view_storage(const View& v) : view(v) {} |
scn::v3::impl::take_width_view_storage<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >, void>::take_width_view_storage(scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> > const&) Line | Count | Source | 2713 | 1.03k | take_width_view_storage(const View& v) : view(v) {} |
|
2714 | | |
2715 | | const View& get() const |
2716 | 161k | { |
2717 | 161k | return view; |
2718 | 161k | } Unexecuted instantiation: scn::v3::impl::take_width_view_storage<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, void>::get() const Unexecuted instantiation: scn::v3::impl::take_width_view_storage<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >, void>::get() const Unexecuted instantiation: scn::v3::impl::take_width_view_storage<std::__1::basic_string_view<char, std::__1::char_traits<char> >, void>::get() const Unexecuted instantiation: scn::v3::impl::take_width_view_storage<scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >, void>::get() const scn::v3::impl::take_width_view_storage<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*>, void>::get() const Line | Count | Source | 2716 | 113k | { | 2717 | 113k | return view; | 2718 | 113k | } |
Unexecuted instantiation: scn::v3::impl::take_width_view_storage<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, void>::get() const Unexecuted instantiation: scn::v3::impl::take_width_view_storage<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >, void>::get() const Unexecuted instantiation: scn::v3::impl::take_width_view_storage<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> >, void>::get() const Unexecuted instantiation: scn::v3::impl::take_width_view_storage<scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >, void>::get() const scn::v3::impl::take_width_view_storage<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*>, void>::get() const Line | Count | Source | 2716 | 24.0k | { | 2717 | 24.0k | return view; | 2718 | 24.0k | } |
scn::v3::impl::take_width_view_storage<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >, void>::get() const Line | Count | Source | 2716 | 17.9k | { | 2717 | 17.9k | return view; | 2718 | 17.9k | } |
scn::v3::impl::take_width_view_storage<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >, void>::get() const Line | Count | Source | 2716 | 6.36k | { | 2717 | 6.36k | return view; | 2718 | 6.36k | } |
|
2719 | | |
2720 | | View view; |
2721 | | }; |
2722 | | |
2723 | | template <typename View> |
2724 | | struct take_width_view_storage< |
2725 | | View, |
2726 | | std::enable_if_t<!ranges::borrowed_range<View>>> { |
2727 | | take_width_view_storage(const View& v) : view(&v) {} |
2728 | | |
2729 | | const View& get() const |
2730 | | { |
2731 | | return *view; |
2732 | | } |
2733 | | |
2734 | | const View* view; |
2735 | | }; |
2736 | | |
2737 | | template <typename View> |
2738 | | class take_width_view : public ranges::view_interface<take_width_view<View>> { |
2739 | | template <bool IsConst> |
2740 | | class sentinel { |
2741 | | friend class sentinel<!IsConst>; |
2742 | | using Base = std::conditional_t<IsConst, const View, View>; |
2743 | | using CWI = counted_width_iterator<ranges::iterator_t<Base>, |
2744 | | ranges::sentinel_t<Base>>; |
2745 | | using underlying = ranges::sentinel_t<Base>; |
2746 | | |
2747 | | public: |
2748 | | constexpr sentinel() = default; |
2749 | | |
2750 | 95.5k | constexpr explicit sentinel(underlying s) : m_end(SCN_MOVE(s)) {}Unexecuted instantiation: scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true>::sentinel(scn::v3::ranges::default_sentinel_t) Unexecuted instantiation: scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >::sentinel<true>::sentinel(scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true>) Unexecuted instantiation: scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true>::sentinel(char const*) Unexecuted instantiation: scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > > >::sentinel<true>::sentinel(scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true>) scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true>::sentinel(char const*) Line | Count | Source | 2750 | 74.3k | constexpr explicit sentinel(underlying s) : m_end(SCN_MOVE(s)) {} |
Unexecuted instantiation: scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true>::sentinel(scn::v3::ranges::default_sentinel_t) Unexecuted instantiation: scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >::sentinel<true>::sentinel(scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true>) Unexecuted instantiation: scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true>::sentinel(wchar_t const*) Unexecuted instantiation: scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > > >::sentinel<true>::sentinel(scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true>) scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true>::sentinel(wchar_t const*) Line | Count | Source | 2750 | 9.54k | constexpr explicit sentinel(underlying s) : m_end(SCN_MOVE(s)) {} |
scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> > >::sentinel<true>::sentinel(scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true>) Line | Count | Source | 2750 | 9.02k | constexpr explicit sentinel(underlying s) : m_end(SCN_MOVE(s)) {} |
scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> > >::sentinel<true>::sentinel(scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true>) Line | Count | Source | 2750 | 2.70k | constexpr explicit sentinel(underlying s) : m_end(SCN_MOVE(s)) {} |
|
2751 | | |
2752 | | template < |
2753 | | typename S, |
2754 | | std::enable_if_t<std::is_same_v<S, sentinel<!IsConst>>>* = nullptr, |
2755 | | bool C = IsConst, |
2756 | | typename VV = View, |
2757 | | std::enable_if_t<C && std::is_convertible_v<ranges::sentinel_t<VV>, |
2758 | | underlying>>* = nullptr> |
2759 | | constexpr explicit sentinel(S s) : m_end(SCN_MOVE(s.m_end)) |
2760 | | { |
2761 | | } |
2762 | | |
2763 | | constexpr underlying base() const |
2764 | | { |
2765 | | return m_end; |
2766 | | } |
2767 | | |
2768 | | friend constexpr bool operator==(const CWI& y, const sentinel& x) |
2769 | 163k | { |
2770 | 163k | return (y.count() == 0 && y.multibyte_left() == 0) || |
2771 | 163k | y.base() == x.m_end; |
2772 | 163k | } Unexecuted instantiation: scn::v3::impl::operator==(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> const&, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> const&) Unexecuted instantiation: scn::v3::impl::operator==(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > const&, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >::sentinel<true> const&) Unexecuted instantiation: scn::v3::impl::operator==(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> const&, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> const&) Unexecuted instantiation: scn::v3::impl::operator==(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> > const&, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > > >::sentinel<true> const&) scn::v3::impl::operator==(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> const&, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> const&) Line | Count | Source | 2769 | 123k | { | 2770 | 123k | return (y.count() == 0 && y.multibyte_left() == 0) || | 2771 | 123k | y.base() == x.m_end; | 2772 | 123k | } |
Unexecuted instantiation: scn::v3::impl::operator==(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> const&, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> const&) Unexecuted instantiation: scn::v3::impl::operator==(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > const&, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >::sentinel<true> const&) Unexecuted instantiation: scn::v3::impl::operator==(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> const&, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> const&) Unexecuted instantiation: scn::v3::impl::operator==(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> > const&, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > > >::sentinel<true> const&) scn::v3::impl::operator==(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> const&, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> const&) Line | Count | Source | 2769 | 26.5k | { | 2770 | 26.5k | return (y.count() == 0 && y.multibyte_left() == 0) || | 2771 | 26.5k | y.base() == x.m_end; | 2772 | 26.5k | } |
scn::v3::impl::operator==(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> > const&, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> > >::sentinel<true> const&) Line | Count | Source | 2769 | 11.0k | { | 2770 | 11.0k | return (y.count() == 0 && y.multibyte_left() == 0) || | 2771 | 11.0k | y.base() == x.m_end; | 2772 | 11.0k | } |
scn::v3::impl::operator==(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> > const&, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> > >::sentinel<true> const&) Line | Count | Source | 2769 | 2.70k | { | 2770 | 2.70k | return (y.count() == 0 && y.multibyte_left() == 0) || | 2771 | 2.70k | y.base() == x.m_end; | 2772 | 2.70k | } |
|
2773 | | |
2774 | | friend constexpr bool operator==(const sentinel& x, const CWI& y) |
2775 | | { |
2776 | | return y == x; |
2777 | | } |
2778 | | |
2779 | | friend constexpr bool operator!=(const CWI& y, const sentinel& x) |
2780 | 86.5k | { |
2781 | 86.5k | return !(y == x); |
2782 | 86.5k | } Unexecuted instantiation: scn::v3::impl::operator!=(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> const&, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> const&) Unexecuted instantiation: scn::v3::impl::operator!=(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > const&, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >::sentinel<true> const&) Unexecuted instantiation: scn::v3::impl::operator!=(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> const&, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> const&) Unexecuted instantiation: scn::v3::impl::operator!=(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::sentinel<true> > const&, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > > >::sentinel<true> const&) scn::v3::impl::operator!=(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> const&, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> const&) Line | Count | Source | 2780 | 67.2k | { | 2781 | 67.2k | return !(y == x); | 2782 | 67.2k | } |
Unexecuted instantiation: scn::v3::impl::operator!=(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> const&, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> const&) Unexecuted instantiation: scn::v3::impl::operator!=(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::sentinel<true> > const&, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >::sentinel<true> const&) Unexecuted instantiation: scn::v3::impl::operator!=(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> const&, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> const&) Unexecuted instantiation: scn::v3::impl::operator!=(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::sentinel<true> > const&, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > > >::sentinel<true> const&) scn::v3::impl::operator!=(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> const&, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> const&) Line | Count | Source | 2780 | 12.4k | { | 2781 | 12.4k | return !(y == x); | 2782 | 12.4k | } |
scn::v3::impl::operator!=(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::sentinel<true> > const&, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> > >::sentinel<true> const&) Line | Count | Source | 2780 | 5.69k | { | 2781 | 5.69k | return !(y == x); | 2782 | 5.69k | } |
scn::v3::impl::operator!=(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::sentinel<true> > const&, scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> > >::sentinel<true> const&) Line | Count | Source | 2780 | 1.11k | { | 2781 | 1.11k | return !(y == x); | 2782 | 1.11k | } |
|
2783 | | |
2784 | | friend constexpr bool operator!=(const sentinel& x, const CWI& y) |
2785 | | { |
2786 | | return !(y == x); |
2787 | | } |
2788 | | |
2789 | | private: |
2790 | | SCN_NO_UNIQUE_ADDRESS underlying m_end{}; |
2791 | | }; |
2792 | | |
2793 | | public: |
2794 | | using value_type = ranges::range_value_t<View>; |
2795 | | |
2796 | | take_width_view() = default; |
2797 | | |
2798 | | constexpr take_width_view(const View& base, std::ptrdiff_t count) |
2799 | | : m_base(base), m_count(count) |
2800 | 14.2k | { |
2801 | 14.2k | } Unexecuted instantiation: scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::take_width_view(scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> const&, long) Unexecuted instantiation: scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >::take_width_view(scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> > const&, long) Unexecuted instantiation: scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::take_width_view(std::__1::basic_string_view<char, std::__1::char_traits<char> > const&, long) Unexecuted instantiation: scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > > >::take_width_view(scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > > const&, long) scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::take_width_view(scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> const&, long) Line | Count | Source | 2800 | 8.06k | { | 2801 | 8.06k | } |
Unexecuted instantiation: scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::take_width_view(scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> const&, long) Unexecuted instantiation: scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >::take_width_view(scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> > const&, long) Unexecuted instantiation: scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::take_width_view(std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > const&, long) Unexecuted instantiation: scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > > >::take_width_view(scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > > const&, long) scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::take_width_view(scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> const&, long) Line | Count | Source | 2800 | 2.60k | { | 2801 | 2.60k | } |
scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> > >::take_width_view(scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> > const&, long) Line | Count | Source | 2800 | 2.58k | { | 2801 | 2.58k | } |
scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> > >::take_width_view(scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> > const&, long) Line | Count | Source | 2800 | 1.03k | { | 2801 | 1.03k | } |
|
2802 | | |
2803 | | constexpr View base() const |
2804 | | { |
2805 | | return m_base; |
2806 | | } |
2807 | | |
2808 | | constexpr auto begin() const |
2809 | 33.0k | { |
2810 | 33.0k | return counted_width_iterator{m_base.get().begin(), m_base.get().end(), |
2811 | 33.0k | m_count}; |
2812 | 33.0k | } Unexecuted instantiation: scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >::begin() const Unexecuted instantiation: scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::begin() const Unexecuted instantiation: scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > > >::begin() const Unexecuted instantiation: scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::begin() const scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::begin() const Line | Count | Source | 2809 | 19.5k | { | 2810 | 19.5k | return counted_width_iterator{m_base.get().begin(), m_base.get().end(), | 2811 | 19.5k | m_count}; | 2812 | 19.5k | } |
Unexecuted instantiation: scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >::begin() const Unexecuted instantiation: scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::begin() const Unexecuted instantiation: scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > > >::begin() const Unexecuted instantiation: scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::begin() const scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::begin() const Line | Count | Source | 2809 | 7.24k | { | 2810 | 7.24k | return counted_width_iterator{m_base.get().begin(), m_base.get().end(), | 2811 | 7.24k | m_count}; | 2812 | 7.24k | } |
scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> > >::begin() const Line | Count | Source | 2809 | 4.45k | { | 2810 | 4.45k | return counted_width_iterator{m_base.get().begin(), m_base.get().end(), | 2811 | 4.45k | m_count}; | 2812 | 4.45k | } |
scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> > >::begin() const Line | Count | Source | 2809 | 1.83k | { | 2810 | 1.83k | return counted_width_iterator{m_base.get().begin(), m_base.get().end(), | 2811 | 1.83k | m_count}; | 2812 | 1.83k | } |
|
2813 | | |
2814 | | constexpr auto end() const |
2815 | 95.5k | { |
2816 | 95.5k | return sentinel<true>{m_base.get().end()}; |
2817 | 95.5k | } Unexecuted instantiation: scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::end() const Unexecuted instantiation: scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >::end() const Unexecuted instantiation: scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > >::end() const Unexecuted instantiation: scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > > >::end() const scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >::end() const Line | Count | Source | 2815 | 74.3k | { | 2816 | 74.3k | return sentinel<true>{m_base.get().end()}; | 2817 | 74.3k | } |
Unexecuted instantiation: scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >::end() const Unexecuted instantiation: scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >::end() const Unexecuted instantiation: scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >::end() const Unexecuted instantiation: scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > > >::end() const scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >::end() const Line | Count | Source | 2815 | 9.54k | { | 2816 | 9.54k | return sentinel<true>{m_base.get().end()}; | 2817 | 9.54k | } |
scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> > >::end() const Line | Count | Source | 2815 | 9.02k | { | 2816 | 9.02k | return sentinel<true>{m_base.get().end()}; | 2817 | 9.02k | } |
scn::v3::impl::take_width_view<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> > >::end() const Line | Count | Source | 2815 | 2.70k | { | 2816 | 2.70k | return sentinel<true>{m_base.get().end()}; | 2817 | 2.70k | } |
|
2818 | | |
2819 | | private: |
2820 | | take_width_view_storage<View> m_base{}; |
2821 | | std::ptrdiff_t m_count{0}; |
2822 | | }; |
2823 | | |
2824 | | template <typename R> |
2825 | | take_width_view(R&&, std::ptrdiff_t) -> take_width_view<R>; |
2826 | | |
2827 | | struct _take_width_fn { |
2828 | | template <typename R> |
2829 | | constexpr auto operator()(const R& r, std::ptrdiff_t n) const |
2830 | | -> decltype(take_width_view{r, n}) |
2831 | 14.2k | { |
2832 | 14.2k | return take_width_view{r, n}; |
2833 | 14.2k | } Unexecuted instantiation: decltype (scn::v3::impl::take_width_view{{parm#1}, {parm#2}}) scn::v3::impl::_take_width_fn::operator()<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> const&, long) constUnexecuted instantiation: decltype (scn::v3::impl::take_width_view{{parm#1}, {parm#2}}) scn::v3::impl::_take_width_fn::operator()<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >(scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> > const&, long) constUnexecuted instantiation: decltype (scn::v3::impl::take_width_view{{parm#1}, {parm#2}}) scn::v3::impl::_take_width_fn::operator()<std::__1::basic_string_view<char, std::__1::char_traits<char> > >(std::__1::basic_string_view<char, std::__1::char_traits<char> > const&, long) constUnexecuted instantiation: decltype (scn::v3::impl::take_width_view{{parm#1}, {parm#2}}) scn::v3::impl::_take_width_fn::operator()<scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > > >(scn::v3::impl::take_width_view<std::__1::basic_string_view<char, std::__1::char_traits<char> > > const&, long) constdecltype (scn::v3::impl::take_width_view{{parm#1}, {parm#2}}) scn::v3::impl::_take_width_fn::operator()<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >(scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> const&, long) constLine | Count | Source | 2831 | 8.06k | { | 2832 | 8.06k | return take_width_view{r, n}; | 2833 | 8.06k | } |
Unexecuted instantiation: decltype (scn::v3::impl::take_width_view{{parm#1}, {parm#2}}) scn::v3::impl::_take_width_fn::operator()<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> const&, long) constUnexecuted instantiation: decltype (scn::v3::impl::take_width_view{{parm#1}, {parm#2}}) scn::v3::impl::_take_width_fn::operator()<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >(scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> > const&, long) constUnexecuted instantiation: decltype (scn::v3::impl::take_width_view{{parm#1}, {parm#2}}) scn::v3::impl::_take_width_fn::operator()<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >(std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > const&, long) constUnexecuted instantiation: decltype (scn::v3::impl::take_width_view{{parm#1}, {parm#2}}) scn::v3::impl::_take_width_fn::operator()<scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > > >(scn::v3::impl::take_width_view<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > > const&, long) constdecltype (scn::v3::impl::take_width_view{{parm#1}, {parm#2}}) scn::v3::impl::_take_width_fn::operator()<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >(scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> const&, long) constLine | Count | Source | 2831 | 2.60k | { | 2832 | 2.60k | return take_width_view{r, n}; | 2833 | 2.60k | } |
decltype (scn::v3::impl::take_width_view{{parm#1}, {parm#2}}) scn::v3::impl::_take_width_fn::operator()<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> > >(scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> > const&, long) constLine | Count | Source | 2831 | 2.58k | { | 2832 | 2.58k | return take_width_view{r, n}; | 2833 | 2.58k | } |
decltype (scn::v3::impl::take_width_view{{parm#1}, {parm#2}}) scn::v3::impl::_take_width_fn::operator()<scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> > >(scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> > const&, long) constLine | Count | Source | 2831 | 1.03k | { | 2832 | 1.03k | return take_width_view{r, n}; | 2833 | 1.03k | } |
|
2834 | | }; |
2835 | | |
2836 | | inline constexpr _take_width_fn take_width{}; |
2837 | | } // namespace impl |
2838 | | |
2839 | | namespace ranges { |
2840 | | template <typename R> |
2841 | | inline constexpr bool enable_borrowed_range<::scn::impl::take_width_view<R>> = |
2842 | | enable_borrowed_range<R>; |
2843 | | } |
2844 | | |
2845 | | ///////////////////////////////////////////////////////////////// |
2846 | | // contiguous_scan_context |
2847 | | ///////////////////////////////////////////////////////////////// |
2848 | | |
2849 | | namespace impl { |
2850 | | template <typename CharT> |
2851 | | class basic_contiguous_scan_context |
2852 | | : public detail::scan_context_base< |
2853 | | basic_scan_args<basic_scan_context<CharT>>> { |
2854 | | using base = |
2855 | | detail::scan_context_base<basic_scan_args<basic_scan_context<CharT>>>; |
2856 | | |
2857 | | public: |
2858 | | using char_type = CharT; |
2859 | | using buffer_type = detail::basic_scan_buffer<char_type>; |
2860 | | using range_type = ranges::subrange<const char_type*, const char_type*>; |
2861 | | using iterator = const char_type*; |
2862 | | using sentinel = const char_type*; |
2863 | | using parse_context_type = basic_scan_parse_context<char_type>; |
2864 | | |
2865 | | using parent_context_type = basic_scan_context<char_type>; |
2866 | | using args_type = basic_scan_args<parent_context_type>; |
2867 | | using arg_type = basic_scan_arg<parent_context_type>; |
2868 | | |
2869 | | template <typename Range, |
2870 | | std::enable_if_t<ranges::contiguous_range<Range> && |
2871 | | ranges::borrowed_range<Range>>* = nullptr> |
2872 | | constexpr basic_contiguous_scan_context(Range&& r, |
2873 | | args_type a, |
2874 | | detail::locale_ref loc = {}) |
2875 | | : base(SCN_MOVE(a), loc), |
2876 | | m_range(SCN_FWD(r)), |
2877 | | m_current(m_range.begin()) |
2878 | 257k | { |
2879 | 257k | } scn::v3::impl::basic_contiguous_scan_context<char>::basic_contiguous_scan_context<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*>&, (void*)0>(scn::v3::ranges::detail::subrange_::subrange<char const*, char const*>&, scn::v3::basic_scan_args<scn::v3::basic_scan_context<char> >, scn::v3::detail::locale_ref) Line | Count | Source | 2878 | 85.7k | { | 2879 | 85.7k | } |
scn::v3::impl::basic_contiguous_scan_context<wchar_t>::basic_contiguous_scan_context<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*>&, (void*)0>(scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*>&, scn::v3::basic_scan_args<scn::v3::basic_scan_context<wchar_t> >, scn::v3::detail::locale_ref) Line | Count | Source | 2878 | 171k | { | 2879 | 171k | } |
|
2880 | | |
2881 | | constexpr iterator begin() const |
2882 | 352M | { |
2883 | 352M | return m_current; |
2884 | 352M | } scn::v3::impl::basic_contiguous_scan_context<char>::begin() const Line | Count | Source | 2882 | 193k | { | 2883 | 193k | return m_current; | 2884 | 193k | } |
scn::v3::impl::basic_contiguous_scan_context<wchar_t>::begin() const Line | Count | Source | 2882 | 352M | { | 2883 | 352M | return m_current; | 2884 | 352M | } |
|
2885 | | |
2886 | | constexpr sentinel end() const |
2887 | 703M | { |
2888 | 703M | return m_range.end(); |
2889 | 703M | } scn::v3::impl::basic_contiguous_scan_context<char>::end() const Line | Count | Source | 2887 | 154k | { | 2888 | 154k | return m_range.end(); | 2889 | 154k | } |
scn::v3::impl::basic_contiguous_scan_context<wchar_t>::end() const Line | Count | Source | 2887 | 703M | { | 2888 | 703M | return m_range.end(); | 2889 | 703M | } |
|
2890 | | |
2891 | | constexpr auto range() const |
2892 | 343k | { |
2893 | 343k | return ranges::subrange{begin(), end()}; |
2894 | 343k | } scn::v3::impl::basic_contiguous_scan_context<char>::range() const Line | Count | Source | 2892 | 57.5k | { | 2893 | 57.5k | return ranges::subrange{begin(), end()}; | 2894 | 57.5k | } |
scn::v3::impl::basic_contiguous_scan_context<wchar_t>::range() const Line | Count | Source | 2892 | 286k | { | 2893 | 286k | return ranges::subrange{begin(), end()}; | 2894 | 286k | } |
|
2895 | | |
2896 | | constexpr auto underlying_range() const |
2897 | 0 | { |
2898 | 0 | return m_range; |
2899 | 0 | } Unexecuted instantiation: scn::v3::impl::basic_contiguous_scan_context<char>::underlying_range() const Unexecuted instantiation: scn::v3::impl::basic_contiguous_scan_context<wchar_t>::underlying_range() const |
2900 | | |
2901 | | void advance_to(iterator it) |
2902 | 351M | { |
2903 | 351M | SCN_EXPECT(it <= end()); |
2904 | 351M | if constexpr (detail::is_comparable_with_nullptr<iterator>) { |
2905 | 351M | if (it == nullptr) { |
2906 | 0 | it = end(); |
2907 | 0 | } |
2908 | 351M | } |
2909 | 351M | m_current = SCN_MOVE(it); |
2910 | 351M | } scn::v3::impl::basic_contiguous_scan_context<char>::advance_to(char const*) Line | Count | Source | 2902 | 49.3k | { | 2903 | 49.3k | SCN_EXPECT(it <= end()); | 2904 | 49.3k | if constexpr (detail::is_comparable_with_nullptr<iterator>) { | 2905 | 49.3k | if (it == nullptr) { | 2906 | 0 | it = end(); | 2907 | 0 | } | 2908 | 49.3k | } | 2909 | 49.3k | m_current = SCN_MOVE(it); | 2910 | 49.3k | } |
scn::v3::impl::basic_contiguous_scan_context<wchar_t>::advance_to(wchar_t const*) Line | Count | Source | 2902 | 351M | { | 2903 | 351M | SCN_EXPECT(it <= end()); | 2904 | 351M | if constexpr (detail::is_comparable_with_nullptr<iterator>) { | 2905 | 351M | if (it == nullptr) { | 2906 | 0 | it = end(); | 2907 | 0 | } | 2908 | 351M | } | 2909 | 351M | m_current = SCN_MOVE(it); | 2910 | 351M | } |
|
2911 | | |
2912 | | void advance_to(const typename parent_context_type::iterator& it) |
2913 | 0 | { |
2914 | 0 | SCN_EXPECT(it.position() <= m_range.size()); |
2915 | 0 | m_current = m_range.begin() + it.position(); |
2916 | 0 | } Unexecuted instantiation: scn::v3::impl::basic_contiguous_scan_context<char>::advance_to(scn::v3::detail::basic_scan_buffer<char>::forward_iterator const&) Unexecuted instantiation: scn::v3::impl::basic_contiguous_scan_context<wchar_t>::advance_to(scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator const&) |
2917 | | |
2918 | | std::ptrdiff_t begin_position() |
2919 | 0 | { |
2920 | 0 | return ranges::distance(m_range.begin(), begin()); |
2921 | 0 | } Unexecuted instantiation: scn::v3::impl::basic_contiguous_scan_context<char>::begin_position() Unexecuted instantiation: scn::v3::impl::basic_contiguous_scan_context<wchar_t>::begin_position() |
2922 | | |
2923 | | private: |
2924 | | range_type m_range; |
2925 | | iterator m_current; |
2926 | | }; |
2927 | | |
2928 | | struct reader_error_handler { |
2929 | | constexpr void on_error(const char* msg) |
2930 | 39.8k | { |
2931 | 39.8k | SCN_UNLIKELY_ATTR |
2932 | 39.8k | m_msg = msg; |
2933 | 39.8k | } |
2934 | | explicit constexpr operator bool() const |
2935 | 67.8k | { |
2936 | 67.8k | return m_msg == nullptr; |
2937 | 67.8k | } |
2938 | | |
2939 | | const char* m_msg{nullptr}; |
2940 | | }; |
2941 | | |
2942 | | ///////////////////////////////////////////////////////////////// |
2943 | | // General reading support |
2944 | | ///////////////////////////////////////////////////////////////// |
2945 | | |
2946 | | template <typename SourceRange> |
2947 | | auto skip_classic_whitespace(const SourceRange& range, |
2948 | | bool allow_exhaustion = false) |
2949 | | -> eof_expected<ranges::const_iterator_t<SourceRange>> |
2950 | 92.8k | { |
2951 | 92.8k | if (!allow_exhaustion) { |
2952 | 91.6k | auto it = read_while_classic_space(range); |
2953 | 91.6k | if (auto e = eof_check(ranges::subrange{it, range.end()}); |
2954 | 91.6k | SCN_UNLIKELY(!e)) { |
2955 | 142 | return unexpected(e); |
2956 | 142 | } |
2957 | | |
2958 | 91.5k | return it; |
2959 | 91.6k | } |
2960 | | |
2961 | 1.10k | return read_while_classic_space(range); |
2962 | 92.8k | } Unexecuted instantiation: _ZN3scn2v34impl23skip_classic_whitespaceINS1_15take_width_viewINS3_INS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS4_18default_sentinel_tEEEEEEEEENS1_12eof_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEERKSJ_b Unexecuted instantiation: _ZN3scn2v34impl23skip_classic_whitespaceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS4_18default_sentinel_tEEEEEEENS1_12eof_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEERKSI_b Unexecuted instantiation: _ZN3scn2v34impl23skip_classic_whitespaceINS1_15take_width_viewINS3_INSt3__117basic_string_viewIcNS4_11char_traitsIcEEEEEEEEEENS1_12eof_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS4_9add_constIT_E4typeEEEEEEERKSE_b Unexecuted instantiation: _ZN3scn2v34impl23skip_classic_whitespaceINS1_15take_width_viewINSt3__117basic_string_viewIcNS4_11char_traitsIcEEEEEEEENS1_12eof_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS4_9add_constIT_E4typeEEEEEEERKSD_b _ZN3scn2v34impl23skip_classic_whitespaceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcS9_EEEEEENS1_12eof_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEERKSF_b Line | Count | Source | 2950 | 460 | { | 2951 | 460 | if (!allow_exhaustion) { | 2952 | 0 | auto it = read_while_classic_space(range); | 2953 | 0 | if (auto e = eof_check(ranges::subrange{it, range.end()}); | 2954 | 0 | SCN_UNLIKELY(!e)) { | 2955 | 0 | return unexpected(e); | 2956 | 0 | } | 2957 | | | 2958 | 0 | return it; | 2959 | 0 | } | 2960 | | | 2961 | 460 | return read_while_classic_space(range); | 2962 | 460 | } |
_ZN3scn2v34impl23skip_classic_whitespaceINS0_6ranges6detail9subrange_8subrangeIPKcS8_EEEENS1_12eof_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEERKSD_b Line | Count | Source | 2950 | 6.74k | { | 2951 | 6.74k | if (!allow_exhaustion) { | 2952 | 6.59k | auto it = read_while_classic_space(range); | 2953 | 6.59k | if (auto e = eof_check(ranges::subrange{it, range.end()}); | 2954 | 6.59k | SCN_UNLIKELY(!e)) { | 2955 | 0 | return unexpected(e); | 2956 | 0 | } | 2957 | | | 2958 | 6.59k | return it; | 2959 | 6.59k | } | 2960 | | | 2961 | 152 | return read_while_classic_space(range); | 2962 | 6.74k | } |
Unexecuted instantiation: _ZN3scn2v34impl23skip_classic_whitespaceINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEEEENS1_12eof_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEERKSG_b Unexecuted instantiation: _ZN3scn2v34impl23skip_classic_whitespaceINS1_15take_width_viewINS3_INS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS4_18default_sentinel_tEEEEEEEEENS1_12eof_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEERKSJ_b Unexecuted instantiation: _ZN3scn2v34impl23skip_classic_whitespaceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS4_18default_sentinel_tEEEEEEENS1_12eof_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEERKSI_b Unexecuted instantiation: _ZN3scn2v34impl23skip_classic_whitespaceINS1_15take_width_viewINS3_INSt3__117basic_string_viewIwNS4_11char_traitsIwEEEEEEEEEENS1_12eof_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS4_9add_constIT_E4typeEEEEEEERKSE_b Unexecuted instantiation: _ZN3scn2v34impl23skip_classic_whitespaceINS1_15take_width_viewINSt3__117basic_string_viewIwNS4_11char_traitsIwEEEEEEEENS1_12eof_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS4_9add_constIT_E4typeEEEEEEERKSD_b Unexecuted instantiation: _ZN3scn2v34impl23skip_classic_whitespaceINSt3__117basic_string_viewIwNS3_11char_traitsIwEEEEEENS1_12eof_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS3_9add_constIT_E4typeEEEEEEERKSB_b _ZN3scn2v34impl23skip_classic_whitespaceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwS9_EEEEEENS1_12eof_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEERKSF_b Line | Count | Source | 2950 | 86 | { | 2951 | 86 | if (!allow_exhaustion) { | 2952 | 0 | auto it = read_while_classic_space(range); | 2953 | 0 | if (auto e = eof_check(ranges::subrange{it, range.end()}); | 2954 | 0 | SCN_UNLIKELY(!e)) { | 2955 | 0 | return unexpected(e); | 2956 | 0 | } | 2957 | | | 2958 | 0 | return it; | 2959 | 0 | } | 2960 | | | 2961 | 86 | return read_while_classic_space(range); | 2962 | 86 | } |
_ZN3scn2v34impl23skip_classic_whitespaceINS0_6ranges6detail9subrange_8subrangeIPKwS8_EEEENS1_12eof_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEERKSD_b Line | Count | Source | 2950 | 82.8k | { | 2951 | 82.8k | if (!allow_exhaustion) { | 2952 | 82.4k | auto it = read_while_classic_space(range); | 2953 | 82.4k | if (auto e = eof_check(ranges::subrange{it, range.end()}); | 2954 | 82.4k | SCN_UNLIKELY(!e)) { | 2955 | 0 | return unexpected(e); | 2956 | 0 | } | 2957 | | | 2958 | 82.4k | return it; | 2959 | 82.4k | } | 2960 | | | 2961 | 410 | return read_while_classic_space(range); | 2962 | 82.8k | } |
Unexecuted instantiation: _ZN3scn2v34impl23skip_classic_whitespaceINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEEEENS1_12eof_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEERKSG_b _ZN3scn2v34impl23skip_classic_whitespaceINS1_15take_width_viewINS3_INS0_6ranges6detail9subrange_8subrangeIPKcS9_EEEEEEEENS1_12eof_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEERKSG_b Line | Count | Source | 2950 | 1.87k | { | 2951 | 1.87k | if (!allow_exhaustion) { | 2952 | 1.87k | auto it = read_while_classic_space(range); | 2953 | 1.87k | if (auto e = eof_check(ranges::subrange{it, range.end()}); | 2954 | 1.87k | SCN_UNLIKELY(!e)) { | 2955 | 142 | return unexpected(e); | 2956 | 142 | } | 2957 | | | 2958 | 1.73k | return it; | 2959 | 1.87k | } | 2960 | | | 2961 | 0 | return read_while_classic_space(range); | 2962 | 1.87k | } |
_ZN3scn2v34impl23skip_classic_whitespaceINS1_15take_width_viewINS3_INS0_6ranges6detail9subrange_8subrangeIPKwS9_EEEEEEEENS1_12eof_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEERKSG_b Line | Count | Source | 2950 | 794 | { | 2951 | 794 | if (!allow_exhaustion) { | 2952 | 794 | auto it = read_while_classic_space(range); | 2953 | 794 | if (auto e = eof_check(ranges::subrange{it, range.end()}); | 2954 | 794 | SCN_UNLIKELY(!e)) { | 2955 | 0 | return unexpected(e); | 2956 | 0 | } | 2957 | | | 2958 | 794 | return it; | 2959 | 794 | } | 2960 | | | 2961 | 0 | return read_while_classic_space(range); | 2962 | 794 | } |
Unexecuted instantiation: _ZN3scn2v34impl23skip_classic_whitespaceINSt3__117basic_string_viewIcNS3_11char_traitsIcEEEEEENS1_12eof_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRNS3_9add_constIT_E4typeEEEEEEERKSB_b |
2963 | | |
2964 | | template <typename SourceCharT, typename DestCharT> |
2965 | | scan_error transcode_impl(std::basic_string_view<SourceCharT> src, |
2966 | | std::basic_string<DestCharT>& dst) |
2967 | 12.3k | { |
2968 | 12.3k | dst.clear(); |
2969 | 12.3k | transcode_valid_to_string(src, dst); |
2970 | 12.3k | return {}; |
2971 | 12.3k | } scn::v3::scan_error scn::v3::impl::transcode_impl<char, wchar_t>(std::__1::basic_string_view<char, std::__1::char_traits<char> >, std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> >&) Line | Count | Source | 2967 | 1.98k | { | 2968 | 1.98k | dst.clear(); | 2969 | 1.98k | transcode_valid_to_string(src, dst); | 2970 | 1.98k | return {}; | 2971 | 1.98k | } |
scn::v3::scan_error scn::v3::impl::transcode_impl<wchar_t, char>(std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) Line | Count | Source | 2967 | 10.4k | { | 2968 | 10.4k | dst.clear(); | 2969 | 10.4k | transcode_valid_to_string(src, dst); | 2970 | 10.4k | return {}; | 2971 | 10.4k | } |
|
2972 | | |
2973 | | template <typename SourceCharT, typename DestCharT> |
2974 | | scan_error transcode_if_necessary( |
2975 | | const contiguous_range_factory<SourceCharT>& source, |
2976 | | std::basic_string<DestCharT>& dest) |
2977 | | { |
2978 | | if constexpr (std::is_same_v<SourceCharT, DestCharT>) { |
2979 | | dest.assign(source.view()); |
2980 | | } |
2981 | | else { |
2982 | | return transcode_impl(source.view(), dest); |
2983 | | } |
2984 | | |
2985 | | return {}; |
2986 | | } |
2987 | | |
2988 | | template <typename SourceCharT, typename DestCharT> |
2989 | | scan_error transcode_if_necessary( |
2990 | | contiguous_range_factory<SourceCharT>&& source, |
2991 | | std::basic_string<DestCharT>& dest) |
2992 | 876 | { |
2993 | 876 | if constexpr (std::is_same_v<SourceCharT, DestCharT>) { |
2994 | 438 | if (source.stores_allocated_string()) { |
2995 | 438 | dest.assign(SCN_MOVE(source.get_allocated_string())); |
2996 | 438 | } |
2997 | 0 | else { |
2998 | 0 | dest.assign(source.view()); |
2999 | 0 | } |
3000 | 438 | } |
3001 | 438 | else { |
3002 | 438 | return transcode_impl(source.view(), dest); |
3003 | 438 | } |
3004 | | |
3005 | 0 | return {}; |
3006 | 876 | } scn::v3::scan_error scn::v3::impl::transcode_if_necessary<char, char>(scn::v3::impl::contiguous_range_factory<char>&&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) Line | Count | Source | 2992 | 362 | { | 2993 | 362 | if constexpr (std::is_same_v<SourceCharT, DestCharT>) { | 2994 | 362 | if (source.stores_allocated_string()) { | 2995 | 362 | dest.assign(SCN_MOVE(source.get_allocated_string())); | 2996 | 362 | } | 2997 | 0 | else { | 2998 | 0 | dest.assign(source.view()); | 2999 | 0 | } | 3000 | 362 | } | 3001 | 362 | else { | 3002 | 362 | return transcode_impl(source.view(), dest); | 3003 | 362 | } | 3004 | | | 3005 | 362 | return {}; | 3006 | 362 | } |
scn::v3::scan_error scn::v3::impl::transcode_if_necessary<char, wchar_t>(scn::v3::impl::contiguous_range_factory<char>&&, std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> >&) Line | Count | Source | 2992 | 362 | { | 2993 | 362 | if constexpr (std::is_same_v<SourceCharT, DestCharT>) { | 2994 | 362 | if (source.stores_allocated_string()) { | 2995 | 362 | dest.assign(SCN_MOVE(source.get_allocated_string())); | 2996 | 362 | } | 2997 | 362 | else { | 2998 | 362 | dest.assign(source.view()); | 2999 | 362 | } | 3000 | 362 | } | 3001 | 362 | else { | 3002 | 362 | return transcode_impl(source.view(), dest); | 3003 | 362 | } | 3004 | | | 3005 | 0 | return {}; | 3006 | 362 | } |
scn::v3::scan_error scn::v3::impl::transcode_if_necessary<wchar_t, char>(scn::v3::impl::contiguous_range_factory<wchar_t>&&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) Line | Count | Source | 2992 | 76 | { | 2993 | 76 | if constexpr (std::is_same_v<SourceCharT, DestCharT>) { | 2994 | 76 | if (source.stores_allocated_string()) { | 2995 | 76 | dest.assign(SCN_MOVE(source.get_allocated_string())); | 2996 | 76 | } | 2997 | 76 | else { | 2998 | 76 | dest.assign(source.view()); | 2999 | 76 | } | 3000 | 76 | } | 3001 | 76 | else { | 3002 | 76 | return transcode_impl(source.view(), dest); | 3003 | 76 | } | 3004 | | | 3005 | 0 | return {}; | 3006 | 76 | } |
scn::v3::scan_error scn::v3::impl::transcode_if_necessary<wchar_t, wchar_t>(scn::v3::impl::contiguous_range_factory<wchar_t>&&, std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> >&) Line | Count | Source | 2992 | 76 | { | 2993 | 76 | if constexpr (std::is_same_v<SourceCharT, DestCharT>) { | 2994 | 76 | if (source.stores_allocated_string()) { | 2995 | 76 | dest.assign(SCN_MOVE(source.get_allocated_string())); | 2996 | 76 | } | 2997 | 0 | else { | 2998 | 0 | dest.assign(source.view()); | 2999 | 0 | } | 3000 | 76 | } | 3001 | 76 | else { | 3002 | 76 | return transcode_impl(source.view(), dest); | 3003 | 76 | } | 3004 | | | 3005 | 76 | return {}; | 3006 | 76 | } |
|
3007 | | |
3008 | | template <typename SourceCharT, typename DestCharT> |
3009 | | scan_error transcode_if_necessary(string_view_wrapper<SourceCharT> source, |
3010 | | std::basic_string<DestCharT>& dest) |
3011 | 23.9k | { |
3012 | 23.9k | if constexpr (std::is_same_v<SourceCharT, DestCharT>) { |
3013 | 11.9k | dest.assign(source.view()); |
3014 | 11.9k | } |
3015 | 11.9k | else { |
3016 | 11.9k | return transcode_impl(source.view(), dest); |
3017 | 11.9k | } |
3018 | | |
3019 | 0 | return {}; |
3020 | 23.9k | } scn::v3::scan_error scn::v3::impl::transcode_if_necessary<char, char>(scn::v3::impl::string_view_wrapper<char>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) Line | Count | Source | 3011 | 1.62k | { | 3012 | 1.62k | if constexpr (std::is_same_v<SourceCharT, DestCharT>) { | 3013 | 1.62k | dest.assign(source.view()); | 3014 | 1.62k | } | 3015 | 1.62k | else { | 3016 | 1.62k | return transcode_impl(source.view(), dest); | 3017 | 1.62k | } | 3018 | | | 3019 | 1.62k | return {}; | 3020 | 1.62k | } |
scn::v3::scan_error scn::v3::impl::transcode_if_necessary<char, wchar_t>(scn::v3::impl::string_view_wrapper<char>, std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> >&) Line | Count | Source | 3011 | 1.62k | { | 3012 | 1.62k | if constexpr (std::is_same_v<SourceCharT, DestCharT>) { | 3013 | 1.62k | dest.assign(source.view()); | 3014 | 1.62k | } | 3015 | 1.62k | else { | 3016 | 1.62k | return transcode_impl(source.view(), dest); | 3017 | 1.62k | } | 3018 | | | 3019 | 0 | return {}; | 3020 | 1.62k | } |
scn::v3::scan_error scn::v3::impl::transcode_if_necessary<wchar_t, char>(scn::v3::impl::string_view_wrapper<wchar_t>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) Line | Count | Source | 3011 | 10.3k | { | 3012 | 10.3k | if constexpr (std::is_same_v<SourceCharT, DestCharT>) { | 3013 | 10.3k | dest.assign(source.view()); | 3014 | 10.3k | } | 3015 | 10.3k | else { | 3016 | 10.3k | return transcode_impl(source.view(), dest); | 3017 | 10.3k | } | 3018 | | | 3019 | 0 | return {}; | 3020 | 10.3k | } |
scn::v3::scan_error scn::v3::impl::transcode_if_necessary<wchar_t, wchar_t>(scn::v3::impl::string_view_wrapper<wchar_t>, std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> >&) Line | Count | Source | 3011 | 10.3k | { | 3012 | 10.3k | if constexpr (std::is_same_v<SourceCharT, DestCharT>) { | 3013 | 10.3k | dest.assign(source.view()); | 3014 | 10.3k | } | 3015 | 10.3k | else { | 3016 | 10.3k | return transcode_impl(source.view(), dest); | 3017 | 10.3k | } | 3018 | | | 3019 | 10.3k | return {}; | 3020 | 10.3k | } |
|
3021 | | |
3022 | | ///////////////////////////////////////////////////////////////// |
3023 | | // Reader base classes etc. |
3024 | | ///////////////////////////////////////////////////////////////// |
3025 | | |
3026 | | template <typename Derived, typename CharT> |
3027 | | class reader_base { |
3028 | | public: |
3029 | | using char_type = CharT; |
3030 | | |
3031 | | constexpr reader_base() = default; |
3032 | | |
3033 | | bool skip_ws_before_read() const |
3034 | 46.8k | { |
3035 | 46.8k | return true; |
3036 | 46.8k | } scn::v3::impl::reader_base<scn::v3::impl::reader_impl_for_int<char>, char>::skip_ws_before_read() const Line | Count | Source | 3034 | 2.34k | { | 3035 | 2.34k | return true; | 3036 | 2.34k | } |
scn::v3::impl::reader_base<scn::v3::impl::reader_impl_for_float<char>, char>::skip_ws_before_read() const Line | Count | Source | 3034 | 1.18k | { | 3035 | 1.18k | return true; | 3036 | 1.18k | } |
Unexecuted instantiation: scn::v3::impl::reader_base<scn::v3::impl::regex_matches_reader<char>, char>::skip_ws_before_read() const scn::v3::impl::reader_base<scn::v3::impl::reader_impl_for_int<wchar_t>, wchar_t>::skip_ws_before_read() const Line | Count | Source | 3034 | 20.9k | { | 3035 | 20.9k | return true; | 3036 | 20.9k | } |
scn::v3::impl::reader_base<scn::v3::impl::reader_impl_for_float<wchar_t>, wchar_t>::skip_ws_before_read() const Line | Count | Source | 3034 | 10.4k | { | 3035 | 10.4k | return true; | 3036 | 10.4k | } |
Unexecuted instantiation: scn::v3::impl::reader_base<scn::v3::impl::regex_matches_reader<wchar_t>, wchar_t>::skip_ws_before_read() const scn::v3::impl::reader_base<scn::v3::impl::reader_impl_for_bool<char>, char>::skip_ws_before_read() const Line | Count | Source | 3034 | 1.35k | { | 3035 | 1.35k | return true; | 3036 | 1.35k | } |
scn::v3::impl::reader_base<scn::v3::impl::reader_impl_for_bool<wchar_t>, wchar_t>::skip_ws_before_read() const Line | Count | Source | 3034 | 10.5k | { | 3035 | 10.5k | return true; | 3036 | 10.5k | } |
|
3037 | | |
3038 | | scan_error check_specs(const detail::format_specs& specs) |
3039 | 52.8k | { |
3040 | 52.8k | reader_error_handler eh{}; |
3041 | 52.8k | get_derived().check_specs_impl(specs, eh); |
3042 | 52.8k | if (SCN_UNLIKELY(!eh)) { |
3043 | 26.6k | return {scan_error::invalid_format_string, eh.m_msg}; |
3044 | 26.6k | } |
3045 | 26.2k | return {}; |
3046 | 52.8k | } scn::v3::impl::reader_base<scn::v3::impl::reader_impl_for_int<char>, char>::check_specs(scn::v3::detail::format_specs const&) Line | Count | Source | 3039 | 10.2k | { | 3040 | 10.2k | reader_error_handler eh{}; | 3041 | 10.2k | get_derived().check_specs_impl(specs, eh); | 3042 | 10.2k | if (SCN_UNLIKELY(!eh)) { | 3043 | 9.17k | return {scan_error::invalid_format_string, eh.m_msg}; | 3044 | 9.17k | } | 3045 | 1.08k | return {}; | 3046 | 10.2k | } |
scn::v3::impl::reader_base<scn::v3::impl::reader_impl_for_float<char>, char>::check_specs(scn::v3::detail::format_specs const&) Line | Count | Source | 3039 | 5.13k | { | 3040 | 5.13k | reader_error_handler eh{}; | 3041 | 5.13k | get_derived().check_specs_impl(specs, eh); | 3042 | 5.13k | if (SCN_UNLIKELY(!eh)) { | 3043 | 4.57k | return {scan_error::invalid_format_string, eh.m_msg}; | 3044 | 4.57k | } | 3045 | 552 | return {}; | 3046 | 5.13k | } |
scn::v3::impl::reader_base<scn::v3::impl::string_reader<char>, char>::check_specs(scn::v3::detail::format_specs const&) Line | Count | Source | 3039 | 15.2k | { | 3040 | 15.2k | reader_error_handler eh{}; | 3041 | 15.2k | get_derived().check_specs_impl(specs, eh); | 3042 | 15.2k | if (SCN_UNLIKELY(!eh)) { | 3043 | 390 | return {scan_error::invalid_format_string, eh.m_msg}; | 3044 | 390 | } | 3045 | 14.8k | return {}; | 3046 | 15.2k | } |
Unexecuted instantiation: scn::v3::impl::reader_base<scn::v3::impl::regex_matches_reader<char>, char>::check_specs(scn::v3::detail::format_specs const&) scn::v3::impl::reader_base<scn::v3::impl::reader_impl_for_int<wchar_t>, wchar_t>::check_specs(scn::v3::detail::format_specs const&) Line | Count | Source | 3039 | 4.89k | { | 3040 | 4.89k | reader_error_handler eh{}; | 3041 | 4.89k | get_derived().check_specs_impl(specs, eh); | 3042 | 4.89k | if (SCN_UNLIKELY(!eh)) { | 3043 | 3.95k | return {scan_error::invalid_format_string, eh.m_msg}; | 3044 | 3.95k | } | 3045 | 940 | return {}; | 3046 | 4.89k | } |
scn::v3::impl::reader_base<scn::v3::impl::reader_impl_for_float<wchar_t>, wchar_t>::check_specs(scn::v3::detail::format_specs const&) Line | Count | Source | 3039 | 2.44k | { | 3040 | 2.44k | reader_error_handler eh{}; | 3041 | 2.44k | get_derived().check_specs_impl(specs, eh); | 3042 | 2.44k | if (SCN_UNLIKELY(!eh)) { | 3043 | 1.99k | return {scan_error::invalid_format_string, eh.m_msg}; | 3044 | 1.99k | } | 3045 | 452 | return {}; | 3046 | 2.44k | } |
scn::v3::impl::reader_base<scn::v3::impl::string_reader<wchar_t>, wchar_t>::check_specs(scn::v3::detail::format_specs const&) Line | Count | Source | 3039 | 7.26k | { | 3040 | 7.26k | reader_error_handler eh{}; | 3041 | 7.26k | get_derived().check_specs_impl(specs, eh); | 3042 | 7.26k | if (SCN_UNLIKELY(!eh)) { | 3043 | 240 | return {scan_error::invalid_format_string, eh.m_msg}; | 3044 | 240 | } | 3045 | 7.02k | return {}; | 3046 | 7.26k | } |
Unexecuted instantiation: scn::v3::impl::reader_base<scn::v3::impl::regex_matches_reader<wchar_t>, wchar_t>::check_specs(scn::v3::detail::format_specs const&) scn::v3::impl::reader_base<scn::v3::impl::reader_impl_for_bool<char>, char>::check_specs(scn::v3::detail::format_specs const&) Line | Count | Source | 3039 | 5.13k | { | 3040 | 5.13k | reader_error_handler eh{}; | 3041 | 5.13k | get_derived().check_specs_impl(specs, eh); | 3042 | 5.13k | if (SCN_UNLIKELY(!eh)) { | 3043 | 4.40k | return {scan_error::invalid_format_string, eh.m_msg}; | 3044 | 4.40k | } | 3045 | 722 | return {}; | 3046 | 5.13k | } |
scn::v3::impl::reader_base<scn::v3::impl::reader_impl_for_bool<wchar_t>, wchar_t>::check_specs(scn::v3::detail::format_specs const&) Line | Count | Source | 3039 | 2.44k | { | 3040 | 2.44k | reader_error_handler eh{}; | 3041 | 2.44k | get_derived().check_specs_impl(specs, eh); | 3042 | 2.44k | if (SCN_UNLIKELY(!eh)) { | 3043 | 1.90k | return {scan_error::invalid_format_string, eh.m_msg}; | 3044 | 1.90k | } | 3045 | 540 | return {}; | 3046 | 2.44k | } |
|
3047 | | |
3048 | | private: |
3049 | | Derived& get_derived() |
3050 | 52.8k | { |
3051 | 52.8k | return static_cast<Derived&>(*this); |
3052 | 52.8k | } scn::v3::impl::reader_base<scn::v3::impl::reader_impl_for_int<char>, char>::get_derived() Line | Count | Source | 3050 | 10.2k | { | 3051 | 10.2k | return static_cast<Derived&>(*this); | 3052 | 10.2k | } |
scn::v3::impl::reader_base<scn::v3::impl::reader_impl_for_float<char>, char>::get_derived() Line | Count | Source | 3050 | 5.13k | { | 3051 | 5.13k | return static_cast<Derived&>(*this); | 3052 | 5.13k | } |
scn::v3::impl::reader_base<scn::v3::impl::string_reader<char>, char>::get_derived() Line | Count | Source | 3050 | 15.2k | { | 3051 | 15.2k | return static_cast<Derived&>(*this); | 3052 | 15.2k | } |
Unexecuted instantiation: scn::v3::impl::reader_base<scn::v3::impl::regex_matches_reader<char>, char>::get_derived() scn::v3::impl::reader_base<scn::v3::impl::reader_impl_for_int<wchar_t>, wchar_t>::get_derived() Line | Count | Source | 3050 | 4.89k | { | 3051 | 4.89k | return static_cast<Derived&>(*this); | 3052 | 4.89k | } |
scn::v3::impl::reader_base<scn::v3::impl::reader_impl_for_float<wchar_t>, wchar_t>::get_derived() Line | Count | Source | 3050 | 2.44k | { | 3051 | 2.44k | return static_cast<Derived&>(*this); | 3052 | 2.44k | } |
scn::v3::impl::reader_base<scn::v3::impl::string_reader<wchar_t>, wchar_t>::get_derived() Line | Count | Source | 3050 | 7.26k | { | 3051 | 7.26k | return static_cast<Derived&>(*this); | 3052 | 7.26k | } |
Unexecuted instantiation: scn::v3::impl::reader_base<scn::v3::impl::regex_matches_reader<wchar_t>, wchar_t>::get_derived() scn::v3::impl::reader_base<scn::v3::impl::reader_impl_for_bool<char>, char>::get_derived() Line | Count | Source | 3050 | 5.13k | { | 3051 | 5.13k | return static_cast<Derived&>(*this); | 3052 | 5.13k | } |
scn::v3::impl::reader_base<scn::v3::impl::reader_impl_for_bool<wchar_t>, wchar_t>::get_derived() Line | Count | Source | 3050 | 2.44k | { | 3051 | 2.44k | return static_cast<Derived&>(*this); | 3052 | 2.44k | } |
|
3053 | | const Derived& get_derived() const |
3054 | | { |
3055 | | return static_cast<const Derived&>(*this); |
3056 | | } |
3057 | | }; |
3058 | | |
3059 | | template <typename CharT> |
3060 | | class reader_impl_for_monostate { |
3061 | | public: |
3062 | | constexpr reader_impl_for_monostate() = default; |
3063 | | |
3064 | | bool skip_ws_before_read() const |
3065 | 0 | { |
3066 | 0 | return true; |
3067 | 0 | } Unexecuted instantiation: scn::v3::impl::reader_impl_for_monostate<char>::skip_ws_before_read() const Unexecuted instantiation: scn::v3::impl::reader_impl_for_monostate<wchar_t>::skip_ws_before_read() const |
3068 | | |
3069 | | static scan_error check_specs(const detail::format_specs&) |
3070 | 0 | { |
3071 | 0 | SCN_EXPECT(false); |
3072 | 0 | SCN_UNREACHABLE; |
3073 | 0 | } Unexecuted instantiation: scn::v3::impl::reader_impl_for_monostate<char>::check_specs(scn::v3::detail::format_specs const&) Unexecuted instantiation: scn::v3::impl::reader_impl_for_monostate<wchar_t>::check_specs(scn::v3::detail::format_specs const&) |
3074 | | |
3075 | | template <typename Range> |
3076 | | auto read_default(Range, monostate&, detail::locale_ref) |
3077 | | -> scan_expected<ranges::const_iterator_t<Range>> |
3078 | 0 | { |
3079 | 0 | SCN_EXPECT(false); |
3080 | 0 | SCN_UNREACHABLE; |
3081 | 0 | } Unexecuted instantiation: _ZN3scn2v34impl25reader_impl_for_monostateIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RNS0_9monostateENS0_6detail10locale_refE Unexecuted instantiation: _ZN3scn2v34impl25reader_impl_for_monostateIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RNS0_9monostateENS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl25reader_impl_for_monostateIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RNS0_9monostateENS0_6detail10locale_refE Unexecuted instantiation: _ZN3scn2v34impl25reader_impl_for_monostateIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RNS0_9monostateENS9_10locale_refE |
3082 | | |
3083 | | template <typename Range> |
3084 | | auto read_specs(Range, |
3085 | | const detail::format_specs&, |
3086 | | monostate&, |
3087 | | detail::locale_ref) |
3088 | | -> scan_expected<ranges::const_iterator_t<Range>> |
3089 | 0 | { |
3090 | 0 | SCN_EXPECT(false); |
3091 | 0 | SCN_UNREACHABLE; |
3092 | 0 | } Unexecuted instantiation: _ZN3scn2v34impl25reader_impl_for_monostateIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERNS0_9monostateENSN_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl25reader_impl_for_monostateIcE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERNS0_9monostateENSL_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl25reader_impl_for_monostateIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERNS0_9monostateENSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl25reader_impl_for_monostateIcE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERNS0_9monostateENS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl25reader_impl_for_monostateIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERNS0_9monostateENSN_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl25reader_impl_for_monostateIwE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERNS0_9monostateENSL_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl25reader_impl_for_monostateIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERNS0_9monostateENSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl25reader_impl_for_monostateIwE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERNS0_9monostateENS9_10locale_refE |
3093 | | }; |
3094 | | |
3095 | | ///////////////////////////////////////////////////////////////// |
3096 | | // Numeric reader support |
3097 | | ///////////////////////////////////////////////////////////////// |
3098 | | |
3099 | | enum class sign_type { default_sign = -1, minus_sign = 0, plus_sign = 1 }; |
3100 | | |
3101 | | inline constexpr std::array<uint8_t, 256> char_to_int_table = { |
3102 | | 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, |
3103 | | 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, |
3104 | | 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, |
3105 | | 255, 255, 255, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 255, 255, |
3106 | | 255, 255, 255, 255, 255, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, |
3107 | | 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, |
3108 | | 35, 255, 255, 255, 255, 255, 255, 10, 11, 12, 13, 14, 15, 16, 17, |
3109 | | 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, |
3110 | | 33, 34, 35, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, |
3111 | | 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, |
3112 | | 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, |
3113 | | 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, |
3114 | | 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, |
3115 | | 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, |
3116 | | 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, |
3117 | | 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, |
3118 | | 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, |
3119 | | 255}; |
3120 | | |
3121 | | SCN_NODISCARD SCN_FORCE_INLINE constexpr uint8_t char_to_int(char ch) |
3122 | 81.3k | { |
3123 | 81.3k | return char_to_int_table[static_cast<unsigned char>(ch)]; |
3124 | 81.3k | } |
3125 | | SCN_NODISCARD SCN_FORCE_INLINE constexpr uint8_t char_to_int(wchar_t ch) |
3126 | 73.3k | { |
3127 | 73.3k | #if WCHAR_MIN < 0 |
3128 | 73.3k | if (ch >= 0 && ch <= 255) { |
3129 | | #else |
3130 | | if (ch <= 255) { |
3131 | | #endif |
3132 | 73.3k | return char_to_int(static_cast<char>(ch)); |
3133 | 73.3k | } |
3134 | 0 | return 255; |
3135 | 73.3k | } |
3136 | | |
3137 | | template <typename Range> |
3138 | | auto parse_numeric_sign(Range range) |
3139 | | -> eof_expected<std::pair<ranges::const_iterator_t<Range>, sign_type>> |
3140 | 46.4k | { |
3141 | 46.4k | auto r = read_one_of_code_unit(range, "+-"); |
3142 | 46.4k | if (!r) { |
3143 | 46.4k | if (r.error() == parse_error::error) { |
3144 | 46.4k | return std::pair{range.begin(), sign_type::default_sign}; |
3145 | 46.4k | } |
3146 | 0 | return unexpected(eof_error::eof); |
3147 | 46.4k | } |
3148 | | |
3149 | 0 | auto& it = *r; |
3150 | 0 | if (*range.begin() == '-') { |
3151 | 0 | return std::pair{it, sign_type::minus_sign}; |
3152 | 0 | } |
3153 | 0 | return std::pair{it, sign_type::plus_sign}; |
3154 | 0 | } Unexecuted instantiation: _ZN3scn2v34impl18parse_numeric_signINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS4_18default_sentinel_tEEEEEEENS1_12eof_expectedINSt3__14pairIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSG_9add_constIT_E4typeEEEEENS1_9sign_typeEEEEESJ_ Unexecuted instantiation: _ZN3scn2v34impl18parse_numeric_signINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEEEENS1_12eof_expectedINSt3__14pairIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSE_9add_constIT_E4typeEEEEENS1_9sign_typeEEEEESH_ _ZN3scn2v34impl18parse_numeric_signINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcS9_EEEEEENS1_12eof_expectedINSt3__14pairIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSD_9add_constIT_E4typeEEEEENS1_9sign_typeEEEEESG_ Line | Count | Source | 3140 | 1.08k | { | 3141 | 1.08k | auto r = read_one_of_code_unit(range, "+-"); | 3142 | 1.08k | if (!r) { | 3143 | 1.08k | if (r.error() == parse_error::error) { | 3144 | 1.08k | return std::pair{range.begin(), sign_type::default_sign}; | 3145 | 1.08k | } | 3146 | 0 | return unexpected(eof_error::eof); | 3147 | 1.08k | } | 3148 | | | 3149 | 0 | auto& it = *r; | 3150 | 0 | if (*range.begin() == '-') { | 3151 | 0 | return std::pair{it, sign_type::minus_sign}; | 3152 | 0 | } | 3153 | 0 | return std::pair{it, sign_type::plus_sign}; | 3154 | 0 | } |
_ZN3scn2v34impl18parse_numeric_signINS0_6ranges6detail9subrange_8subrangeIPKcS8_EEEENS1_12eof_expectedINSt3__14pairIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSB_9add_constIT_E4typeEEEEENS1_9sign_typeEEEEESE_ Line | Count | Source | 3140 | 3.50k | { | 3141 | 3.50k | auto r = read_one_of_code_unit(range, "+-"); | 3142 | 3.50k | if (!r) { | 3143 | 3.50k | if (r.error() == parse_error::error) { | 3144 | 3.50k | return std::pair{range.begin(), sign_type::default_sign}; | 3145 | 3.50k | } | 3146 | 0 | return unexpected(eof_error::eof); | 3147 | 3.50k | } | 3148 | | | 3149 | 0 | auto& it = *r; | 3150 | 0 | if (*range.begin() == '-') { | 3151 | 0 | return std::pair{it, sign_type::minus_sign}; | 3152 | 0 | } | 3153 | 0 | return std::pair{it, sign_type::plus_sign}; | 3154 | 0 | } |
Unexecuted instantiation: _ZN3scn2v34impl18parse_numeric_signINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEENS1_15take_width_viewINS6_ISC_SD_EEE8sentinelILb1EEEEEEENS1_12eof_expectedINSt3__14pairIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSM_9add_constIT_E4typeEEEEENS1_9sign_typeEEEEESP_ Unexecuted instantiation: _ZN3scn2v34impl18parse_numeric_signINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSA_EENS1_15take_width_viewINS6_ISA_SA_EEE8sentinelILb1EEEEEEENS1_12eof_expectedINSt3__14pairIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSJ_9add_constIT_E4typeEEEEENS1_9sign_typeEEEEESM_ Unexecuted instantiation: _ZN3scn2v34impl18parse_numeric_signINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS4_18default_sentinel_tEEEEEEENS1_12eof_expectedINSt3__14pairIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSG_9add_constIT_E4typeEEEEENS1_9sign_typeEEEEESJ_ Unexecuted instantiation: _ZN3scn2v34impl18parse_numeric_signINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEEEENS1_12eof_expectedINSt3__14pairIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSE_9add_constIT_E4typeEEEEENS1_9sign_typeEEEEESH_ _ZN3scn2v34impl18parse_numeric_signINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwS9_EEEEEENS1_12eof_expectedINSt3__14pairIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSD_9add_constIT_E4typeEEEEENS1_9sign_typeEEEEESG_ Line | Count | Source | 3140 | 508 | { | 3141 | 508 | auto r = read_one_of_code_unit(range, "+-"); | 3142 | 508 | if (!r) { | 3143 | 508 | if (r.error() == parse_error::error) { | 3144 | 508 | return std::pair{range.begin(), sign_type::default_sign}; | 3145 | 508 | } | 3146 | 0 | return unexpected(eof_error::eof); | 3147 | 508 | } | 3148 | | | 3149 | 0 | auto& it = *r; | 3150 | 0 | if (*range.begin() == '-') { | 3151 | 0 | return std::pair{it, sign_type::minus_sign}; | 3152 | 0 | } | 3153 | 0 | return std::pair{it, sign_type::plus_sign}; | 3154 | 0 | } |
_ZN3scn2v34impl18parse_numeric_signINS0_6ranges6detail9subrange_8subrangeIPKwS8_EEEENS1_12eof_expectedINSt3__14pairIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSB_9add_constIT_E4typeEEEEENS1_9sign_typeEEEEESE_ Line | Count | Source | 3140 | 41.3k | { | 3141 | 41.3k | auto r = read_one_of_code_unit(range, "+-"); | 3142 | 41.3k | if (!r) { | 3143 | 41.3k | if (r.error() == parse_error::error) { | 3144 | 41.3k | return std::pair{range.begin(), sign_type::default_sign}; | 3145 | 41.3k | } | 3146 | 0 | return unexpected(eof_error::eof); | 3147 | 41.3k | } | 3148 | | | 3149 | 0 | auto& it = *r; | 3150 | 0 | if (*range.begin() == '-') { | 3151 | 0 | return std::pair{it, sign_type::minus_sign}; | 3152 | 0 | } | 3153 | 0 | return std::pair{it, sign_type::plus_sign}; | 3154 | 0 | } |
Unexecuted instantiation: _ZN3scn2v34impl18parse_numeric_signINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEENS1_15take_width_viewINS6_ISC_SD_EEE8sentinelILb1EEEEEEENS1_12eof_expectedINSt3__14pairIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSM_9add_constIT_E4typeEEEEENS1_9sign_typeEEEEESP_ Unexecuted instantiation: _ZN3scn2v34impl18parse_numeric_signINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSA_EENS1_15take_width_viewINS6_ISA_SA_EEE8sentinelILb1EEEEEEENS1_12eof_expectedINSt3__14pairIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSJ_9add_constIT_E4typeEEEEENS1_9sign_typeEEEEESM_ |
3155 | | |
3156 | | inline void transform_thsep_indices(std::string& indices, |
3157 | | std::ptrdiff_t last_thsep_index) |
3158 | 0 | { |
3159 | 0 | for (auto thsep_it = indices.rbegin(); thsep_it != indices.rend(); |
3160 | 0 | ++thsep_it) { |
3161 | 0 | const auto tmp = *thsep_it; |
3162 | 0 | *thsep_it = static_cast<char>(last_thsep_index - tmp - 1); |
3163 | 0 | last_thsep_index = static_cast<std::ptrdiff_t>(tmp); |
3164 | 0 | } |
3165 | 0 | indices.insert(indices.begin(), static_cast<char>(last_thsep_index)); |
3166 | 0 | } |
3167 | | |
3168 | | template <typename Range> |
3169 | | bool check_thsep_grouping_impl(Range range, |
3170 | | std::string& thsep_indices, |
3171 | | std::string_view grouping) |
3172 | 0 | { |
3173 | 0 | transform_thsep_indices(thsep_indices, |
3174 | 0 | ranges::distance(range.begin(), range.end())); |
3175 | |
|
3176 | 0 | auto thsep_it = thsep_indices.rbegin(); |
3177 | 0 | for (auto grouping_it = grouping.begin(); |
3178 | 0 | grouping_it != grouping.end() && thsep_it != thsep_indices.rend() - 1; |
3179 | 0 | ++grouping_it, (void)++thsep_it) { |
3180 | 0 | if (*thsep_it != *grouping_it) { |
3181 | 0 | return false; |
3182 | 0 | } |
3183 | 0 | } |
3184 | | |
3185 | 0 | SCN_CLANG_PUSH |
3186 | | // false positive |
3187 | 0 | SCN_CLANG_IGNORE("-Wzero-as-null-pointer-constant") |
3188 | | |
3189 | 0 | for (; thsep_it < thsep_indices.rend() - 1; ++thsep_it) { |
3190 | 0 | if (*thsep_it != grouping.back()) { |
3191 | 0 | return false; |
3192 | 0 | } |
3193 | 0 | } |
3194 | | |
3195 | 0 | if (thsep_it == thsep_indices.rend() - 1) { |
3196 | 0 | if (*thsep_it > grouping.back()) { |
3197 | 0 | return false; |
3198 | 0 | } |
3199 | 0 | } |
3200 | | |
3201 | 0 | SCN_CLANG_POP |
3202 | | |
3203 | 0 | return true; |
3204 | 0 | } Unexecuted instantiation: bool scn::v3::impl::check_thsep_grouping_impl<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, std::__1::basic_string_view<char, std::__1::char_traits<char> >) Unexecuted instantiation: bool scn::v3::impl::check_thsep_grouping_impl<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::detail::basic_scan_buffer<char>::forward_iterator> >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::detail::basic_scan_buffer<char>::forward_iterator>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, std::__1::basic_string_view<char, std::__1::char_traits<char> >) Unexecuted instantiation: bool scn::v3::impl::check_thsep_grouping_impl<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> > >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, std::__1::basic_string_view<char, std::__1::char_traits<char> >) Unexecuted instantiation: bool scn::v3::impl::check_thsep_grouping_impl<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >(scn::v3::ranges::detail::subrange_::subrange<char const*, char const*>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, std::__1::basic_string_view<char, std::__1::char_traits<char> >) Unexecuted instantiation: bool scn::v3::impl::check_thsep_grouping_impl<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, std::__1::basic_string_view<char, std::__1::char_traits<char> >) Unexecuted instantiation: bool scn::v3::impl::check_thsep_grouping_impl<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, std::__1::basic_string_view<char, std::__1::char_traits<char> >) Unexecuted instantiation: bool scn::v3::impl::check_thsep_grouping_impl<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> > >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, std::__1::basic_string_view<char, std::__1::char_traits<char> >) Unexecuted instantiation: bool scn::v3::impl::check_thsep_grouping_impl<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >(scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, std::__1::basic_string_view<char, std::__1::char_traits<char> >) |
3205 | | |
3206 | | template <typename Range> |
3207 | | scan_error check_thsep_grouping(Range range, |
3208 | | std::string thsep_indices, |
3209 | | std::string_view grouping) |
3210 | 0 | { |
3211 | 0 | SCN_EXPECT(!thsep_indices.empty()); |
3212 | | |
3213 | 0 | if (!check_thsep_grouping_impl(range, thsep_indices, grouping)) { |
3214 | 0 | SCN_UNLIKELY_ATTR |
3215 | 0 | return {scan_error::invalid_scanned_value, |
3216 | 0 | "Invalid thousands separator grouping"}; |
3217 | 0 | } |
3218 | | |
3219 | 0 | return {}; |
3220 | 0 | } Unexecuted instantiation: scn::v3::scan_error scn::v3::impl::check_thsep_grouping<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string_view<char, std::__1::char_traits<char> >) Unexecuted instantiation: scn::v3::scan_error scn::v3::impl::check_thsep_grouping<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::detail::basic_scan_buffer<char>::forward_iterator> >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::detail::basic_scan_buffer<char>::forward_iterator>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string_view<char, std::__1::char_traits<char> >) Unexecuted instantiation: scn::v3::scan_error scn::v3::impl::check_thsep_grouping<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> > >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string_view<char, std::__1::char_traits<char> >) Unexecuted instantiation: scn::v3::scan_error scn::v3::impl::check_thsep_grouping<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >(scn::v3::ranges::detail::subrange_::subrange<char const*, char const*>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string_view<char, std::__1::char_traits<char> >) Unexecuted instantiation: scn::v3::scan_error scn::v3::impl::check_thsep_grouping<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string_view<char, std::__1::char_traits<char> >) Unexecuted instantiation: scn::v3::scan_error scn::v3::impl::check_thsep_grouping<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string_view<char, std::__1::char_traits<char> >) Unexecuted instantiation: scn::v3::scan_error scn::v3::impl::check_thsep_grouping<scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> > >(scn::v3::ranges::detail::subrange_::subrange<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string_view<char, std::__1::char_traits<char> >) Unexecuted instantiation: scn::v3::scan_error scn::v3::impl::check_thsep_grouping<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >(scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string_view<char, std::__1::char_traits<char> >) |
3221 | | |
3222 | | template <typename CharT> |
3223 | | class numeric_reader { |
3224 | | public: |
3225 | | contiguous_range_factory<CharT> m_buffer{}; |
3226 | | }; |
3227 | | |
3228 | | ///////////////////////////////////////////////////////////////// |
3229 | | // Integer reader |
3230 | | ///////////////////////////////////////////////////////////////// |
3231 | | |
3232 | | template <typename Iterator> |
3233 | | struct parse_integer_prefix_result { |
3234 | | SCN_NO_UNIQUE_ADDRESS Iterator iterator; |
3235 | | int parsed_base{0}; |
3236 | | sign_type sign{sign_type::default_sign}; |
3237 | | bool is_zero{false}; |
3238 | | }; |
3239 | | |
3240 | | template <typename Range> |
3241 | | auto parse_integer_bin_base_prefix(Range range) |
3242 | | -> parse_expected<ranges::const_iterator_t<Range>> |
3243 | 108 | { |
3244 | 108 | return read_matching_string_classic_nocase(range, "0b"); |
3245 | 108 | } Unexecuted instantiation: _ZN3scn2v34impl29parse_integer_bin_base_prefixINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEENS1_15take_width_viewINS6_ISC_SD_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_ Unexecuted instantiation: _ZN3scn2v34impl29parse_integer_bin_base_prefixINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_ _ZN3scn2v34impl29parse_integer_bin_base_prefixINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSA_EENS1_15take_width_viewINS6_ISA_SA_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_ Line | Count | Source | 3243 | 34 | { | 3244 | 34 | return read_matching_string_classic_nocase(range, "0b"); | 3245 | 34 | } |
_ZN3scn2v34impl29parse_integer_bin_base_prefixINS0_6ranges6detail9subrange_8subrangeIPKcS8_EEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESD_ Line | Count | Source | 3243 | 18 | { | 3244 | 18 | return read_matching_string_classic_nocase(range, "0b"); | 3245 | 18 | } |
Unexecuted instantiation: _ZN3scn2v34impl29parse_integer_bin_base_prefixINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEENS1_15take_width_viewINS6_ISC_SD_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_ Unexecuted instantiation: _ZN3scn2v34impl29parse_integer_bin_base_prefixINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_ _ZN3scn2v34impl29parse_integer_bin_base_prefixINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSA_EENS1_15take_width_viewINS6_ISA_SA_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_ Line | Count | Source | 3243 | 28 | { | 3244 | 28 | return read_matching_string_classic_nocase(range, "0b"); | 3245 | 28 | } |
_ZN3scn2v34impl29parse_integer_bin_base_prefixINS0_6ranges6detail9subrange_8subrangeIPKwS8_EEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESD_ Line | Count | Source | 3243 | 28 | { | 3244 | 28 | return read_matching_string_classic_nocase(range, "0b"); | 3245 | 28 | } |
|
3246 | | |
3247 | | template <typename Range> |
3248 | | auto parse_integer_hex_base_prefix(Range range) |
3249 | | -> parse_expected<ranges::const_iterator_t<Range>> |
3250 | 11.6k | { |
3251 | 11.6k | return read_matching_string_classic_nocase(range, "0x"); |
3252 | 11.6k | } Unexecuted instantiation: _ZN3scn2v34impl29parse_integer_hex_base_prefixINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEENS1_15take_width_viewINS6_ISC_SD_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_ Unexecuted instantiation: _ZN3scn2v34impl29parse_integer_hex_base_prefixINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_ _ZN3scn2v34impl29parse_integer_hex_base_prefixINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSA_EENS1_15take_width_viewINS6_ISA_SA_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_ Line | Count | Source | 3250 | 278 | { | 3251 | 278 | return read_matching_string_classic_nocase(range, "0x"); | 3252 | 278 | } |
_ZN3scn2v34impl29parse_integer_hex_base_prefixINS0_6ranges6detail9subrange_8subrangeIPKcS8_EEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESD_ Line | Count | Source | 3250 | 870 | { | 3251 | 870 | return read_matching_string_classic_nocase(range, "0x"); | 3252 | 870 | } |
Unexecuted instantiation: _ZN3scn2v34impl29parse_integer_hex_base_prefixINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEENS1_15take_width_viewINS6_ISC_SD_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_ Unexecuted instantiation: _ZN3scn2v34impl29parse_integer_hex_base_prefixINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_ _ZN3scn2v34impl29parse_integer_hex_base_prefixINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSA_EENS1_15take_width_viewINS6_ISA_SA_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_ Line | Count | Source | 3250 | 134 | { | 3251 | 134 | return read_matching_string_classic_nocase(range, "0x"); | 3252 | 134 | } |
_ZN3scn2v34impl29parse_integer_hex_base_prefixINS0_6ranges6detail9subrange_8subrangeIPKwS8_EEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESD_ Line | Count | Source | 3250 | 10.3k | { | 3251 | 10.3k | return read_matching_string_classic_nocase(range, "0x"); | 3252 | 10.3k | } |
|
3253 | | |
3254 | | template <typename Range> |
3255 | | auto parse_integer_oct_base_prefix(Range range, bool& zero_parsed) |
3256 | | -> parse_expected<ranges::const_iterator_t<Range>> |
3257 | 136 | { |
3258 | 136 | if (auto r = read_matching_string_classic_nocase(range, "0o")) { |
3259 | 0 | return *r; |
3260 | 0 | } |
3261 | | |
3262 | 136 | if (auto r = read_matching_code_unit(range, '0')) { |
3263 | 0 | zero_parsed = true; |
3264 | 0 | return *r; |
3265 | 0 | } |
3266 | | |
3267 | 136 | return unexpected(parse_error::error); |
3268 | 136 | } Unexecuted instantiation: _ZN3scn2v34impl29parse_integer_oct_base_prefixINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEENS1_15take_width_viewINS6_ISC_SD_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_Rb Unexecuted instantiation: _ZN3scn2v34impl29parse_integer_oct_base_prefixINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_Rb _ZN3scn2v34impl29parse_integer_oct_base_prefixINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSA_EENS1_15take_width_viewINS6_ISA_SA_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_Rb Line | Count | Source | 3257 | 34 | { | 3258 | 34 | if (auto r = read_matching_string_classic_nocase(range, "0o")) { | 3259 | 0 | return *r; | 3260 | 0 | } | 3261 | | | 3262 | 34 | if (auto r = read_matching_code_unit(range, '0')) { | 3263 | 0 | zero_parsed = true; | 3264 | 0 | return *r; | 3265 | 0 | } | 3266 | | | 3267 | 34 | return unexpected(parse_error::error); | 3268 | 34 | } |
_ZN3scn2v34impl29parse_integer_oct_base_prefixINS0_6ranges6detail9subrange_8subrangeIPKcS8_EEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESD_Rb Line | Count | Source | 3257 | 42 | { | 3258 | 42 | if (auto r = read_matching_string_classic_nocase(range, "0o")) { | 3259 | 0 | return *r; | 3260 | 0 | } | 3261 | | | 3262 | 42 | if (auto r = read_matching_code_unit(range, '0')) { | 3263 | 0 | zero_parsed = true; | 3264 | 0 | return *r; | 3265 | 0 | } | 3266 | | | 3267 | 42 | return unexpected(parse_error::error); | 3268 | 42 | } |
Unexecuted instantiation: _ZN3scn2v34impl29parse_integer_oct_base_prefixINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEENS1_15take_width_viewINS6_ISC_SD_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_Rb Unexecuted instantiation: _ZN3scn2v34impl29parse_integer_oct_base_prefixINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_Rb _ZN3scn2v34impl29parse_integer_oct_base_prefixINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSA_EENS1_15take_width_viewINS6_ISA_SA_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_Rb Line | Count | Source | 3257 | 34 | { | 3258 | 34 | if (auto r = read_matching_string_classic_nocase(range, "0o")) { | 3259 | 0 | return *r; | 3260 | 0 | } | 3261 | | | 3262 | 34 | if (auto r = read_matching_code_unit(range, '0')) { | 3263 | 0 | zero_parsed = true; | 3264 | 0 | return *r; | 3265 | 0 | } | 3266 | | | 3267 | 34 | return unexpected(parse_error::error); | 3268 | 34 | } |
_ZN3scn2v34impl29parse_integer_oct_base_prefixINS0_6ranges6detail9subrange_8subrangeIPKwS8_EEEENS1_14parse_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESD_Rb Line | Count | Source | 3257 | 26 | { | 3258 | 26 | if (auto r = read_matching_string_classic_nocase(range, "0o")) { | 3259 | 0 | return *r; | 3260 | 0 | } | 3261 | | | 3262 | 26 | if (auto r = read_matching_code_unit(range, '0')) { | 3263 | 0 | zero_parsed = true; | 3264 | 0 | return *r; | 3265 | 0 | } | 3266 | | | 3267 | 26 | return unexpected(parse_error::error); | 3268 | 26 | } |
|
3269 | | |
3270 | | template <typename Range> |
3271 | | auto parse_integer_base_prefix_for_detection(Range range) |
3272 | | -> std::tuple<ranges::const_iterator_t<Range>, int, bool> |
3273 | 70 | { |
3274 | 70 | if (auto r = parse_integer_hex_base_prefix(range)) { |
3275 | 0 | return {*r, 16, false}; |
3276 | 0 | } |
3277 | 70 | if (auto r = parse_integer_bin_base_prefix(range)) { |
3278 | 0 | return {*r, 2, false}; |
3279 | 0 | } |
3280 | 70 | { |
3281 | 70 | bool zero_parsed{false}; |
3282 | 70 | if (auto r = parse_integer_oct_base_prefix(range, zero_parsed)) { |
3283 | 0 | return {*r, 8, zero_parsed}; |
3284 | 0 | } |
3285 | 70 | } |
3286 | 70 | return {range.begin(), 10, false}; |
3287 | 70 | } Unexecuted instantiation: _ZN3scn2v34impl39parse_integer_base_prefix_for_detectionINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEENS1_15take_width_viewINS6_ISC_SD_EEE8sentinelILb1EEEEEEENSt3__15tupleIJDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSL_9add_constIT_E4typeEEEEEibEEESO_ Unexecuted instantiation: _ZN3scn2v34impl39parse_integer_base_prefix_for_detectionINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEEEENSt3__15tupleIJDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSD_9add_constIT_E4typeEEEEEibEEESG_ _ZN3scn2v34impl39parse_integer_base_prefix_for_detectionINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSA_EENS1_15take_width_viewINS6_ISA_SA_EEE8sentinelILb1EEEEEEENSt3__15tupleIJDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSI_9add_constIT_E4typeEEEEEibEEESL_ Line | Count | Source | 3273 | 20 | { | 3274 | 20 | if (auto r = parse_integer_hex_base_prefix(range)) { | 3275 | 0 | return {*r, 16, false}; | 3276 | 0 | } | 3277 | 20 | if (auto r = parse_integer_bin_base_prefix(range)) { | 3278 | 0 | return {*r, 2, false}; | 3279 | 0 | } | 3280 | 20 | { | 3281 | 20 | bool zero_parsed{false}; | 3282 | 20 | if (auto r = parse_integer_oct_base_prefix(range, zero_parsed)) { | 3283 | 0 | return {*r, 8, zero_parsed}; | 3284 | 0 | } | 3285 | 20 | } | 3286 | 20 | return {range.begin(), 10, false}; | 3287 | 20 | } |
_ZN3scn2v34impl39parse_integer_base_prefix_for_detectionINS0_6ranges6detail9subrange_8subrangeIPKcS8_EEEENSt3__15tupleIJDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSA_9add_constIT_E4typeEEEEEibEEESD_ Line | Count | Source | 3273 | 12 | { | 3274 | 12 | if (auto r = parse_integer_hex_base_prefix(range)) { | 3275 | 0 | return {*r, 16, false}; | 3276 | 0 | } | 3277 | 12 | if (auto r = parse_integer_bin_base_prefix(range)) { | 3278 | 0 | return {*r, 2, false}; | 3279 | 0 | } | 3280 | 12 | { | 3281 | 12 | bool zero_parsed{false}; | 3282 | 12 | if (auto r = parse_integer_oct_base_prefix(range, zero_parsed)) { | 3283 | 0 | return {*r, 8, zero_parsed}; | 3284 | 0 | } | 3285 | 12 | } | 3286 | 12 | return {range.begin(), 10, false}; | 3287 | 12 | } |
Unexecuted instantiation: _ZN3scn2v34impl39parse_integer_base_prefix_for_detectionINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEENS1_15take_width_viewINS6_ISC_SD_EEE8sentinelILb1EEEEEEENSt3__15tupleIJDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSL_9add_constIT_E4typeEEEEEibEEESO_ Unexecuted instantiation: _ZN3scn2v34impl39parse_integer_base_prefix_for_detectionINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEEEENSt3__15tupleIJDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSD_9add_constIT_E4typeEEEEEibEEESG_ _ZN3scn2v34impl39parse_integer_base_prefix_for_detectionINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSA_EENS1_15take_width_viewINS6_ISA_SA_EEE8sentinelILb1EEEEEEENSt3__15tupleIJDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSI_9add_constIT_E4typeEEEEEibEEESL_ Line | Count | Source | 3273 | 22 | { | 3274 | 22 | if (auto r = parse_integer_hex_base_prefix(range)) { | 3275 | 0 | return {*r, 16, false}; | 3276 | 0 | } | 3277 | 22 | if (auto r = parse_integer_bin_base_prefix(range)) { | 3278 | 0 | return {*r, 2, false}; | 3279 | 0 | } | 3280 | 22 | { | 3281 | 22 | bool zero_parsed{false}; | 3282 | 22 | if (auto r = parse_integer_oct_base_prefix(range, zero_parsed)) { | 3283 | 0 | return {*r, 8, zero_parsed}; | 3284 | 0 | } | 3285 | 22 | } | 3286 | 22 | return {range.begin(), 10, false}; | 3287 | 22 | } |
_ZN3scn2v34impl39parse_integer_base_prefix_for_detectionINS0_6ranges6detail9subrange_8subrangeIPKwS8_EEEENSt3__15tupleIJDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSA_9add_constIT_E4typeEEEEEibEEESD_ Line | Count | Source | 3273 | 16 | { | 3274 | 16 | if (auto r = parse_integer_hex_base_prefix(range)) { | 3275 | 0 | return {*r, 16, false}; | 3276 | 0 | } | 3277 | 16 | if (auto r = parse_integer_bin_base_prefix(range)) { | 3278 | 0 | return {*r, 2, false}; | 3279 | 0 | } | 3280 | 16 | { | 3281 | 16 | bool zero_parsed{false}; | 3282 | 16 | if (auto r = parse_integer_oct_base_prefix(range, zero_parsed)) { | 3283 | 0 | return {*r, 8, zero_parsed}; | 3284 | 0 | } | 3285 | 16 | } | 3286 | 16 | return {range.begin(), 10, false}; | 3287 | 16 | } |
|
3288 | | |
3289 | | template <typename Range> |
3290 | | auto parse_integer_base_prefix(Range range, int base) |
3291 | | -> std::tuple<ranges::const_iterator_t<Range>, int, bool> |
3292 | 34.8k | { |
3293 | 34.8k | switch (base) { |
3294 | 38 | case 2: |
3295 | | // allow 0b/0B |
3296 | 38 | return {apply_opt(parse_integer_bin_base_prefix(range), range), 2, |
3297 | 38 | false}; |
3298 | | |
3299 | 66 | case 8: { |
3300 | | // allow 0o/0O/0 |
3301 | 66 | bool zero_parsed = false; |
3302 | 66 | auto it = apply_opt( |
3303 | 66 | parse_integer_oct_base_prefix(range, zero_parsed), range); |
3304 | 66 | return {it, 8, zero_parsed}; |
3305 | 0 | } |
3306 | | |
3307 | 11.5k | case 16: |
3308 | | // allow 0x/0X |
3309 | 11.5k | return {apply_opt(parse_integer_hex_base_prefix(range), range), 16, |
3310 | 11.5k | false}; |
3311 | | |
3312 | 70 | case 0: |
3313 | | // detect base |
3314 | 70 | return parse_integer_base_prefix_for_detection(range); |
3315 | | |
3316 | 23.1k | default: |
3317 | | // no base prefix allowed |
3318 | 23.1k | return {range.begin(), base, false}; |
3319 | 34.8k | } |
3320 | 34.8k | } Unexecuted instantiation: _ZN3scn2v34impl25parse_integer_base_prefixINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEENS1_15take_width_viewINS6_ISC_SD_EEE8sentinelILb1EEEEEEENSt3__15tupleIJDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSL_9add_constIT_E4typeEEEEEibEEESO_i Unexecuted instantiation: _ZN3scn2v34impl25parse_integer_base_prefixINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEEEENSt3__15tupleIJDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSD_9add_constIT_E4typeEEEEEibEEESG_i _ZN3scn2v34impl25parse_integer_base_prefixINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSA_EENS1_15take_width_viewINS6_ISA_SA_EEE8sentinelILb1EEEEEEENSt3__15tupleIJDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSI_9add_constIT_E4typeEEEEEibEEESL_i Line | Count | Source | 3292 | 812 | { | 3293 | 812 | switch (base) { | 3294 | 14 | case 2: | 3295 | | // allow 0b/0B | 3296 | 14 | return {apply_opt(parse_integer_bin_base_prefix(range), range), 2, | 3297 | 14 | false}; | 3298 | | | 3299 | 14 | case 8: { | 3300 | | // allow 0o/0O/0 | 3301 | 14 | bool zero_parsed = false; | 3302 | 14 | auto it = apply_opt( | 3303 | 14 | parse_integer_oct_base_prefix(range, zero_parsed), range); | 3304 | 14 | return {it, 8, zero_parsed}; | 3305 | 0 | } | 3306 | | | 3307 | 258 | case 16: | 3308 | | // allow 0x/0X | 3309 | 258 | return {apply_opt(parse_integer_hex_base_prefix(range), range), 16, | 3310 | 258 | false}; | 3311 | | | 3312 | 20 | case 0: | 3313 | | // detect base | 3314 | 20 | return parse_integer_base_prefix_for_detection(range); | 3315 | | | 3316 | 506 | default: | 3317 | | // no base prefix allowed | 3318 | 506 | return {range.begin(), base, false}; | 3319 | 812 | } | 3320 | 812 | } |
_ZN3scn2v34impl25parse_integer_base_prefixINS0_6ranges6detail9subrange_8subrangeIPKcS8_EEEENSt3__15tupleIJDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSA_9add_constIT_E4typeEEEEEibEEESD_i Line | Count | Source | 3292 | 2.62k | { | 3293 | 2.62k | switch (base) { | 3294 | 6 | case 2: | 3295 | | // allow 0b/0B | 3296 | 6 | return {apply_opt(parse_integer_bin_base_prefix(range), range), 2, | 3297 | 6 | false}; | 3298 | | | 3299 | 30 | case 8: { | 3300 | | // allow 0o/0O/0 | 3301 | 30 | bool zero_parsed = false; | 3302 | 30 | auto it = apply_opt( | 3303 | 30 | parse_integer_oct_base_prefix(range, zero_parsed), range); | 3304 | 30 | return {it, 8, zero_parsed}; | 3305 | 0 | } | 3306 | | | 3307 | 858 | case 16: | 3308 | | // allow 0x/0X | 3309 | 858 | return {apply_opt(parse_integer_hex_base_prefix(range), range), 16, | 3310 | 858 | false}; | 3311 | | | 3312 | 12 | case 0: | 3313 | | // detect base | 3314 | 12 | return parse_integer_base_prefix_for_detection(range); | 3315 | | | 3316 | 1.71k | default: | 3317 | | // no base prefix allowed | 3318 | 1.71k | return {range.begin(), base, false}; | 3319 | 2.62k | } | 3320 | 2.62k | } |
Unexecuted instantiation: _ZN3scn2v34impl25parse_integer_base_prefixINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEENS1_15take_width_viewINS6_ISC_SD_EEE8sentinelILb1EEEEEEENSt3__15tupleIJDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSL_9add_constIT_E4typeEEEEEibEEESO_i Unexecuted instantiation: _ZN3scn2v34impl25parse_integer_base_prefixINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEEEENSt3__15tupleIJDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSD_9add_constIT_E4typeEEEEEibEEESG_i _ZN3scn2v34impl25parse_integer_base_prefixINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSA_EENS1_15take_width_viewINS6_ISA_SA_EEE8sentinelILb1EEEEEEENSt3__15tupleIJDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSI_9add_constIT_E4typeEEEEEibEEESL_i Line | Count | Source | 3292 | 386 | { | 3293 | 386 | switch (base) { | 3294 | 6 | case 2: | 3295 | | // allow 0b/0B | 3296 | 6 | return {apply_opt(parse_integer_bin_base_prefix(range), range), 2, | 3297 | 6 | false}; | 3298 | | | 3299 | 12 | case 8: { | 3300 | | // allow 0o/0O/0 | 3301 | 12 | bool zero_parsed = false; | 3302 | 12 | auto it = apply_opt( | 3303 | 12 | parse_integer_oct_base_prefix(range, zero_parsed), range); | 3304 | 12 | return {it, 8, zero_parsed}; | 3305 | 0 | } | 3306 | | | 3307 | 112 | case 16: | 3308 | | // allow 0x/0X | 3309 | 112 | return {apply_opt(parse_integer_hex_base_prefix(range), range), 16, | 3310 | 112 | false}; | 3311 | | | 3312 | 22 | case 0: | 3313 | | // detect base | 3314 | 22 | return parse_integer_base_prefix_for_detection(range); | 3315 | | | 3316 | 234 | default: | 3317 | | // no base prefix allowed | 3318 | 234 | return {range.begin(), base, false}; | 3319 | 386 | } | 3320 | 386 | } |
_ZN3scn2v34impl25parse_integer_base_prefixINS0_6ranges6detail9subrange_8subrangeIPKwS8_EEEENSt3__15tupleIJDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSA_9add_constIT_E4typeEEEEEibEEESD_i Line | Count | Source | 3292 | 31.0k | { | 3293 | 31.0k | switch (base) { | 3294 | 12 | case 2: | 3295 | | // allow 0b/0B | 3296 | 12 | return {apply_opt(parse_integer_bin_base_prefix(range), range), 2, | 3297 | 12 | false}; | 3298 | | | 3299 | 10 | case 8: { | 3300 | | // allow 0o/0O/0 | 3301 | 10 | bool zero_parsed = false; | 3302 | 10 | auto it = apply_opt( | 3303 | 10 | parse_integer_oct_base_prefix(range, zero_parsed), range); | 3304 | 10 | return {it, 8, zero_parsed}; | 3305 | 0 | } | 3306 | | | 3307 | 10.3k | case 16: | 3308 | | // allow 0x/0X | 3309 | 10.3k | return {apply_opt(parse_integer_hex_base_prefix(range), range), 16, | 3310 | 10.3k | false}; | 3311 | | | 3312 | 16 | case 0: | 3313 | | // detect base | 3314 | 16 | return parse_integer_base_prefix_for_detection(range); | 3315 | | | 3316 | 20.6k | default: | 3317 | | // no base prefix allowed | 3318 | 20.6k | return {range.begin(), base, false}; | 3319 | 31.0k | } | 3320 | 31.0k | } |
|
3321 | | |
3322 | | template <typename Range> |
3323 | | auto parse_integer_prefix(Range range, int base) -> eof_expected< |
3324 | | parse_integer_prefix_result<ranges::const_iterator_t<Range>>> |
3325 | 34.8k | { |
3326 | 34.8k | SCN_TRY(sign_result, parse_numeric_sign(range)); |
3327 | 34.8k | auto [base_prefix_begin_it, sign] = sign_result; |
3328 | | |
3329 | 34.8k | auto [digits_begin_it, parsed_base, parsed_zero] = |
3330 | 34.8k | parse_integer_base_prefix( |
3331 | 34.8k | ranges::subrange{base_prefix_begin_it, range.end()}, base); |
3332 | | |
3333 | 34.8k | if (parsed_zero) { |
3334 | 0 | if (digits_begin_it == range.end() || |
3335 | 0 | char_to_int(*digits_begin_it) >= 8) { |
3336 | 0 | digits_begin_it = base_prefix_begin_it; |
3337 | 0 | } |
3338 | 0 | else { |
3339 | 0 | parsed_zero = false; |
3340 | 0 | } |
3341 | 0 | } |
3342 | 34.8k | else { |
3343 | 34.8k | if (digits_begin_it == range.end() || |
3344 | 34.8k | char_to_int(*digits_begin_it) >= parsed_base) { |
3345 | 34.8k | digits_begin_it = base_prefix_begin_it; |
3346 | 34.8k | } |
3347 | 34.8k | } |
3348 | | |
3349 | 34.8k | if (sign == sign_type::default_sign) { |
3350 | 34.8k | sign = sign_type::plus_sign; |
3351 | 34.8k | } |
3352 | 34.8k | return parse_integer_prefix_result<ranges::const_iterator_t<Range>>{ |
3353 | 34.8k | digits_begin_it, parsed_base, sign, parsed_zero}; |
3354 | 34.8k | } Unexecuted instantiation: _ZN3scn2v34impl20parse_integer_prefixINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS4_18default_sentinel_tEEEEEEENS1_12eof_expectedINS1_27parse_integer_prefix_resultIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEEEESJ_i Unexecuted instantiation: _ZN3scn2v34impl20parse_integer_prefixINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEEEENS1_12eof_expectedINS1_27parse_integer_prefix_resultIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEEEESH_i _ZN3scn2v34impl20parse_integer_prefixINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcS9_EEEEEENS1_12eof_expectedINS1_27parse_integer_prefix_resultIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEEEESG_i Line | Count | Source | 3325 | 812 | { | 3326 | 812 | SCN_TRY(sign_result, parse_numeric_sign(range)); | 3327 | 812 | auto [base_prefix_begin_it, sign] = sign_result; | 3328 | | | 3329 | 812 | auto [digits_begin_it, parsed_base, parsed_zero] = | 3330 | 812 | parse_integer_base_prefix( | 3331 | 812 | ranges::subrange{base_prefix_begin_it, range.end()}, base); | 3332 | | | 3333 | 812 | if (parsed_zero) { | 3334 | 0 | if (digits_begin_it == range.end() || | 3335 | 0 | char_to_int(*digits_begin_it) >= 8) { | 3336 | 0 | digits_begin_it = base_prefix_begin_it; | 3337 | 0 | } | 3338 | 0 | else { | 3339 | 0 | parsed_zero = false; | 3340 | 0 | } | 3341 | 0 | } | 3342 | 812 | else { | 3343 | 812 | if (digits_begin_it == range.end() || | 3344 | 812 | char_to_int(*digits_begin_it) >= parsed_base) { | 3345 | 812 | digits_begin_it = base_prefix_begin_it; | 3346 | 812 | } | 3347 | 812 | } | 3348 | | | 3349 | 812 | if (sign == sign_type::default_sign) { | 3350 | 812 | sign = sign_type::plus_sign; | 3351 | 812 | } | 3352 | 812 | return parse_integer_prefix_result<ranges::const_iterator_t<Range>>{ | 3353 | 812 | digits_begin_it, parsed_base, sign, parsed_zero}; | 3354 | 812 | } |
_ZN3scn2v34impl20parse_integer_prefixINS0_6ranges6detail9subrange_8subrangeIPKcS8_EEEENS1_12eof_expectedINS1_27parse_integer_prefix_resultIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEEEESE_i Line | Count | Source | 3325 | 2.62k | { | 3326 | 2.62k | SCN_TRY(sign_result, parse_numeric_sign(range)); | 3327 | 2.62k | auto [base_prefix_begin_it, sign] = sign_result; | 3328 | | | 3329 | 2.62k | auto [digits_begin_it, parsed_base, parsed_zero] = | 3330 | 2.62k | parse_integer_base_prefix( | 3331 | 2.62k | ranges::subrange{base_prefix_begin_it, range.end()}, base); | 3332 | | | 3333 | 2.62k | if (parsed_zero) { | 3334 | 0 | if (digits_begin_it == range.end() || | 3335 | 0 | char_to_int(*digits_begin_it) >= 8) { | 3336 | 0 | digits_begin_it = base_prefix_begin_it; | 3337 | 0 | } | 3338 | 0 | else { | 3339 | 0 | parsed_zero = false; | 3340 | 0 | } | 3341 | 0 | } | 3342 | 2.62k | else { | 3343 | 2.62k | if (digits_begin_it == range.end() || | 3344 | 2.62k | char_to_int(*digits_begin_it) >= parsed_base) { | 3345 | 2.62k | digits_begin_it = base_prefix_begin_it; | 3346 | 2.62k | } | 3347 | 2.62k | } | 3348 | | | 3349 | 2.62k | if (sign == sign_type::default_sign) { | 3350 | 2.62k | sign = sign_type::plus_sign; | 3351 | 2.62k | } | 3352 | 2.62k | return parse_integer_prefix_result<ranges::const_iterator_t<Range>>{ | 3353 | 2.62k | digits_begin_it, parsed_base, sign, parsed_zero}; | 3354 | 2.62k | } |
Unexecuted instantiation: _ZN3scn2v34impl20parse_integer_prefixINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS4_18default_sentinel_tEEEEEEENS1_12eof_expectedINS1_27parse_integer_prefix_resultIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEEEESJ_i Unexecuted instantiation: _ZN3scn2v34impl20parse_integer_prefixINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEEEENS1_12eof_expectedINS1_27parse_integer_prefix_resultIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEEEESH_i _ZN3scn2v34impl20parse_integer_prefixINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwS9_EEEEEENS1_12eof_expectedINS1_27parse_integer_prefix_resultIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEEEESG_i Line | Count | Source | 3325 | 386 | { | 3326 | 386 | SCN_TRY(sign_result, parse_numeric_sign(range)); | 3327 | 386 | auto [base_prefix_begin_it, sign] = sign_result; | 3328 | | | 3329 | 386 | auto [digits_begin_it, parsed_base, parsed_zero] = | 3330 | 386 | parse_integer_base_prefix( | 3331 | 386 | ranges::subrange{base_prefix_begin_it, range.end()}, base); | 3332 | | | 3333 | 386 | if (parsed_zero) { | 3334 | 0 | if (digits_begin_it == range.end() || | 3335 | 0 | char_to_int(*digits_begin_it) >= 8) { | 3336 | 0 | digits_begin_it = base_prefix_begin_it; | 3337 | 0 | } | 3338 | 0 | else { | 3339 | 0 | parsed_zero = false; | 3340 | 0 | } | 3341 | 0 | } | 3342 | 386 | else { | 3343 | 386 | if (digits_begin_it == range.end() || | 3344 | 386 | char_to_int(*digits_begin_it) >= parsed_base) { | 3345 | 386 | digits_begin_it = base_prefix_begin_it; | 3346 | 386 | } | 3347 | 386 | } | 3348 | | | 3349 | 386 | if (sign == sign_type::default_sign) { | 3350 | 386 | sign = sign_type::plus_sign; | 3351 | 386 | } | 3352 | 386 | return parse_integer_prefix_result<ranges::const_iterator_t<Range>>{ | 3353 | 386 | digits_begin_it, parsed_base, sign, parsed_zero}; | 3354 | 386 | } |
_ZN3scn2v34impl20parse_integer_prefixINS0_6ranges6detail9subrange_8subrangeIPKwS8_EEEENS1_12eof_expectedINS1_27parse_integer_prefix_resultIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEEEESE_i Line | Count | Source | 3325 | 31.0k | { | 3326 | 31.0k | SCN_TRY(sign_result, parse_numeric_sign(range)); | 3327 | 31.0k | auto [base_prefix_begin_it, sign] = sign_result; | 3328 | | | 3329 | 31.0k | auto [digits_begin_it, parsed_base, parsed_zero] = | 3330 | 31.0k | parse_integer_base_prefix( | 3331 | 31.0k | ranges::subrange{base_prefix_begin_it, range.end()}, base); | 3332 | | | 3333 | 31.0k | if (parsed_zero) { | 3334 | 0 | if (digits_begin_it == range.end() || | 3335 | 0 | char_to_int(*digits_begin_it) >= 8) { | 3336 | 0 | digits_begin_it = base_prefix_begin_it; | 3337 | 0 | } | 3338 | 0 | else { | 3339 | 0 | parsed_zero = false; | 3340 | 0 | } | 3341 | 0 | } | 3342 | 31.0k | else { | 3343 | 31.0k | if (digits_begin_it == range.end() || | 3344 | 31.0k | char_to_int(*digits_begin_it) >= parsed_base) { | 3345 | 31.0k | digits_begin_it = base_prefix_begin_it; | 3346 | 31.0k | } | 3347 | 31.0k | } | 3348 | | | 3349 | 31.0k | if (sign == sign_type::default_sign) { | 3350 | 31.0k | sign = sign_type::plus_sign; | 3351 | 31.0k | } | 3352 | 31.0k | return parse_integer_prefix_result<ranges::const_iterator_t<Range>>{ | 3353 | 31.0k | digits_begin_it, parsed_base, sign, parsed_zero}; | 3354 | 31.0k | } |
|
3355 | | |
3356 | | template <typename Range> |
3357 | | auto parse_integer_digits_without_thsep(Range range, int base) |
3358 | | -> scan_expected<ranges::const_iterator_t<Range>> |
3359 | 34.7k | { |
3360 | 34.7k | using char_type = detail::char_t<Range>; |
3361 | | |
3362 | 34.7k | if constexpr (ranges::contiguous_range<Range>) { |
3363 | 33.6k | if (auto e = eof_check(range); SCN_UNLIKELY(!e)) { |
3364 | 0 | return unexpected_scan_error( |
3365 | 0 | scan_error::invalid_scanned_value, |
3366 | 0 | "Failed to parse integer: No digits found"); |
3367 | 0 | } |
3368 | 33.6k | return range.end(); |
3369 | 33.6k | } |
3370 | 1.16k | else { |
3371 | 1.16k | return read_while1_code_unit(range, |
3372 | 1.16k | [&](char_type ch) noexcept { |
3373 | 1.16k | return char_to_int(ch) < base; |
3374 | 1.16k | }) Unexecuted instantiation: _ZZN3scn2v34impl34parse_integer_digits_without_thsepINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEENS1_15take_width_viewINS6_ISC_SD_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_iENKUlcE_clEc Unexecuted instantiation: _ZZN3scn2v34impl34parse_integer_digits_without_thsepINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_iENKUlcE_clEc _ZZN3scn2v34impl34parse_integer_digits_without_thsepINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSA_EENS1_15take_width_viewINS6_ISA_SA_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_iENKUlcE_clEc Line | Count | Source | 3372 | 796 | [&](char_type ch) noexcept { | 3373 | 796 | return char_to_int(ch) < base; | 3374 | 796 | }) |
Unexecuted instantiation: _ZZN3scn2v34impl34parse_integer_digits_without_thsepINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEENS1_15take_width_viewINS6_ISC_SD_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_iENKUlwE_clEw Unexecuted instantiation: _ZZN3scn2v34impl34parse_integer_digits_without_thsepINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_iENKUlwE_clEw _ZZN3scn2v34impl34parse_integer_digits_without_thsepINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSA_EENS1_15take_width_viewINS6_ISA_SA_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_iENKUlwE_clEw Line | Count | Source | 3372 | 370 | [&](char_type ch) noexcept { | 3373 | 370 | return char_to_int(ch) < base; | 3374 | 370 | }) |
|
3375 | 1.16k | .transform_error(map_parse_error_to_scan_error( |
3376 | 1.16k | scan_error::invalid_scanned_value, |
3377 | 1.16k | "Failed to parse integer: No digits found")); |
3378 | 1.16k | } |
3379 | 34.7k | } Unexecuted instantiation: _ZN3scn2v34impl34parse_integer_digits_without_thsepINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEENS1_15take_width_viewINS6_ISC_SD_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_i Unexecuted instantiation: _ZN3scn2v34impl34parse_integer_digits_without_thsepINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_i _ZN3scn2v34impl34parse_integer_digits_without_thsepINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSA_EENS1_15take_width_viewINS6_ISA_SA_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_i Line | Count | Source | 3359 | 796 | { | 3360 | 796 | using char_type = detail::char_t<Range>; | 3361 | | | 3362 | 796 | if constexpr (ranges::contiguous_range<Range>) { | 3363 | 796 | if (auto e = eof_check(range); SCN_UNLIKELY(!e)) { | 3364 | 796 | return unexpected_scan_error( | 3365 | 796 | scan_error::invalid_scanned_value, | 3366 | 796 | "Failed to parse integer: No digits found"); | 3367 | 796 | } | 3368 | 796 | return range.end(); | 3369 | 796 | } | 3370 | 796 | else { | 3371 | 796 | return read_while1_code_unit(range, | 3372 | 796 | [&](char_type ch) noexcept { | 3373 | 796 | return char_to_int(ch) < base; | 3374 | 796 | }) | 3375 | 796 | .transform_error(map_parse_error_to_scan_error( | 3376 | 796 | scan_error::invalid_scanned_value, | 3377 | 796 | "Failed to parse integer: No digits found")); | 3378 | 796 | } | 3379 | 796 | } |
_ZN3scn2v34impl34parse_integer_digits_without_thsepINS0_6ranges6detail9subrange_8subrangeIPKcS8_EEEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESD_i Line | Count | Source | 3359 | 2.59k | { | 3360 | 2.59k | using char_type = detail::char_t<Range>; | 3361 | | | 3362 | 2.59k | if constexpr (ranges::contiguous_range<Range>) { | 3363 | 2.59k | if (auto e = eof_check(range); SCN_UNLIKELY(!e)) { | 3364 | 0 | return unexpected_scan_error( | 3365 | 0 | scan_error::invalid_scanned_value, | 3366 | 0 | "Failed to parse integer: No digits found"); | 3367 | 0 | } | 3368 | 2.59k | return range.end(); | 3369 | 2.59k | } | 3370 | 2.59k | else { | 3371 | 2.59k | return read_while1_code_unit(range, | 3372 | 2.59k | [&](char_type ch) noexcept { | 3373 | 2.59k | return char_to_int(ch) < base; | 3374 | 2.59k | }) | 3375 | 2.59k | .transform_error(map_parse_error_to_scan_error( | 3376 | 2.59k | scan_error::invalid_scanned_value, | 3377 | 2.59k | "Failed to parse integer: No digits found")); | 3378 | 2.59k | } | 3379 | 2.59k | } |
Unexecuted instantiation: _ZN3scn2v34impl34parse_integer_digits_without_thsepINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEENS1_15take_width_viewINS6_ISC_SD_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_i Unexecuted instantiation: _ZN3scn2v34impl34parse_integer_digits_without_thsepINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_i _ZN3scn2v34impl34parse_integer_digits_without_thsepINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSA_EENS1_15take_width_viewINS6_ISA_SA_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_i Line | Count | Source | 3359 | 370 | { | 3360 | 370 | using char_type = detail::char_t<Range>; | 3361 | | | 3362 | 370 | if constexpr (ranges::contiguous_range<Range>) { | 3363 | 370 | if (auto e = eof_check(range); SCN_UNLIKELY(!e)) { | 3364 | 370 | return unexpected_scan_error( | 3365 | 370 | scan_error::invalid_scanned_value, | 3366 | 370 | "Failed to parse integer: No digits found"); | 3367 | 370 | } | 3368 | 370 | return range.end(); | 3369 | 370 | } | 3370 | 370 | else { | 3371 | 370 | return read_while1_code_unit(range, | 3372 | 370 | [&](char_type ch) noexcept { | 3373 | 370 | return char_to_int(ch) < base; | 3374 | 370 | }) | 3375 | 370 | .transform_error(map_parse_error_to_scan_error( | 3376 | 370 | scan_error::invalid_scanned_value, | 3377 | 370 | "Failed to parse integer: No digits found")); | 3378 | 370 | } | 3379 | 370 | } |
_ZN3scn2v34impl34parse_integer_digits_without_thsepINS0_6ranges6detail9subrange_8subrangeIPKwS8_EEEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESD_i Line | Count | Source | 3359 | 31.0k | { | 3360 | 31.0k | using char_type = detail::char_t<Range>; | 3361 | | | 3362 | 31.0k | if constexpr (ranges::contiguous_range<Range>) { | 3363 | 31.0k | if (auto e = eof_check(range); SCN_UNLIKELY(!e)) { | 3364 | 0 | return unexpected_scan_error( | 3365 | 0 | scan_error::invalid_scanned_value, | 3366 | 0 | "Failed to parse integer: No digits found"); | 3367 | 0 | } | 3368 | 31.0k | return range.end(); | 3369 | 31.0k | } | 3370 | 31.0k | else { | 3371 | 31.0k | return read_while1_code_unit(range, | 3372 | 31.0k | [&](char_type ch) noexcept { | 3373 | 31.0k | return char_to_int(ch) < base; | 3374 | 31.0k | }) | 3375 | 31.0k | .transform_error(map_parse_error_to_scan_error( | 3376 | 31.0k | scan_error::invalid_scanned_value, | 3377 | 31.0k | "Failed to parse integer: No digits found")); | 3378 | 31.0k | } | 3379 | 31.0k | } |
|
3380 | | |
3381 | | template <typename Range, typename CharT> |
3382 | | auto parse_integer_digits_with_thsep( |
3383 | | Range range, |
3384 | | int base, |
3385 | | const localized_number_formatting_options<CharT>& locale_options) |
3386 | | -> scan_expected<std::tuple<ranges::const_iterator_t<Range>, |
3387 | | std::basic_string<CharT>, |
3388 | | std::string>> |
3389 | 84 | { |
3390 | 84 | std::basic_string<CharT> output; |
3391 | 84 | std::string thsep_indices; |
3392 | 84 | auto it = range.begin(); |
3393 | 84 | bool digit_matched = false; |
3394 | 84 | for (; it != range.end(); ++it) { |
3395 | 84 | if (*it == locale_options.thousands_sep) { |
3396 | 0 | thsep_indices.push_back( |
3397 | 0 | static_cast<char>(ranges::distance(range.begin(), it))); |
3398 | 0 | } |
3399 | 84 | else if (char_to_int(*it) >= base) { |
3400 | 84 | break; |
3401 | 84 | } |
3402 | 0 | else { |
3403 | 0 | output.push_back(*it); |
3404 | 0 | digit_matched = true; |
3405 | 0 | } |
3406 | 84 | } |
3407 | 84 | if (SCN_UNLIKELY(!digit_matched)) { |
3408 | 84 | return unexpected_scan_error( |
3409 | 84 | scan_error::invalid_scanned_value, |
3410 | 84 | "Failed to parse integer: No digits found"); |
3411 | 84 | } |
3412 | 0 | return std::tuple{it, output, thsep_indices}; |
3413 | 84 | } Unexecuted instantiation: _ZN3scn2v34impl31parse_integer_digits_with_thsepINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEENS1_15take_width_viewINS6_ISC_SD_EEE8sentinelILb1EEEEEcEENS0_13scan_expectedINSt3__15tupleIJDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSM_9add_constIT_E4typeEEEEENSM_12basic_stringIT0_NSM_11char_traitsISV_EENSM_9allocatorISV_EEEENSU_IcNSW_IcEENSY_IcEEEEEEEEESP_iRKNS1_35localized_number_formatting_optionsISV_EE Unexecuted instantiation: _ZN3scn2v34impl31parse_integer_digits_with_thsepINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEEcEENS0_13scan_expectedINSt3__15tupleIJDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSE_9add_constIT_E4typeEEEEENSE_12basic_stringIT0_NSE_11char_traitsISN_EENSE_9allocatorISN_EEEENSM_IcNSO_IcEENSQ_IcEEEEEEEEESH_iRKNS1_35localized_number_formatting_optionsISN_EE _ZN3scn2v34impl31parse_integer_digits_with_thsepINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSA_EENS1_15take_width_viewINS6_ISA_SA_EEE8sentinelILb1EEEEEcEENS0_13scan_expectedINSt3__15tupleIJDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSJ_9add_constIT_E4typeEEEEENSJ_12basic_stringIT0_NSJ_11char_traitsISS_EENSJ_9allocatorISS_EEEENSR_IcNST_IcEENSV_IcEEEEEEEEESM_iRKNS1_35localized_number_formatting_optionsISS_EE Line | Count | Source | 3389 | 16 | { | 3390 | 16 | std::basic_string<CharT> output; | 3391 | 16 | std::string thsep_indices; | 3392 | 16 | auto it = range.begin(); | 3393 | 16 | bool digit_matched = false; | 3394 | 16 | for (; it != range.end(); ++it) { | 3395 | 16 | if (*it == locale_options.thousands_sep) { | 3396 | 0 | thsep_indices.push_back( | 3397 | 0 | static_cast<char>(ranges::distance(range.begin(), it))); | 3398 | 0 | } | 3399 | 16 | else if (char_to_int(*it) >= base) { | 3400 | 16 | break; | 3401 | 16 | } | 3402 | 0 | else { | 3403 | 0 | output.push_back(*it); | 3404 | 0 | digit_matched = true; | 3405 | 0 | } | 3406 | 16 | } | 3407 | 16 | if (SCN_UNLIKELY(!digit_matched)) { | 3408 | 16 | return unexpected_scan_error( | 3409 | 16 | scan_error::invalid_scanned_value, | 3410 | 16 | "Failed to parse integer: No digits found"); | 3411 | 16 | } | 3412 | 0 | return std::tuple{it, output, thsep_indices}; | 3413 | 16 | } |
_ZN3scn2v34impl31parse_integer_digits_with_thsepINS0_6ranges6detail9subrange_8subrangeIPKcS8_EEcEENS0_13scan_expectedINSt3__15tupleIJDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSB_9add_constIT_E4typeEEEEENSB_12basic_stringIT0_NSB_11char_traitsISK_EENSB_9allocatorISK_EEEENSJ_IcNSL_IcEENSN_IcEEEEEEEEESE_iRKNS1_35localized_number_formatting_optionsISK_EE Line | Count | Source | 3389 | 24 | { | 3390 | 24 | std::basic_string<CharT> output; | 3391 | 24 | std::string thsep_indices; | 3392 | 24 | auto it = range.begin(); | 3393 | 24 | bool digit_matched = false; | 3394 | 24 | for (; it != range.end(); ++it) { | 3395 | 24 | if (*it == locale_options.thousands_sep) { | 3396 | 0 | thsep_indices.push_back( | 3397 | 0 | static_cast<char>(ranges::distance(range.begin(), it))); | 3398 | 0 | } | 3399 | 24 | else if (char_to_int(*it) >= base) { | 3400 | 24 | break; | 3401 | 24 | } | 3402 | 0 | else { | 3403 | 0 | output.push_back(*it); | 3404 | 0 | digit_matched = true; | 3405 | 0 | } | 3406 | 24 | } | 3407 | 24 | if (SCN_UNLIKELY(!digit_matched)) { | 3408 | 24 | return unexpected_scan_error( | 3409 | 24 | scan_error::invalid_scanned_value, | 3410 | 24 | "Failed to parse integer: No digits found"); | 3411 | 24 | } | 3412 | 0 | return std::tuple{it, output, thsep_indices}; | 3413 | 24 | } |
Unexecuted instantiation: _ZN3scn2v34impl31parse_integer_digits_with_thsepINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEENS1_15take_width_viewINS6_ISC_SD_EEE8sentinelILb1EEEEEwEENS0_13scan_expectedINSt3__15tupleIJDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSM_9add_constIT_E4typeEEEEENSM_12basic_stringIT0_NSM_11char_traitsISV_EENSM_9allocatorISV_EEEENSU_IcNSW_IcEENSY_IcEEEEEEEEESP_iRKNS1_35localized_number_formatting_optionsISV_EE Unexecuted instantiation: _ZN3scn2v34impl31parse_integer_digits_with_thsepINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEEwEENS0_13scan_expectedINSt3__15tupleIJDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSE_9add_constIT_E4typeEEEEENSE_12basic_stringIT0_NSE_11char_traitsISN_EENSE_9allocatorISN_EEEENSM_IcNSO_IcEENSQ_IcEEEEEEEEESH_iRKNS1_35localized_number_formatting_optionsISN_EE _ZN3scn2v34impl31parse_integer_digits_with_thsepINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSA_EENS1_15take_width_viewINS6_ISA_SA_EEE8sentinelILb1EEEEEwEENS0_13scan_expectedINSt3__15tupleIJDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSJ_9add_constIT_E4typeEEEEENSJ_12basic_stringIT0_NSJ_11char_traitsISS_EENSJ_9allocatorISS_EEEENSR_IcNST_IcEENSV_IcEEEEEEEEESM_iRKNS1_35localized_number_formatting_optionsISS_EE Line | Count | Source | 3389 | 16 | { | 3390 | 16 | std::basic_string<CharT> output; | 3391 | 16 | std::string thsep_indices; | 3392 | 16 | auto it = range.begin(); | 3393 | 16 | bool digit_matched = false; | 3394 | 16 | for (; it != range.end(); ++it) { | 3395 | 16 | if (*it == locale_options.thousands_sep) { | 3396 | 0 | thsep_indices.push_back( | 3397 | 0 | static_cast<char>(ranges::distance(range.begin(), it))); | 3398 | 0 | } | 3399 | 16 | else if (char_to_int(*it) >= base) { | 3400 | 16 | break; | 3401 | 16 | } | 3402 | 0 | else { | 3403 | 0 | output.push_back(*it); | 3404 | 0 | digit_matched = true; | 3405 | 0 | } | 3406 | 16 | } | 3407 | 16 | if (SCN_UNLIKELY(!digit_matched)) { | 3408 | 16 | return unexpected_scan_error( | 3409 | 16 | scan_error::invalid_scanned_value, | 3410 | 16 | "Failed to parse integer: No digits found"); | 3411 | 16 | } | 3412 | 0 | return std::tuple{it, output, thsep_indices}; | 3413 | 16 | } |
_ZN3scn2v34impl31parse_integer_digits_with_thsepINS0_6ranges6detail9subrange_8subrangeIPKwS8_EEwEENS0_13scan_expectedINSt3__15tupleIJDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSB_9add_constIT_E4typeEEEEENSB_12basic_stringIT0_NSB_11char_traitsISK_EENSB_9allocatorISK_EEEENSJ_IcNSL_IcEENSN_IcEEEEEEEEESE_iRKNS1_35localized_number_formatting_optionsISK_EE Line | Count | Source | 3389 | 28 | { | 3390 | 28 | std::basic_string<CharT> output; | 3391 | 28 | std::string thsep_indices; | 3392 | 28 | auto it = range.begin(); | 3393 | 28 | bool digit_matched = false; | 3394 | 28 | for (; it != range.end(); ++it) { | 3395 | 28 | if (*it == locale_options.thousands_sep) { | 3396 | 0 | thsep_indices.push_back( | 3397 | 0 | static_cast<char>(ranges::distance(range.begin(), it))); | 3398 | 0 | } | 3399 | 28 | else if (char_to_int(*it) >= base) { | 3400 | 28 | break; | 3401 | 28 | } | 3402 | 0 | else { | 3403 | 0 | output.push_back(*it); | 3404 | 0 | digit_matched = true; | 3405 | 0 | } | 3406 | 28 | } | 3407 | 28 | if (SCN_UNLIKELY(!digit_matched)) { | 3408 | 28 | return unexpected_scan_error( | 3409 | 28 | scan_error::invalid_scanned_value, | 3410 | 28 | "Failed to parse integer: No digits found"); | 3411 | 28 | } | 3412 | 0 | return std::tuple{it, output, thsep_indices}; | 3413 | 28 | } |
|
3414 | | |
3415 | | template <typename CharT, typename T> |
3416 | | auto parse_integer_value(std::basic_string_view<CharT> source, |
3417 | | T& value, |
3418 | | sign_type sign, |
3419 | | int base) |
3420 | | -> scan_expected<typename std::basic_string_view<CharT>::iterator>; |
3421 | | |
3422 | | template <typename T> |
3423 | | void parse_integer_value_exhaustive_valid(std::string_view source, T& value); |
3424 | | |
3425 | | #define SCN_DECLARE_INTEGER_READER_TEMPLATE(CharT, IntT) \ |
3426 | | extern template auto parse_integer_value( \ |
3427 | | std::basic_string_view<CharT> source, IntT& value, sign_type sign, \ |
3428 | | int base) \ |
3429 | | -> scan_expected<typename std::basic_string_view<CharT>::iterator>; \ |
3430 | | extern template void parse_integer_value_exhaustive_valid( \ |
3431 | | std::string_view, IntT&); |
3432 | | |
3433 | | #if !SCN_DISABLE_TYPE_SCHAR |
3434 | | SCN_DECLARE_INTEGER_READER_TEMPLATE(char, signed char) |
3435 | | SCN_DECLARE_INTEGER_READER_TEMPLATE(wchar_t, signed char) |
3436 | | #endif |
3437 | | #if !SCN_DISABLE_TYPE_SHORT |
3438 | | SCN_DECLARE_INTEGER_READER_TEMPLATE(char, short) |
3439 | | SCN_DECLARE_INTEGER_READER_TEMPLATE(wchar_t, short) |
3440 | | #endif |
3441 | | #if !SCN_DISABLE_TYPE_INT |
3442 | | SCN_DECLARE_INTEGER_READER_TEMPLATE(char, int) |
3443 | | SCN_DECLARE_INTEGER_READER_TEMPLATE(wchar_t, int) |
3444 | | #endif |
3445 | | #if !SCN_DISABLE_TYPE_LONG |
3446 | | SCN_DECLARE_INTEGER_READER_TEMPLATE(char, long) |
3447 | | SCN_DECLARE_INTEGER_READER_TEMPLATE(wchar_t, long) |
3448 | | #endif |
3449 | | #if !SCN_DISABLE_TYPE_LONG_LONG |
3450 | | SCN_DECLARE_INTEGER_READER_TEMPLATE(char, long long) |
3451 | | SCN_DECLARE_INTEGER_READER_TEMPLATE(wchar_t, long long) |
3452 | | #endif |
3453 | | #if !SCN_DISABLE_TYPE_UCHAR |
3454 | | SCN_DECLARE_INTEGER_READER_TEMPLATE(char, unsigned char) |
3455 | | SCN_DECLARE_INTEGER_READER_TEMPLATE(wchar_t, unsigned char) |
3456 | | #endif |
3457 | | #if !SCN_DISABLE_TYPE_USHORT |
3458 | | SCN_DECLARE_INTEGER_READER_TEMPLATE(char, unsigned short) |
3459 | | SCN_DECLARE_INTEGER_READER_TEMPLATE(wchar_t, unsigned short) |
3460 | | #endif |
3461 | | #if !SCN_DISABLE_TYPE_UINT |
3462 | | SCN_DECLARE_INTEGER_READER_TEMPLATE(char, unsigned int) |
3463 | | SCN_DECLARE_INTEGER_READER_TEMPLATE(wchar_t, unsigned int) |
3464 | | #endif |
3465 | | #if !SCN_DISABLE_TYPE_ULONG |
3466 | | SCN_DECLARE_INTEGER_READER_TEMPLATE(char, unsigned long) |
3467 | | SCN_DECLARE_INTEGER_READER_TEMPLATE(wchar_t, unsigned long) |
3468 | | #endif |
3469 | | #if !SCN_DISABLE_TYPE_ULONG_LONG |
3470 | | SCN_DECLARE_INTEGER_READER_TEMPLATE(char, unsigned long long) |
3471 | | SCN_DECLARE_INTEGER_READER_TEMPLATE(wchar_t, unsigned long long) |
3472 | | #endif |
3473 | | |
3474 | | #undef SCN_DECLARE_INTEGER_READER_TEMPLATE |
3475 | | |
3476 | | template <typename CharT> |
3477 | | class reader_impl_for_int |
3478 | | : public reader_base<reader_impl_for_int<CharT>, CharT> { |
3479 | | public: |
3480 | | constexpr reader_impl_for_int() = default; |
3481 | | |
3482 | | void check_specs_impl(const detail::format_specs& specs, |
3483 | | reader_error_handler& eh) |
3484 | 15.1k | { |
3485 | 15.1k | detail::check_int_type_specs(specs, eh); |
3486 | 15.1k | } scn::v3::impl::reader_impl_for_int<char>::check_specs_impl(scn::v3::detail::format_specs const&, scn::v3::impl::reader_error_handler&) Line | Count | Source | 3484 | 10.2k | { | 3485 | 10.2k | detail::check_int_type_specs(specs, eh); | 3486 | 10.2k | } |
scn::v3::impl::reader_impl_for_int<wchar_t>::check_specs_impl(scn::v3::detail::format_specs const&, scn::v3::impl::reader_error_handler&) Line | Count | Source | 3484 | 4.89k | { | 3485 | 4.89k | detail::check_int_type_specs(specs, eh); | 3486 | 4.89k | } |
|
3487 | | |
3488 | | template <typename Range, typename T> |
3489 | | auto read_default_with_base(Range range, T& value, int base) |
3490 | | -> scan_expected<ranges::const_iterator_t<Range>> |
3491 | 21.2k | { |
3492 | 21.2k | SCN_TRY(prefix_result, parse_integer_prefix(range, base) |
3493 | 21.2k | .transform_error(make_eof_scan_error)); |
3494 | | |
3495 | 21.2k | if constexpr (!std::is_signed_v<T>) { |
3496 | 10.6k | if (prefix_result.sign == sign_type::minus_sign) { |
3497 | 0 | return unexpected_scan_error( |
3498 | 0 | scan_error::invalid_scanned_value, |
3499 | 0 | "Unexpected '-' sign when parsing an " |
3500 | 0 | "unsigned value"); |
3501 | 0 | } |
3502 | 10.6k | } |
3503 | | |
3504 | 21.2k | if (prefix_result.is_zero) { |
3505 | 0 | value = T{0}; |
3506 | 0 | return std::next(prefix_result.iterator); |
3507 | 0 | } |
3508 | | |
3509 | 42.5k | SCN_TRY(after_digits_it, |
3510 | 42.5k | parse_integer_digits_without_thsep( |
3511 | 42.5k | ranges::subrange{prefix_result.iterator, range.end()}, |
3512 | 42.5k | prefix_result.parsed_base)); |
3513 | | |
3514 | 42.5k | auto buf = make_contiguous_buffer( |
3515 | 42.5k | ranges::subrange{prefix_result.iterator, after_digits_it}); |
3516 | 42.5k | SCN_TRY(result_it, |
3517 | 0 | parse_integer_value(buf.view(), value, prefix_result.sign, |
3518 | 0 | prefix_result.parsed_base)); |
3519 | |
|
3520 | 0 | return ranges::next(prefix_result.iterator, |
3521 | 0 | ranges::distance(buf.view().begin(), result_it)); |
3522 | 42.5k | } Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE22read_default_with_baseINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEaEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_i Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE22read_default_with_baseINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEsEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_i Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE22read_default_with_baseINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEiEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_i Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE22read_default_with_baseINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEElEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_i Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE22read_default_with_baseINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEExEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_i Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE22read_default_with_baseINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEhEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_i Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE22read_default_with_baseINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEtEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_i Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE22read_default_with_baseINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEjEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_i Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE22read_default_with_baseINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEmEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_i Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE22read_default_with_baseINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEyEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_i Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE22read_default_with_baseINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEaEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RT0_i Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE22read_default_with_baseINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEsEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RT0_i _ZN3scn2v34impl19reader_impl_for_intIwE22read_default_with_baseINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEiEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RT0_i Line | Count | Source | 3491 | 10.0k | { | 3492 | 10.0k | SCN_TRY(prefix_result, parse_integer_prefix(range, base) | 3493 | 10.0k | .transform_error(make_eof_scan_error)); | 3494 | | | 3495 | 10.0k | if constexpr (!std::is_signed_v<T>) { | 3496 | 10.0k | if (prefix_result.sign == sign_type::minus_sign) { | 3497 | 10.0k | return unexpected_scan_error( | 3498 | 10.0k | scan_error::invalid_scanned_value, | 3499 | 10.0k | "Unexpected '-' sign when parsing an " | 3500 | 10.0k | "unsigned value"); | 3501 | 10.0k | } | 3502 | 10.0k | } | 3503 | | | 3504 | 10.0k | if (prefix_result.is_zero) { | 3505 | 0 | value = T{0}; | 3506 | 0 | return std::next(prefix_result.iterator); | 3507 | 0 | } | 3508 | | | 3509 | 20.0k | SCN_TRY(after_digits_it, | 3510 | 20.0k | parse_integer_digits_without_thsep( | 3511 | 20.0k | ranges::subrange{prefix_result.iterator, range.end()}, | 3512 | 20.0k | prefix_result.parsed_base)); | 3513 | | | 3514 | 20.0k | auto buf = make_contiguous_buffer( | 3515 | 20.0k | ranges::subrange{prefix_result.iterator, after_digits_it}); | 3516 | 20.0k | SCN_TRY(result_it, | 3517 | 0 | parse_integer_value(buf.view(), value, prefix_result.sign, | 3518 | 0 | prefix_result.parsed_base)); | 3519 | |
| 3520 | 0 | return ranges::next(prefix_result.iterator, | 3521 | 0 | ranges::distance(buf.view().begin(), result_it)); | 3522 | 20.0k | } |
Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE22read_default_with_baseINS0_6ranges6detail9subrange_8subrangeIPKwSA_EElEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RT0_i Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE22read_default_with_baseINS0_6ranges6detail9subrange_8subrangeIPKwSA_EExEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RT0_i Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE22read_default_with_baseINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEhEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RT0_i Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE22read_default_with_baseINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEtEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RT0_i _ZN3scn2v34impl19reader_impl_for_intIwE22read_default_with_baseINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEjEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RT0_i Line | Count | Source | 3491 | 10.0k | { | 3492 | 10.0k | SCN_TRY(prefix_result, parse_integer_prefix(range, base) | 3493 | 10.0k | .transform_error(make_eof_scan_error)); | 3494 | | | 3495 | 10.0k | if constexpr (!std::is_signed_v<T>) { | 3496 | 10.0k | if (prefix_result.sign == sign_type::minus_sign) { | 3497 | 0 | return unexpected_scan_error( | 3498 | 0 | scan_error::invalid_scanned_value, | 3499 | 0 | "Unexpected '-' sign when parsing an " | 3500 | 0 | "unsigned value"); | 3501 | 0 | } | 3502 | 10.0k | } | 3503 | | | 3504 | 10.0k | if (prefix_result.is_zero) { | 3505 | 0 | value = T{0}; | 3506 | 0 | return std::next(prefix_result.iterator); | 3507 | 0 | } | 3508 | | | 3509 | 20.0k | SCN_TRY(after_digits_it, | 3510 | 20.0k | parse_integer_digits_without_thsep( | 3511 | 20.0k | ranges::subrange{prefix_result.iterator, range.end()}, | 3512 | 20.0k | prefix_result.parsed_base)); | 3513 | | | 3514 | 20.0k | auto buf = make_contiguous_buffer( | 3515 | 20.0k | ranges::subrange{prefix_result.iterator, after_digits_it}); | 3516 | 20.0k | SCN_TRY(result_it, | 3517 | 0 | parse_integer_value(buf.view(), value, prefix_result.sign, | 3518 | 0 | prefix_result.parsed_base)); | 3519 | |
| 3520 | 0 | return ranges::next(prefix_result.iterator, | 3521 | 0 | ranges::distance(buf.view().begin(), result_it)); | 3522 | 20.0k | } |
Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE22read_default_with_baseINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEmEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RT0_i Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE22read_default_with_baseINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEyEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RT0_i Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE22read_default_with_baseINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEaEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_i Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE22read_default_with_baseINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEsEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_i Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE22read_default_with_baseINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEiEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_i Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE22read_default_with_baseINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEElEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_i Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE22read_default_with_baseINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEExEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_i Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE22read_default_with_baseINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEhEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_i Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE22read_default_with_baseINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEtEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_i Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE22read_default_with_baseINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEjEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_i Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE22read_default_with_baseINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEmEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_i Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE22read_default_with_baseINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEyEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_i Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE22read_default_with_baseINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEaEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RT0_i Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE22read_default_with_baseINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEsEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RT0_i _ZN3scn2v34impl19reader_impl_for_intIcE22read_default_with_baseINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEiEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RT0_i Line | Count | Source | 3491 | 628 | { | 3492 | 628 | SCN_TRY(prefix_result, parse_integer_prefix(range, base) | 3493 | 628 | .transform_error(make_eof_scan_error)); | 3494 | | | 3495 | 628 | if constexpr (!std::is_signed_v<T>) { | 3496 | 628 | if (prefix_result.sign == sign_type::minus_sign) { | 3497 | 628 | return unexpected_scan_error( | 3498 | 628 | scan_error::invalid_scanned_value, | 3499 | 628 | "Unexpected '-' sign when parsing an " | 3500 | 628 | "unsigned value"); | 3501 | 628 | } | 3502 | 628 | } | 3503 | | | 3504 | 628 | if (prefix_result.is_zero) { | 3505 | 0 | value = T{0}; | 3506 | 0 | return std::next(prefix_result.iterator); | 3507 | 0 | } | 3508 | | | 3509 | 1.25k | SCN_TRY(after_digits_it, | 3510 | 1.25k | parse_integer_digits_without_thsep( | 3511 | 1.25k | ranges::subrange{prefix_result.iterator, range.end()}, | 3512 | 1.25k | prefix_result.parsed_base)); | 3513 | | | 3514 | 1.25k | auto buf = make_contiguous_buffer( | 3515 | 1.25k | ranges::subrange{prefix_result.iterator, after_digits_it}); | 3516 | 1.25k | SCN_TRY(result_it, | 3517 | 0 | parse_integer_value(buf.view(), value, prefix_result.sign, | 3518 | 0 | prefix_result.parsed_base)); | 3519 | |
| 3520 | 0 | return ranges::next(prefix_result.iterator, | 3521 | 0 | ranges::distance(buf.view().begin(), result_it)); | 3522 | 1.25k | } |
Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE22read_default_with_baseINS0_6ranges6detail9subrange_8subrangeIPKcSA_EElEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RT0_i Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE22read_default_with_baseINS0_6ranges6detail9subrange_8subrangeIPKcSA_EExEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RT0_i Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE22read_default_with_baseINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEhEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RT0_i Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE22read_default_with_baseINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEtEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RT0_i _ZN3scn2v34impl19reader_impl_for_intIcE22read_default_with_baseINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEjEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RT0_i Line | Count | Source | 3491 | 628 | { | 3492 | 628 | SCN_TRY(prefix_result, parse_integer_prefix(range, base) | 3493 | 628 | .transform_error(make_eof_scan_error)); | 3494 | | | 3495 | 628 | if constexpr (!std::is_signed_v<T>) { | 3496 | 628 | if (prefix_result.sign == sign_type::minus_sign) { | 3497 | 0 | return unexpected_scan_error( | 3498 | 0 | scan_error::invalid_scanned_value, | 3499 | 0 | "Unexpected '-' sign when parsing an " | 3500 | 0 | "unsigned value"); | 3501 | 0 | } | 3502 | 628 | } | 3503 | | | 3504 | 628 | if (prefix_result.is_zero) { | 3505 | 0 | value = T{0}; | 3506 | 0 | return std::next(prefix_result.iterator); | 3507 | 0 | } | 3508 | | | 3509 | 1.25k | SCN_TRY(after_digits_it, | 3510 | 1.25k | parse_integer_digits_without_thsep( | 3511 | 1.25k | ranges::subrange{prefix_result.iterator, range.end()}, | 3512 | 1.25k | prefix_result.parsed_base)); | 3513 | | | 3514 | 1.25k | auto buf = make_contiguous_buffer( | 3515 | 1.25k | ranges::subrange{prefix_result.iterator, after_digits_it}); | 3516 | 1.25k | SCN_TRY(result_it, | 3517 | 0 | parse_integer_value(buf.view(), value, prefix_result.sign, | 3518 | 0 | prefix_result.parsed_base)); | 3519 | |
| 3520 | 0 | return ranges::next(prefix_result.iterator, | 3521 | 0 | ranges::distance(buf.view().begin(), result_it)); | 3522 | 1.25k | } |
Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE22read_default_with_baseINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEmEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RT0_i Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE22read_default_with_baseINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEyEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RT0_i |
3523 | | |
3524 | | template <typename Range, typename T> |
3525 | | auto read_default(Range range, T& value, detail::locale_ref loc) |
3526 | | -> scan_expected<ranges::const_iterator_t<Range>> |
3527 | 21.2k | { |
3528 | 21.2k | SCN_UNUSED(loc); |
3529 | 21.2k | return read_default_with_base(range, value, 10); |
3530 | 21.2k | } Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEaEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RT0_NS0_6detail10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEsEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RT0_NS0_6detail10locale_refE _ZN3scn2v34impl19reader_impl_for_intIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEiEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RT0_NS0_6detail10locale_refE Line | Count | Source | 3527 | 628 | { | 3528 | 628 | SCN_UNUSED(loc); | 3529 | 628 | return read_default_with_base(range, value, 10); | 3530 | 628 | } |
Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKcSA_EElEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RT0_NS0_6detail10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKcSA_EExEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RT0_NS0_6detail10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEhEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RT0_NS0_6detail10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEtEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RT0_NS0_6detail10locale_refE _ZN3scn2v34impl19reader_impl_for_intIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEjEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RT0_NS0_6detail10locale_refE Line | Count | Source | 3527 | 628 | { | 3528 | 628 | SCN_UNUSED(loc); | 3529 | 628 | return read_default_with_base(range, value, 10); | 3530 | 628 | } |
Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEmEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RT0_NS0_6detail10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEyEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RT0_NS0_6detail10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEaEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_NS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEsEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_NS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEiEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_NS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEElEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_NS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEExEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_NS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEhEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_NS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEtEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_NS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEjEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_NS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEmEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_NS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEyEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_NS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEaEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RT0_NS0_6detail10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEsEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RT0_NS0_6detail10locale_refE _ZN3scn2v34impl19reader_impl_for_intIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEiEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RT0_NS0_6detail10locale_refE Line | Count | Source | 3527 | 10.0k | { | 3528 | 10.0k | SCN_UNUSED(loc); | 3529 | 10.0k | return read_default_with_base(range, value, 10); | 3530 | 10.0k | } |
Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKwSA_EElEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RT0_NS0_6detail10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKwSA_EExEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RT0_NS0_6detail10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEhEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RT0_NS0_6detail10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEtEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RT0_NS0_6detail10locale_refE _ZN3scn2v34impl19reader_impl_for_intIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEjEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RT0_NS0_6detail10locale_refE Line | Count | Source | 3527 | 10.0k | { | 3528 | 10.0k | SCN_UNUSED(loc); | 3529 | 10.0k | return read_default_with_base(range, value, 10); | 3530 | 10.0k | } |
Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEmEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RT0_NS0_6detail10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEyEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RT0_NS0_6detail10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEaEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_NS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEsEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_NS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEiEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_NS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEElEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_NS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEExEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_NS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEhEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_NS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEtEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_NS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEjEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_NS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEmEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_NS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEyEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_NS9_10locale_refE |
3531 | | |
3532 | | template <typename Range, typename T> |
3533 | | auto read_specs(Range range, |
3534 | | const detail::format_specs& specs, |
3535 | | T& value, |
3536 | | detail::locale_ref loc) |
3537 | | -> scan_expected<ranges::const_iterator_t<Range>> |
3538 | 13.5k | { |
3539 | 13.5k | SCN_TRY(prefix_result, parse_integer_prefix(range, specs.get_base()) |
3540 | 13.5k | .transform_error(make_eof_scan_error)); |
3541 | | |
3542 | 13.5k | if (prefix_result.sign == sign_type::minus_sign) { |
3543 | 0 | if constexpr (!std::is_signed_v<T>) { |
3544 | 0 | return unexpected_scan_error( |
3545 | 0 | scan_error::invalid_scanned_value, |
3546 | 0 | "Unexpected '-' sign when parsing an " |
3547 | 0 | "unsigned value"); |
3548 | 0 | } |
3549 | 0 | else { |
3550 | 0 | if (specs.type == |
3551 | 0 | detail::presentation_type::int_unsigned_decimal) { |
3552 | 0 | return unexpected_scan_error( |
3553 | 0 | scan_error::invalid_scanned_value, |
3554 | 0 | "'u'-option disallows negative values"); |
3555 | 0 | } |
3556 | 0 | } |
3557 | 0 | } |
3558 | | |
3559 | 13.5k | if (prefix_result.is_zero) { |
3560 | 0 | value = T{0}; |
3561 | 0 | return std::next(prefix_result.iterator); |
3562 | 0 | } |
3563 | | |
3564 | 13.5k | if (SCN_LIKELY(!specs.localized)) { |
3565 | 13.4k | SCN_TRY(after_digits_it, |
3566 | 12.3k | parse_integer_digits_without_thsep( |
3567 | 12.3k | ranges::subrange{prefix_result.iterator, range.end()}, |
3568 | 12.3k | prefix_result.parsed_base)); |
3569 | | |
3570 | 12.3k | auto buf = make_contiguous_buffer( |
3571 | 12.3k | ranges::subrange{prefix_result.iterator, after_digits_it}); |
3572 | 12.3k | SCN_TRY(result_it, |
3573 | 0 | parse_integer_value(buf.view(), value, prefix_result.sign, |
3574 | 0 | prefix_result.parsed_base)); |
3575 | |
|
3576 | 0 | return ranges::next( |
3577 | 0 | prefix_result.iterator, |
3578 | 0 | ranges::distance(buf.view().begin(), result_it)); |
3579 | 12.3k | } |
3580 | | |
3581 | 84 | auto locale_options = |
3582 | | #if SCN_DISABLE_LOCALE |
3583 | | localized_number_formatting_options<CharT>{}; |
3584 | | #else |
3585 | 84 | localized_number_formatting_options<CharT>{loc}; |
3586 | 84 | #endif |
3587 | | |
3588 | 84 | SCN_TRY(parse_digits_result, |
3589 | 0 | parse_integer_digits_with_thsep( |
3590 | 0 | ranges::subrange{prefix_result.iterator, range.end()}, |
3591 | 0 | prefix_result.parsed_base, locale_options)); |
3592 | 0 | const auto& [after_digits_it, nothsep_source, thsep_indices] = |
3593 | 0 | parse_digits_result; |
3594 | |
|
3595 | 0 | if (!thsep_indices.empty()) { |
3596 | 0 | if (auto e = check_thsep_grouping( |
3597 | 0 | ranges::subrange{prefix_result.iterator, after_digits_it}, |
3598 | 0 | thsep_indices, locale_options.grouping); |
3599 | 0 | SCN_UNLIKELY(!e)) { |
3600 | 0 | return unexpected(e); |
3601 | 0 | } |
3602 | 0 | } |
3603 | | |
3604 | 0 | auto nothsep_source_view = |
3605 | 0 | std::basic_string_view<CharT>{nothsep_source}; |
3606 | 0 | SCN_TRY( |
3607 | 0 | nothsep_source_it, |
3608 | 0 | parse_integer_value(nothsep_source_view, value, prefix_result.sign, |
3609 | 0 | prefix_result.parsed_base)); |
3610 | |
|
3611 | 0 | return ranges::next( |
3612 | 0 | prefix_result.iterator, |
3613 | 0 | ranges::distance(nothsep_source_view.begin(), nothsep_source_it) + |
3614 | 0 | ranges::ssize(thsep_indices)); |
3615 | 0 | } Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEaEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERT0_NSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEaEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERT0_NS9_10locale_refE _ZN3scn2v34impl19reader_impl_for_intIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEaEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERT0_NSN_10locale_refE Line | Count | Source | 3538 | 32 | { | 3539 | 32 | SCN_TRY(prefix_result, parse_integer_prefix(range, specs.get_base()) | 3540 | 32 | .transform_error(make_eof_scan_error)); | 3541 | | | 3542 | 32 | if (prefix_result.sign == sign_type::minus_sign) { | 3543 | 0 | if constexpr (!std::is_signed_v<T>) { | 3544 | 0 | return unexpected_scan_error( | 3545 | 0 | scan_error::invalid_scanned_value, | 3546 | 0 | "Unexpected '-' sign when parsing an " | 3547 | 0 | "unsigned value"); | 3548 | 0 | } | 3549 | 0 | else { | 3550 | 0 | if (specs.type == | 3551 | 0 | detail::presentation_type::int_unsigned_decimal) { | 3552 | 0 | return unexpected_scan_error( | 3553 | 0 | scan_error::invalid_scanned_value, | 3554 | 0 | "'u'-option disallows negative values"); | 3555 | 0 | } | 3556 | 0 | } | 3557 | 0 | } | 3558 | | | 3559 | 32 | if (prefix_result.is_zero) { | 3560 | 0 | value = T{0}; | 3561 | 0 | return std::next(prefix_result.iterator); | 3562 | 0 | } | 3563 | | | 3564 | 32 | if (SCN_LIKELY(!specs.localized)) { | 3565 | 32 | SCN_TRY(after_digits_it, | 3566 | 0 | parse_integer_digits_without_thsep( | 3567 | 0 | ranges::subrange{prefix_result.iterator, range.end()}, | 3568 | 0 | prefix_result.parsed_base)); | 3569 | |
| 3570 | 0 | auto buf = make_contiguous_buffer( | 3571 | 0 | ranges::subrange{prefix_result.iterator, after_digits_it}); | 3572 | 0 | SCN_TRY(result_it, | 3573 | 0 | parse_integer_value(buf.view(), value, prefix_result.sign, | 3574 | 0 | prefix_result.parsed_base)); | 3575 | |
| 3576 | 0 | return ranges::next( | 3577 | 0 | prefix_result.iterator, | 3578 | 0 | ranges::distance(buf.view().begin(), result_it)); | 3579 | 0 | } | 3580 | | | 3581 | 0 | auto locale_options = | 3582 | | #if SCN_DISABLE_LOCALE | 3583 | | localized_number_formatting_options<CharT>{}; | 3584 | | #else | 3585 | 0 | localized_number_formatting_options<CharT>{loc}; | 3586 | 0 | #endif | 3587 | |
| 3588 | 0 | SCN_TRY(parse_digits_result, | 3589 | 0 | parse_integer_digits_with_thsep( | 3590 | 0 | ranges::subrange{prefix_result.iterator, range.end()}, | 3591 | 0 | prefix_result.parsed_base, locale_options)); | 3592 | 0 | const auto& [after_digits_it, nothsep_source, thsep_indices] = | 3593 | 0 | parse_digits_result; | 3594 | |
| 3595 | 0 | if (!thsep_indices.empty()) { | 3596 | 0 | if (auto e = check_thsep_grouping( | 3597 | 0 | ranges::subrange{prefix_result.iterator, after_digits_it}, | 3598 | 0 | thsep_indices, locale_options.grouping); | 3599 | 0 | SCN_UNLIKELY(!e)) { | 3600 | 0 | return unexpected(e); | 3601 | 0 | } | 3602 | 0 | } | 3603 | | | 3604 | 0 | auto nothsep_source_view = | 3605 | 0 | std::basic_string_view<CharT>{nothsep_source}; | 3606 | 0 | SCN_TRY( | 3607 | 0 | nothsep_source_it, | 3608 | 0 | parse_integer_value(nothsep_source_view, value, prefix_result.sign, | 3609 | 0 | prefix_result.parsed_base)); | 3610 | |
| 3611 | 0 | return ranges::next( | 3612 | 0 | prefix_result.iterator, | 3613 | 0 | ranges::distance(nothsep_source_view.begin(), nothsep_source_it) + | 3614 | 0 | ranges::ssize(thsep_indices)); | 3615 | 0 | } |
_ZN3scn2v34impl19reader_impl_for_intIcE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEaEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERT0_NSL_10locale_refE Line | Count | Source | 3538 | 22 | { | 3539 | 22 | SCN_TRY(prefix_result, parse_integer_prefix(range, specs.get_base()) | 3540 | 22 | .transform_error(make_eof_scan_error)); | 3541 | | | 3542 | 22 | if (prefix_result.sign == sign_type::minus_sign) { | 3543 | 0 | if constexpr (!std::is_signed_v<T>) { | 3544 | 0 | return unexpected_scan_error( | 3545 | 0 | scan_error::invalid_scanned_value, | 3546 | 0 | "Unexpected '-' sign when parsing an " | 3547 | 0 | "unsigned value"); | 3548 | 0 | } | 3549 | 0 | else { | 3550 | 0 | if (specs.type == | 3551 | 0 | detail::presentation_type::int_unsigned_decimal) { | 3552 | 0 | return unexpected_scan_error( | 3553 | 0 | scan_error::invalid_scanned_value, | 3554 | 0 | "'u'-option disallows negative values"); | 3555 | 0 | } | 3556 | 0 | } | 3557 | 0 | } | 3558 | | | 3559 | 22 | if (prefix_result.is_zero) { | 3560 | 0 | value = T{0}; | 3561 | 0 | return std::next(prefix_result.iterator); | 3562 | 0 | } | 3563 | | | 3564 | 22 | if (SCN_LIKELY(!specs.localized)) { | 3565 | 22 | SCN_TRY(after_digits_it, | 3566 | 22 | parse_integer_digits_without_thsep( | 3567 | 22 | ranges::subrange{prefix_result.iterator, range.end()}, | 3568 | 22 | prefix_result.parsed_base)); | 3569 | | | 3570 | 22 | auto buf = make_contiguous_buffer( | 3571 | 22 | ranges::subrange{prefix_result.iterator, after_digits_it}); | 3572 | 22 | SCN_TRY(result_it, | 3573 | 0 | parse_integer_value(buf.view(), value, prefix_result.sign, | 3574 | 0 | prefix_result.parsed_base)); | 3575 | |
| 3576 | 0 | return ranges::next( | 3577 | 0 | prefix_result.iterator, | 3578 | 0 | ranges::distance(buf.view().begin(), result_it)); | 3579 | 22 | } | 3580 | | | 3581 | 0 | auto locale_options = | 3582 | | #if SCN_DISABLE_LOCALE | 3583 | | localized_number_formatting_options<CharT>{}; | 3584 | | #else | 3585 | 0 | localized_number_formatting_options<CharT>{loc}; | 3586 | 0 | #endif | 3587 | |
| 3588 | 0 | SCN_TRY(parse_digits_result, | 3589 | 0 | parse_integer_digits_with_thsep( | 3590 | 0 | ranges::subrange{prefix_result.iterator, range.end()}, | 3591 | 0 | prefix_result.parsed_base, locale_options)); | 3592 | 0 | const auto& [after_digits_it, nothsep_source, thsep_indices] = | 3593 | 0 | parse_digits_result; | 3594 | |
| 3595 | 0 | if (!thsep_indices.empty()) { | 3596 | 0 | if (auto e = check_thsep_grouping( | 3597 | 0 | ranges::subrange{prefix_result.iterator, after_digits_it}, | 3598 | 0 | thsep_indices, locale_options.grouping); | 3599 | 0 | SCN_UNLIKELY(!e)) { | 3600 | 0 | return unexpected(e); | 3601 | 0 | } | 3602 | 0 | } | 3603 | | | 3604 | 0 | auto nothsep_source_view = | 3605 | 0 | std::basic_string_view<CharT>{nothsep_source}; | 3606 | 0 | SCN_TRY( | 3607 | 0 | nothsep_source_it, | 3608 | 0 | parse_integer_value(nothsep_source_view, value, prefix_result.sign, | 3609 | 0 | prefix_result.parsed_base)); | 3610 | |
| 3611 | 0 | return ranges::next( | 3612 | 0 | prefix_result.iterator, | 3613 | 0 | ranges::distance(nothsep_source_view.begin(), nothsep_source_it) + | 3614 | 0 | ranges::ssize(thsep_indices)); | 3615 | 0 | } |
Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEsEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERT0_NSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEsEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERT0_NS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEsEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERT0_NSN_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEsEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERT0_NSL_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEiEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERT0_NSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEiEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERT0_NS9_10locale_refE _ZN3scn2v34impl19reader_impl_for_intIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEiEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERT0_NSN_10locale_refE Line | Count | Source | 3538 | 270 | { | 3539 | 270 | SCN_TRY(prefix_result, parse_integer_prefix(range, specs.get_base()) | 3540 | 270 | .transform_error(make_eof_scan_error)); | 3541 | | | 3542 | 270 | if (prefix_result.sign == sign_type::minus_sign) { | 3543 | 0 | if constexpr (!std::is_signed_v<T>) { | 3544 | 0 | return unexpected_scan_error( | 3545 | 0 | scan_error::invalid_scanned_value, | 3546 | 0 | "Unexpected '-' sign when parsing an " | 3547 | 0 | "unsigned value"); | 3548 | 0 | } | 3549 | 0 | else { | 3550 | 0 | if (specs.type == | 3551 | 0 | detail::presentation_type::int_unsigned_decimal) { | 3552 | 0 | return unexpected_scan_error( | 3553 | 0 | scan_error::invalid_scanned_value, | 3554 | 0 | "'u'-option disallows negative values"); | 3555 | 0 | } | 3556 | 0 | } | 3557 | 0 | } | 3558 | | | 3559 | 270 | if (prefix_result.is_zero) { | 3560 | 0 | value = T{0}; | 3561 | 0 | return std::next(prefix_result.iterator); | 3562 | 0 | } | 3563 | | | 3564 | 270 | if (SCN_LIKELY(!specs.localized)) { | 3565 | 262 | SCN_TRY(after_digits_it, | 3566 | 0 | parse_integer_digits_without_thsep( | 3567 | 0 | ranges::subrange{prefix_result.iterator, range.end()}, | 3568 | 0 | prefix_result.parsed_base)); | 3569 | |
| 3570 | 0 | auto buf = make_contiguous_buffer( | 3571 | 0 | ranges::subrange{prefix_result.iterator, after_digits_it}); | 3572 | 0 | SCN_TRY(result_it, | 3573 | 0 | parse_integer_value(buf.view(), value, prefix_result.sign, | 3574 | 0 | prefix_result.parsed_base)); | 3575 | |
| 3576 | 0 | return ranges::next( | 3577 | 0 | prefix_result.iterator, | 3578 | 0 | ranges::distance(buf.view().begin(), result_it)); | 3579 | 0 | } | 3580 | | | 3581 | 8 | auto locale_options = | 3582 | | #if SCN_DISABLE_LOCALE | 3583 | | localized_number_formatting_options<CharT>{}; | 3584 | | #else | 3585 | 8 | localized_number_formatting_options<CharT>{loc}; | 3586 | 8 | #endif | 3587 | | | 3588 | 8 | SCN_TRY(parse_digits_result, | 3589 | 0 | parse_integer_digits_with_thsep( | 3590 | 0 | ranges::subrange{prefix_result.iterator, range.end()}, | 3591 | 0 | prefix_result.parsed_base, locale_options)); | 3592 | 0 | const auto& [after_digits_it, nothsep_source, thsep_indices] = | 3593 | 0 | parse_digits_result; | 3594 | |
| 3595 | 0 | if (!thsep_indices.empty()) { | 3596 | 0 | if (auto e = check_thsep_grouping( | 3597 | 0 | ranges::subrange{prefix_result.iterator, after_digits_it}, | 3598 | 0 | thsep_indices, locale_options.grouping); | 3599 | 0 | SCN_UNLIKELY(!e)) { | 3600 | 0 | return unexpected(e); | 3601 | 0 | } | 3602 | 0 | } | 3603 | | | 3604 | 0 | auto nothsep_source_view = | 3605 | 0 | std::basic_string_view<CharT>{nothsep_source}; | 3606 | 0 | SCN_TRY( | 3607 | 0 | nothsep_source_it, | 3608 | 0 | parse_integer_value(nothsep_source_view, value, prefix_result.sign, | 3609 | 0 | prefix_result.parsed_base)); | 3610 | |
| 3611 | 0 | return ranges::next( | 3612 | 0 | prefix_result.iterator, | 3613 | 0 | ranges::distance(nothsep_source_view.begin(), nothsep_source_it) + | 3614 | 0 | ranges::ssize(thsep_indices)); | 3615 | 0 | } |
_ZN3scn2v34impl19reader_impl_for_intIcE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEiEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERT0_NSL_10locale_refE Line | Count | Source | 3538 | 248 | { | 3539 | 248 | SCN_TRY(prefix_result, parse_integer_prefix(range, specs.get_base()) | 3540 | 248 | .transform_error(make_eof_scan_error)); | 3541 | | | 3542 | 248 | if (prefix_result.sign == sign_type::minus_sign) { | 3543 | 0 | if constexpr (!std::is_signed_v<T>) { | 3544 | 0 | return unexpected_scan_error( | 3545 | 0 | scan_error::invalid_scanned_value, | 3546 | 0 | "Unexpected '-' sign when parsing an " | 3547 | 0 | "unsigned value"); | 3548 | 0 | } | 3549 | 0 | else { | 3550 | 0 | if (specs.type == | 3551 | 0 | detail::presentation_type::int_unsigned_decimal) { | 3552 | 0 | return unexpected_scan_error( | 3553 | 0 | scan_error::invalid_scanned_value, | 3554 | 0 | "'u'-option disallows negative values"); | 3555 | 0 | } | 3556 | 0 | } | 3557 | 0 | } | 3558 | | | 3559 | 248 | if (prefix_result.is_zero) { | 3560 | 0 | value = T{0}; | 3561 | 0 | return std::next(prefix_result.iterator); | 3562 | 0 | } | 3563 | | | 3564 | 248 | if (SCN_LIKELY(!specs.localized)) { | 3565 | 236 | SCN_TRY(after_digits_it, | 3566 | 236 | parse_integer_digits_without_thsep( | 3567 | 236 | ranges::subrange{prefix_result.iterator, range.end()}, | 3568 | 236 | prefix_result.parsed_base)); | 3569 | | | 3570 | 236 | auto buf = make_contiguous_buffer( | 3571 | 236 | ranges::subrange{prefix_result.iterator, after_digits_it}); | 3572 | 236 | SCN_TRY(result_it, | 3573 | 0 | parse_integer_value(buf.view(), value, prefix_result.sign, | 3574 | 0 | prefix_result.parsed_base)); | 3575 | |
| 3576 | 0 | return ranges::next( | 3577 | 0 | prefix_result.iterator, | 3578 | 0 | ranges::distance(buf.view().begin(), result_it)); | 3579 | 236 | } | 3580 | | | 3581 | 12 | auto locale_options = | 3582 | | #if SCN_DISABLE_LOCALE | 3583 | | localized_number_formatting_options<CharT>{}; | 3584 | | #else | 3585 | 12 | localized_number_formatting_options<CharT>{loc}; | 3586 | 12 | #endif | 3587 | | | 3588 | 12 | SCN_TRY(parse_digits_result, | 3589 | 0 | parse_integer_digits_with_thsep( | 3590 | 0 | ranges::subrange{prefix_result.iterator, range.end()}, | 3591 | 0 | prefix_result.parsed_base, locale_options)); | 3592 | 0 | const auto& [after_digits_it, nothsep_source, thsep_indices] = | 3593 | 0 | parse_digits_result; | 3594 | |
| 3595 | 0 | if (!thsep_indices.empty()) { | 3596 | 0 | if (auto e = check_thsep_grouping( | 3597 | 0 | ranges::subrange{prefix_result.iterator, after_digits_it}, | 3598 | 0 | thsep_indices, locale_options.grouping); | 3599 | 0 | SCN_UNLIKELY(!e)) { | 3600 | 0 | return unexpected(e); | 3601 | 0 | } | 3602 | 0 | } | 3603 | | | 3604 | 0 | auto nothsep_source_view = | 3605 | 0 | std::basic_string_view<CharT>{nothsep_source}; | 3606 | 0 | SCN_TRY( | 3607 | 0 | nothsep_source_it, | 3608 | 0 | parse_integer_value(nothsep_source_view, value, prefix_result.sign, | 3609 | 0 | prefix_result.parsed_base)); | 3610 | |
| 3611 | 0 | return ranges::next( | 3612 | 0 | prefix_result.iterator, | 3613 | 0 | ranges::distance(nothsep_source_view.begin(), nothsep_source_it) + | 3614 | 0 | ranges::ssize(thsep_indices)); | 3615 | 0 | } |
Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEElEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERT0_NSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEElEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERT0_NS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEElEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERT0_NSN_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKcSA_EElEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERT0_NSL_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEExEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERT0_NSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEExEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERT0_NS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEExEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERT0_NSN_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKcSA_EExEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERT0_NSL_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEhEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERT0_NSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEhEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERT0_NS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEhEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERT0_NSN_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEhEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERT0_NSL_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEtEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERT0_NSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEtEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERT0_NS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEtEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERT0_NSN_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEtEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERT0_NSL_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEjEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERT0_NSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEjEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERT0_NS9_10locale_refE _ZN3scn2v34impl19reader_impl_for_intIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEjEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERT0_NSN_10locale_refE Line | Count | Source | 3538 | 270 | { | 3539 | 270 | SCN_TRY(prefix_result, parse_integer_prefix(range, specs.get_base()) | 3540 | 270 | .transform_error(make_eof_scan_error)); | 3541 | | | 3542 | 270 | if (prefix_result.sign == sign_type::minus_sign) { | 3543 | 0 | if constexpr (!std::is_signed_v<T>) { | 3544 | 0 | return unexpected_scan_error( | 3545 | 0 | scan_error::invalid_scanned_value, | 3546 | 0 | "Unexpected '-' sign when parsing an " | 3547 | 0 | "unsigned value"); | 3548 | 0 | } | 3549 | 0 | else { | 3550 | 0 | if (specs.type == | 3551 | 0 | detail::presentation_type::int_unsigned_decimal) { | 3552 | 0 | return unexpected_scan_error( | 3553 | 0 | scan_error::invalid_scanned_value, | 3554 | 0 | "'u'-option disallows negative values"); | 3555 | 0 | } | 3556 | 0 | } | 3557 | 0 | } | 3558 | | | 3559 | 270 | if (prefix_result.is_zero) { | 3560 | 0 | value = T{0}; | 3561 | 0 | return std::next(prefix_result.iterator); | 3562 | 0 | } | 3563 | | | 3564 | 270 | if (SCN_LIKELY(!specs.localized)) { | 3565 | 262 | SCN_TRY(after_digits_it, | 3566 | 0 | parse_integer_digits_without_thsep( | 3567 | 0 | ranges::subrange{prefix_result.iterator, range.end()}, | 3568 | 0 | prefix_result.parsed_base)); | 3569 | |
| 3570 | 0 | auto buf = make_contiguous_buffer( | 3571 | 0 | ranges::subrange{prefix_result.iterator, after_digits_it}); | 3572 | 0 | SCN_TRY(result_it, | 3573 | 0 | parse_integer_value(buf.view(), value, prefix_result.sign, | 3574 | 0 | prefix_result.parsed_base)); | 3575 | |
| 3576 | 0 | return ranges::next( | 3577 | 0 | prefix_result.iterator, | 3578 | 0 | ranges::distance(buf.view().begin(), result_it)); | 3579 | 0 | } | 3580 | | | 3581 | 8 | auto locale_options = | 3582 | | #if SCN_DISABLE_LOCALE | 3583 | | localized_number_formatting_options<CharT>{}; | 3584 | | #else | 3585 | 8 | localized_number_formatting_options<CharT>{loc}; | 3586 | 8 | #endif | 3587 | | | 3588 | 8 | SCN_TRY(parse_digits_result, | 3589 | 0 | parse_integer_digits_with_thsep( | 3590 | 0 | ranges::subrange{prefix_result.iterator, range.end()}, | 3591 | 0 | prefix_result.parsed_base, locale_options)); | 3592 | 0 | const auto& [after_digits_it, nothsep_source, thsep_indices] = | 3593 | 0 | parse_digits_result; | 3594 | |
| 3595 | 0 | if (!thsep_indices.empty()) { | 3596 | 0 | if (auto e = check_thsep_grouping( | 3597 | 0 | ranges::subrange{prefix_result.iterator, after_digits_it}, | 3598 | 0 | thsep_indices, locale_options.grouping); | 3599 | 0 | SCN_UNLIKELY(!e)) { | 3600 | 0 | return unexpected(e); | 3601 | 0 | } | 3602 | 0 | } | 3603 | | | 3604 | 0 | auto nothsep_source_view = | 3605 | 0 | std::basic_string_view<CharT>{nothsep_source}; | 3606 | 0 | SCN_TRY( | 3607 | 0 | nothsep_source_it, | 3608 | 0 | parse_integer_value(nothsep_source_view, value, prefix_result.sign, | 3609 | 0 | prefix_result.parsed_base)); | 3610 | |
| 3611 | 0 | return ranges::next( | 3612 | 0 | prefix_result.iterator, | 3613 | 0 | ranges::distance(nothsep_source_view.begin(), nothsep_source_it) + | 3614 | 0 | ranges::ssize(thsep_indices)); | 3615 | 0 | } |
_ZN3scn2v34impl19reader_impl_for_intIcE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEjEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERT0_NSL_10locale_refE Line | Count | Source | 3538 | 248 | { | 3539 | 248 | SCN_TRY(prefix_result, parse_integer_prefix(range, specs.get_base()) | 3540 | 248 | .transform_error(make_eof_scan_error)); | 3541 | | | 3542 | 248 | if (prefix_result.sign == sign_type::minus_sign) { | 3543 | 0 | if constexpr (!std::is_signed_v<T>) { | 3544 | 0 | return unexpected_scan_error( | 3545 | 0 | scan_error::invalid_scanned_value, | 3546 | 0 | "Unexpected '-' sign when parsing an " | 3547 | 0 | "unsigned value"); | 3548 | 0 | } | 3549 | 0 | else { | 3550 | 0 | if (specs.type == | 3551 | 0 | detail::presentation_type::int_unsigned_decimal) { | 3552 | 0 | return unexpected_scan_error( | 3553 | 0 | scan_error::invalid_scanned_value, | 3554 | 0 | "'u'-option disallows negative values"); | 3555 | 0 | } | 3556 | 0 | } | 3557 | 0 | } | 3558 | | | 3559 | 248 | if (prefix_result.is_zero) { | 3560 | 0 | value = T{0}; | 3561 | 0 | return std::next(prefix_result.iterator); | 3562 | 0 | } | 3563 | | | 3564 | 248 | if (SCN_LIKELY(!specs.localized)) { | 3565 | 236 | SCN_TRY(after_digits_it, | 3566 | 236 | parse_integer_digits_without_thsep( | 3567 | 236 | ranges::subrange{prefix_result.iterator, range.end()}, | 3568 | 236 | prefix_result.parsed_base)); | 3569 | | | 3570 | 236 | auto buf = make_contiguous_buffer( | 3571 | 236 | ranges::subrange{prefix_result.iterator, after_digits_it}); | 3572 | 236 | SCN_TRY(result_it, | 3573 | 0 | parse_integer_value(buf.view(), value, prefix_result.sign, | 3574 | 0 | prefix_result.parsed_base)); | 3575 | |
| 3576 | 0 | return ranges::next( | 3577 | 0 | prefix_result.iterator, | 3578 | 0 | ranges::distance(buf.view().begin(), result_it)); | 3579 | 236 | } | 3580 | | | 3581 | 12 | auto locale_options = | 3582 | | #if SCN_DISABLE_LOCALE | 3583 | | localized_number_formatting_options<CharT>{}; | 3584 | | #else | 3585 | 12 | localized_number_formatting_options<CharT>{loc}; | 3586 | 12 | #endif | 3587 | | | 3588 | 12 | SCN_TRY(parse_digits_result, | 3589 | 0 | parse_integer_digits_with_thsep( | 3590 | 0 | ranges::subrange{prefix_result.iterator, range.end()}, | 3591 | 0 | prefix_result.parsed_base, locale_options)); | 3592 | 0 | const auto& [after_digits_it, nothsep_source, thsep_indices] = | 3593 | 0 | parse_digits_result; | 3594 | |
| 3595 | 0 | if (!thsep_indices.empty()) { | 3596 | 0 | if (auto e = check_thsep_grouping( | 3597 | 0 | ranges::subrange{prefix_result.iterator, after_digits_it}, | 3598 | 0 | thsep_indices, locale_options.grouping); | 3599 | 0 | SCN_UNLIKELY(!e)) { | 3600 | 0 | return unexpected(e); | 3601 | 0 | } | 3602 | 0 | } | 3603 | | | 3604 | 0 | auto nothsep_source_view = | 3605 | 0 | std::basic_string_view<CharT>{nothsep_source}; | 3606 | 0 | SCN_TRY( | 3607 | 0 | nothsep_source_it, | 3608 | 0 | parse_integer_value(nothsep_source_view, value, prefix_result.sign, | 3609 | 0 | prefix_result.parsed_base)); | 3610 | |
| 3611 | 0 | return ranges::next( | 3612 | 0 | prefix_result.iterator, | 3613 | 0 | ranges::distance(nothsep_source_view.begin(), nothsep_source_it) + | 3614 | 0 | ranges::ssize(thsep_indices)); | 3615 | 0 | } |
Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEmEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERT0_NSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEmEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERT0_NS9_10locale_refE _ZN3scn2v34impl19reader_impl_for_intIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEmEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERT0_NSN_10locale_refE Line | Count | Source | 3538 | 240 | { | 3539 | 240 | SCN_TRY(prefix_result, parse_integer_prefix(range, specs.get_base()) | 3540 | 240 | .transform_error(make_eof_scan_error)); | 3541 | | | 3542 | 240 | if (prefix_result.sign == sign_type::minus_sign) { | 3543 | 0 | if constexpr (!std::is_signed_v<T>) { | 3544 | 0 | return unexpected_scan_error( | 3545 | 0 | scan_error::invalid_scanned_value, | 3546 | 0 | "Unexpected '-' sign when parsing an " | 3547 | 0 | "unsigned value"); | 3548 | 0 | } | 3549 | 0 | else { | 3550 | 0 | if (specs.type == | 3551 | 0 | detail::presentation_type::int_unsigned_decimal) { | 3552 | 0 | return unexpected_scan_error( | 3553 | 0 | scan_error::invalid_scanned_value, | 3554 | 0 | "'u'-option disallows negative values"); | 3555 | 0 | } | 3556 | 0 | } | 3557 | 0 | } | 3558 | | | 3559 | 240 | if (prefix_result.is_zero) { | 3560 | 0 | value = T{0}; | 3561 | 0 | return std::next(prefix_result.iterator); | 3562 | 0 | } | 3563 | | | 3564 | 240 | if (SCN_LIKELY(!specs.localized)) { | 3565 | 240 | SCN_TRY(after_digits_it, | 3566 | 0 | parse_integer_digits_without_thsep( | 3567 | 0 | ranges::subrange{prefix_result.iterator, range.end()}, | 3568 | 0 | prefix_result.parsed_base)); | 3569 | |
| 3570 | 0 | auto buf = make_contiguous_buffer( | 3571 | 0 | ranges::subrange{prefix_result.iterator, after_digits_it}); | 3572 | 0 | SCN_TRY(result_it, | 3573 | 0 | parse_integer_value(buf.view(), value, prefix_result.sign, | 3574 | 0 | prefix_result.parsed_base)); | 3575 | |
| 3576 | 0 | return ranges::next( | 3577 | 0 | prefix_result.iterator, | 3578 | 0 | ranges::distance(buf.view().begin(), result_it)); | 3579 | 0 | } | 3580 | | | 3581 | 0 | auto locale_options = | 3582 | | #if SCN_DISABLE_LOCALE | 3583 | | localized_number_formatting_options<CharT>{}; | 3584 | | #else | 3585 | 0 | localized_number_formatting_options<CharT>{loc}; | 3586 | 0 | #endif | 3587 | |
| 3588 | 0 | SCN_TRY(parse_digits_result, | 3589 | 0 | parse_integer_digits_with_thsep( | 3590 | 0 | ranges::subrange{prefix_result.iterator, range.end()}, | 3591 | 0 | prefix_result.parsed_base, locale_options)); | 3592 | 0 | const auto& [after_digits_it, nothsep_source, thsep_indices] = | 3593 | 0 | parse_digits_result; | 3594 | |
| 3595 | 0 | if (!thsep_indices.empty()) { | 3596 | 0 | if (auto e = check_thsep_grouping( | 3597 | 0 | ranges::subrange{prefix_result.iterator, after_digits_it}, | 3598 | 0 | thsep_indices, locale_options.grouping); | 3599 | 0 | SCN_UNLIKELY(!e)) { | 3600 | 0 | return unexpected(e); | 3601 | 0 | } | 3602 | 0 | } | 3603 | | | 3604 | 0 | auto nothsep_source_view = | 3605 | 0 | std::basic_string_view<CharT>{nothsep_source}; | 3606 | 0 | SCN_TRY( | 3607 | 0 | nothsep_source_it, | 3608 | 0 | parse_integer_value(nothsep_source_view, value, prefix_result.sign, | 3609 | 0 | prefix_result.parsed_base)); | 3610 | |
| 3611 | 0 | return ranges::next( | 3612 | 0 | prefix_result.iterator, | 3613 | 0 | ranges::distance(nothsep_source_view.begin(), nothsep_source_it) + | 3614 | 0 | ranges::ssize(thsep_indices)); | 3615 | 0 | } |
_ZN3scn2v34impl19reader_impl_for_intIcE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEmEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERT0_NSL_10locale_refE Line | Count | Source | 3538 | 846 | { | 3539 | 846 | SCN_TRY(prefix_result, parse_integer_prefix(range, specs.get_base()) | 3540 | 846 | .transform_error(make_eof_scan_error)); | 3541 | | | 3542 | 846 | if (prefix_result.sign == sign_type::minus_sign) { | 3543 | 0 | if constexpr (!std::is_signed_v<T>) { | 3544 | 0 | return unexpected_scan_error( | 3545 | 0 | scan_error::invalid_scanned_value, | 3546 | 0 | "Unexpected '-' sign when parsing an " | 3547 | 0 | "unsigned value"); | 3548 | 0 | } | 3549 | 0 | else { | 3550 | 0 | if (specs.type == | 3551 | 0 | detail::presentation_type::int_unsigned_decimal) { | 3552 | 0 | return unexpected_scan_error( | 3553 | 0 | scan_error::invalid_scanned_value, | 3554 | 0 | "'u'-option disallows negative values"); | 3555 | 0 | } | 3556 | 0 | } | 3557 | 0 | } | 3558 | | | 3559 | 846 | if (prefix_result.is_zero) { | 3560 | 0 | value = T{0}; | 3561 | 0 | return std::next(prefix_result.iterator); | 3562 | 0 | } | 3563 | | | 3564 | 846 | if (SCN_LIKELY(!specs.localized)) { | 3565 | 846 | SCN_TRY(after_digits_it, | 3566 | 846 | parse_integer_digits_without_thsep( | 3567 | 846 | ranges::subrange{prefix_result.iterator, range.end()}, | 3568 | 846 | prefix_result.parsed_base)); | 3569 | | | 3570 | 846 | auto buf = make_contiguous_buffer( | 3571 | 846 | ranges::subrange{prefix_result.iterator, after_digits_it}); | 3572 | 846 | SCN_TRY(result_it, | 3573 | 0 | parse_integer_value(buf.view(), value, prefix_result.sign, | 3574 | 0 | prefix_result.parsed_base)); | 3575 | |
| 3576 | 0 | return ranges::next( | 3577 | 0 | prefix_result.iterator, | 3578 | 0 | ranges::distance(buf.view().begin(), result_it)); | 3579 | 846 | } | 3580 | | | 3581 | 0 | auto locale_options = | 3582 | | #if SCN_DISABLE_LOCALE | 3583 | | localized_number_formatting_options<CharT>{}; | 3584 | | #else | 3585 | 0 | localized_number_formatting_options<CharT>{loc}; | 3586 | 0 | #endif | 3587 | |
| 3588 | 0 | SCN_TRY(parse_digits_result, | 3589 | 0 | parse_integer_digits_with_thsep( | 3590 | 0 | ranges::subrange{prefix_result.iterator, range.end()}, | 3591 | 0 | prefix_result.parsed_base, locale_options)); | 3592 | 0 | const auto& [after_digits_it, nothsep_source, thsep_indices] = | 3593 | 0 | parse_digits_result; | 3594 | |
| 3595 | 0 | if (!thsep_indices.empty()) { | 3596 | 0 | if (auto e = check_thsep_grouping( | 3597 | 0 | ranges::subrange{prefix_result.iterator, after_digits_it}, | 3598 | 0 | thsep_indices, locale_options.grouping); | 3599 | 0 | SCN_UNLIKELY(!e)) { | 3600 | 0 | return unexpected(e); | 3601 | 0 | } | 3602 | 0 | } | 3603 | | | 3604 | 0 | auto nothsep_source_view = | 3605 | 0 | std::basic_string_view<CharT>{nothsep_source}; | 3606 | 0 | SCN_TRY( | 3607 | 0 | nothsep_source_it, | 3608 | 0 | parse_integer_value(nothsep_source_view, value, prefix_result.sign, | 3609 | 0 | prefix_result.parsed_base)); | 3610 | |
| 3611 | 0 | return ranges::next( | 3612 | 0 | prefix_result.iterator, | 3613 | 0 | ranges::distance(nothsep_source_view.begin(), nothsep_source_it) + | 3614 | 0 | ranges::ssize(thsep_indices)); | 3615 | 0 | } |
Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEyEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERT0_NSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEyEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERT0_NS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEyEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERT0_NSN_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIcE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEyEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERT0_NSL_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEiEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERT0_NSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEiEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERT0_NS9_10locale_refE _ZN3scn2v34impl19reader_impl_for_intIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEiEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERT0_NSN_10locale_refE Line | Count | Source | 3538 | 150 | { | 3539 | 150 | SCN_TRY(prefix_result, parse_integer_prefix(range, specs.get_base()) | 3540 | 150 | .transform_error(make_eof_scan_error)); | 3541 | | | 3542 | 150 | if (prefix_result.sign == sign_type::minus_sign) { | 3543 | 0 | if constexpr (!std::is_signed_v<T>) { | 3544 | 0 | return unexpected_scan_error( | 3545 | 0 | scan_error::invalid_scanned_value, | 3546 | 0 | "Unexpected '-' sign when parsing an " | 3547 | 0 | "unsigned value"); | 3548 | 0 | } | 3549 | 0 | else { | 3550 | 0 | if (specs.type == | 3551 | 0 | detail::presentation_type::int_unsigned_decimal) { | 3552 | 0 | return unexpected_scan_error( | 3553 | 0 | scan_error::invalid_scanned_value, | 3554 | 0 | "'u'-option disallows negative values"); | 3555 | 0 | } | 3556 | 0 | } | 3557 | 0 | } | 3558 | | | 3559 | 150 | if (prefix_result.is_zero) { | 3560 | 0 | value = T{0}; | 3561 | 0 | return std::next(prefix_result.iterator); | 3562 | 0 | } | 3563 | | | 3564 | 150 | if (SCN_LIKELY(!specs.localized)) { | 3565 | 142 | SCN_TRY(after_digits_it, | 3566 | 0 | parse_integer_digits_without_thsep( | 3567 | 0 | ranges::subrange{prefix_result.iterator, range.end()}, | 3568 | 0 | prefix_result.parsed_base)); | 3569 | |
| 3570 | 0 | auto buf = make_contiguous_buffer( | 3571 | 0 | ranges::subrange{prefix_result.iterator, after_digits_it}); | 3572 | 0 | SCN_TRY(result_it, | 3573 | 0 | parse_integer_value(buf.view(), value, prefix_result.sign, | 3574 | 0 | prefix_result.parsed_base)); | 3575 | |
| 3576 | 0 | return ranges::next( | 3577 | 0 | prefix_result.iterator, | 3578 | 0 | ranges::distance(buf.view().begin(), result_it)); | 3579 | 0 | } | 3580 | | | 3581 | 8 | auto locale_options = | 3582 | | #if SCN_DISABLE_LOCALE | 3583 | | localized_number_formatting_options<CharT>{}; | 3584 | | #else | 3585 | 8 | localized_number_formatting_options<CharT>{loc}; | 3586 | 8 | #endif | 3587 | | | 3588 | 8 | SCN_TRY(parse_digits_result, | 3589 | 0 | parse_integer_digits_with_thsep( | 3590 | 0 | ranges::subrange{prefix_result.iterator, range.end()}, | 3591 | 0 | prefix_result.parsed_base, locale_options)); | 3592 | 0 | const auto& [after_digits_it, nothsep_source, thsep_indices] = | 3593 | 0 | parse_digits_result; | 3594 | |
| 3595 | 0 | if (!thsep_indices.empty()) { | 3596 | 0 | if (auto e = check_thsep_grouping( | 3597 | 0 | ranges::subrange{prefix_result.iterator, after_digits_it}, | 3598 | 0 | thsep_indices, locale_options.grouping); | 3599 | 0 | SCN_UNLIKELY(!e)) { | 3600 | 0 | return unexpected(e); | 3601 | 0 | } | 3602 | 0 | } | 3603 | | | 3604 | 0 | auto nothsep_source_view = | 3605 | 0 | std::basic_string_view<CharT>{nothsep_source}; | 3606 | 0 | SCN_TRY( | 3607 | 0 | nothsep_source_it, | 3608 | 0 | parse_integer_value(nothsep_source_view, value, prefix_result.sign, | 3609 | 0 | prefix_result.parsed_base)); | 3610 | |
| 3611 | 0 | return ranges::next( | 3612 | 0 | prefix_result.iterator, | 3613 | 0 | ranges::distance(nothsep_source_view.begin(), nothsep_source_it) + | 3614 | 0 | ranges::ssize(thsep_indices)); | 3615 | 0 | } |
_ZN3scn2v34impl19reader_impl_for_intIwE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEiEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERT0_NSL_10locale_refE Line | Count | Source | 3538 | 358 | { | 3539 | 358 | SCN_TRY(prefix_result, parse_integer_prefix(range, specs.get_base()) | 3540 | 358 | .transform_error(make_eof_scan_error)); | 3541 | | | 3542 | 358 | if (prefix_result.sign == sign_type::minus_sign) { | 3543 | 0 | if constexpr (!std::is_signed_v<T>) { | 3544 | 0 | return unexpected_scan_error( | 3545 | 0 | scan_error::invalid_scanned_value, | 3546 | 0 | "Unexpected '-' sign when parsing an " | 3547 | 0 | "unsigned value"); | 3548 | 0 | } | 3549 | 0 | else { | 3550 | 0 | if (specs.type == | 3551 | 0 | detail::presentation_type::int_unsigned_decimal) { | 3552 | 0 | return unexpected_scan_error( | 3553 | 0 | scan_error::invalid_scanned_value, | 3554 | 0 | "'u'-option disallows negative values"); | 3555 | 0 | } | 3556 | 0 | } | 3557 | 0 | } | 3558 | | | 3559 | 358 | if (prefix_result.is_zero) { | 3560 | 0 | value = T{0}; | 3561 | 0 | return std::next(prefix_result.iterator); | 3562 | 0 | } | 3563 | | | 3564 | 358 | if (SCN_LIKELY(!specs.localized)) { | 3565 | 344 | SCN_TRY(after_digits_it, | 3566 | 344 | parse_integer_digits_without_thsep( | 3567 | 344 | ranges::subrange{prefix_result.iterator, range.end()}, | 3568 | 344 | prefix_result.parsed_base)); | 3569 | | | 3570 | 344 | auto buf = make_contiguous_buffer( | 3571 | 344 | ranges::subrange{prefix_result.iterator, after_digits_it}); | 3572 | 344 | SCN_TRY(result_it, | 3573 | 0 | parse_integer_value(buf.view(), value, prefix_result.sign, | 3574 | 0 | prefix_result.parsed_base)); | 3575 | |
| 3576 | 0 | return ranges::next( | 3577 | 0 | prefix_result.iterator, | 3578 | 0 | ranges::distance(buf.view().begin(), result_it)); | 3579 | 344 | } | 3580 | | | 3581 | 14 | auto locale_options = | 3582 | | #if SCN_DISABLE_LOCALE | 3583 | | localized_number_formatting_options<CharT>{}; | 3584 | | #else | 3585 | 14 | localized_number_formatting_options<CharT>{loc}; | 3586 | 14 | #endif | 3587 | | | 3588 | 14 | SCN_TRY(parse_digits_result, | 3589 | 0 | parse_integer_digits_with_thsep( | 3590 | 0 | ranges::subrange{prefix_result.iterator, range.end()}, | 3591 | 0 | prefix_result.parsed_base, locale_options)); | 3592 | 0 | const auto& [after_digits_it, nothsep_source, thsep_indices] = | 3593 | 0 | parse_digits_result; | 3594 | |
| 3595 | 0 | if (!thsep_indices.empty()) { | 3596 | 0 | if (auto e = check_thsep_grouping( | 3597 | 0 | ranges::subrange{prefix_result.iterator, after_digits_it}, | 3598 | 0 | thsep_indices, locale_options.grouping); | 3599 | 0 | SCN_UNLIKELY(!e)) { | 3600 | 0 | return unexpected(e); | 3601 | 0 | } | 3602 | 0 | } | 3603 | | | 3604 | 0 | auto nothsep_source_view = | 3605 | 0 | std::basic_string_view<CharT>{nothsep_source}; | 3606 | 0 | SCN_TRY( | 3607 | 0 | nothsep_source_it, | 3608 | 0 | parse_integer_value(nothsep_source_view, value, prefix_result.sign, | 3609 | 0 | prefix_result.parsed_base)); | 3610 | |
| 3611 | 0 | return ranges::next( | 3612 | 0 | prefix_result.iterator, | 3613 | 0 | ranges::distance(nothsep_source_view.begin(), nothsep_source_it) + | 3614 | 0 | ranges::ssize(thsep_indices)); | 3615 | 0 | } |
Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEaEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERT0_NSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEaEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERT0_NS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEaEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERT0_NSN_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEaEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERT0_NSL_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEsEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERT0_NSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEsEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERT0_NS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEsEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERT0_NSN_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEsEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERT0_NSL_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEElEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERT0_NSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEElEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERT0_NS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEElEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERT0_NSN_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKwSA_EElEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERT0_NSL_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEExEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERT0_NSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEExEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERT0_NS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEExEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERT0_NSN_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKwSA_EExEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERT0_NSL_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEhEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERT0_NSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEhEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERT0_NS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEhEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERT0_NSN_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEhEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERT0_NSL_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEtEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERT0_NSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEtEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERT0_NS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEtEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERT0_NSN_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEtEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERT0_NSL_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEjEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERT0_NSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEjEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERT0_NS9_10locale_refE _ZN3scn2v34impl19reader_impl_for_intIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEjEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERT0_NSN_10locale_refE Line | Count | Source | 3538 | 130 | { | 3539 | 130 | SCN_TRY(prefix_result, parse_integer_prefix(range, specs.get_base()) | 3540 | 130 | .transform_error(make_eof_scan_error)); | 3541 | | | 3542 | 130 | if (prefix_result.sign == sign_type::minus_sign) { | 3543 | 0 | if constexpr (!std::is_signed_v<T>) { | 3544 | 0 | return unexpected_scan_error( | 3545 | 0 | scan_error::invalid_scanned_value, | 3546 | 0 | "Unexpected '-' sign when parsing an " | 3547 | 0 | "unsigned value"); | 3548 | 0 | } | 3549 | 0 | else { | 3550 | 0 | if (specs.type == | 3551 | 0 | detail::presentation_type::int_unsigned_decimal) { | 3552 | 0 | return unexpected_scan_error( | 3553 | 0 | scan_error::invalid_scanned_value, | 3554 | 0 | "'u'-option disallows negative values"); | 3555 | 0 | } | 3556 | 0 | } | 3557 | 0 | } | 3558 | | | 3559 | 130 | if (prefix_result.is_zero) { | 3560 | 0 | value = T{0}; | 3561 | 0 | return std::next(prefix_result.iterator); | 3562 | 0 | } | 3563 | | | 3564 | 130 | if (SCN_LIKELY(!specs.localized)) { | 3565 | 122 | SCN_TRY(after_digits_it, | 3566 | 0 | parse_integer_digits_without_thsep( | 3567 | 0 | ranges::subrange{prefix_result.iterator, range.end()}, | 3568 | 0 | prefix_result.parsed_base)); | 3569 | |
| 3570 | 0 | auto buf = make_contiguous_buffer( | 3571 | 0 | ranges::subrange{prefix_result.iterator, after_digits_it}); | 3572 | 0 | SCN_TRY(result_it, | 3573 | 0 | parse_integer_value(buf.view(), value, prefix_result.sign, | 3574 | 0 | prefix_result.parsed_base)); | 3575 | |
| 3576 | 0 | return ranges::next( | 3577 | 0 | prefix_result.iterator, | 3578 | 0 | ranges::distance(buf.view().begin(), result_it)); | 3579 | 0 | } | 3580 | | | 3581 | 8 | auto locale_options = | 3582 | | #if SCN_DISABLE_LOCALE | 3583 | | localized_number_formatting_options<CharT>{}; | 3584 | | #else | 3585 | 8 | localized_number_formatting_options<CharT>{loc}; | 3586 | 8 | #endif | 3587 | | | 3588 | 8 | SCN_TRY(parse_digits_result, | 3589 | 0 | parse_integer_digits_with_thsep( | 3590 | 0 | ranges::subrange{prefix_result.iterator, range.end()}, | 3591 | 0 | prefix_result.parsed_base, locale_options)); | 3592 | 0 | const auto& [after_digits_it, nothsep_source, thsep_indices] = | 3593 | 0 | parse_digits_result; | 3594 | |
| 3595 | 0 | if (!thsep_indices.empty()) { | 3596 | 0 | if (auto e = check_thsep_grouping( | 3597 | 0 | ranges::subrange{prefix_result.iterator, after_digits_it}, | 3598 | 0 | thsep_indices, locale_options.grouping); | 3599 | 0 | SCN_UNLIKELY(!e)) { | 3600 | 0 | return unexpected(e); | 3601 | 0 | } | 3602 | 0 | } | 3603 | | | 3604 | 0 | auto nothsep_source_view = | 3605 | 0 | std::basic_string_view<CharT>{nothsep_source}; | 3606 | 0 | SCN_TRY( | 3607 | 0 | nothsep_source_it, | 3608 | 0 | parse_integer_value(nothsep_source_view, value, prefix_result.sign, | 3609 | 0 | prefix_result.parsed_base)); | 3610 | |
| 3611 | 0 | return ranges::next( | 3612 | 0 | prefix_result.iterator, | 3613 | 0 | ranges::distance(nothsep_source_view.begin(), nothsep_source_it) + | 3614 | 0 | ranges::ssize(thsep_indices)); | 3615 | 0 | } |
_ZN3scn2v34impl19reader_impl_for_intIwE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEjEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERT0_NSL_10locale_refE Line | Count | Source | 3538 | 338 | { | 3539 | 338 | SCN_TRY(prefix_result, parse_integer_prefix(range, specs.get_base()) | 3540 | 338 | .transform_error(make_eof_scan_error)); | 3541 | | | 3542 | 338 | if (prefix_result.sign == sign_type::minus_sign) { | 3543 | 0 | if constexpr (!std::is_signed_v<T>) { | 3544 | 0 | return unexpected_scan_error( | 3545 | 0 | scan_error::invalid_scanned_value, | 3546 | 0 | "Unexpected '-' sign when parsing an " | 3547 | 0 | "unsigned value"); | 3548 | 0 | } | 3549 | 0 | else { | 3550 | 0 | if (specs.type == | 3551 | 0 | detail::presentation_type::int_unsigned_decimal) { | 3552 | 0 | return unexpected_scan_error( | 3553 | 0 | scan_error::invalid_scanned_value, | 3554 | 0 | "'u'-option disallows negative values"); | 3555 | 0 | } | 3556 | 0 | } | 3557 | 0 | } | 3558 | | | 3559 | 338 | if (prefix_result.is_zero) { | 3560 | 0 | value = T{0}; | 3561 | 0 | return std::next(prefix_result.iterator); | 3562 | 0 | } | 3563 | | | 3564 | 338 | if (SCN_LIKELY(!specs.localized)) { | 3565 | 324 | SCN_TRY(after_digits_it, | 3566 | 324 | parse_integer_digits_without_thsep( | 3567 | 324 | ranges::subrange{prefix_result.iterator, range.end()}, | 3568 | 324 | prefix_result.parsed_base)); | 3569 | | | 3570 | 324 | auto buf = make_contiguous_buffer( | 3571 | 324 | ranges::subrange{prefix_result.iterator, after_digits_it}); | 3572 | 324 | SCN_TRY(result_it, | 3573 | 0 | parse_integer_value(buf.view(), value, prefix_result.sign, | 3574 | 0 | prefix_result.parsed_base)); | 3575 | |
| 3576 | 0 | return ranges::next( | 3577 | 0 | prefix_result.iterator, | 3578 | 0 | ranges::distance(buf.view().begin(), result_it)); | 3579 | 324 | } | 3580 | | | 3581 | 14 | auto locale_options = | 3582 | | #if SCN_DISABLE_LOCALE | 3583 | | localized_number_formatting_options<CharT>{}; | 3584 | | #else | 3585 | 14 | localized_number_formatting_options<CharT>{loc}; | 3586 | 14 | #endif | 3587 | | | 3588 | 14 | SCN_TRY(parse_digits_result, | 3589 | 0 | parse_integer_digits_with_thsep( | 3590 | 0 | ranges::subrange{prefix_result.iterator, range.end()}, | 3591 | 0 | prefix_result.parsed_base, locale_options)); | 3592 | 0 | const auto& [after_digits_it, nothsep_source, thsep_indices] = | 3593 | 0 | parse_digits_result; | 3594 | |
| 3595 | 0 | if (!thsep_indices.empty()) { | 3596 | 0 | if (auto e = check_thsep_grouping( | 3597 | 0 | ranges::subrange{prefix_result.iterator, after_digits_it}, | 3598 | 0 | thsep_indices, locale_options.grouping); | 3599 | 0 | SCN_UNLIKELY(!e)) { | 3600 | 0 | return unexpected(e); | 3601 | 0 | } | 3602 | 0 | } | 3603 | | | 3604 | 0 | auto nothsep_source_view = | 3605 | 0 | std::basic_string_view<CharT>{nothsep_source}; | 3606 | 0 | SCN_TRY( | 3607 | 0 | nothsep_source_it, | 3608 | 0 | parse_integer_value(nothsep_source_view, value, prefix_result.sign, | 3609 | 0 | prefix_result.parsed_base)); | 3610 | |
| 3611 | 0 | return ranges::next( | 3612 | 0 | prefix_result.iterator, | 3613 | 0 | ranges::distance(nothsep_source_view.begin(), nothsep_source_it) + | 3614 | 0 | ranges::ssize(thsep_indices)); | 3615 | 0 | } |
Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEmEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERT0_NSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEmEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERT0_NS9_10locale_refE _ZN3scn2v34impl19reader_impl_for_intIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEmEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERT0_NSN_10locale_refE Line | Count | Source | 3538 | 106 | { | 3539 | 106 | SCN_TRY(prefix_result, parse_integer_prefix(range, specs.get_base()) | 3540 | 106 | .transform_error(make_eof_scan_error)); | 3541 | | | 3542 | 106 | if (prefix_result.sign == sign_type::minus_sign) { | 3543 | 0 | if constexpr (!std::is_signed_v<T>) { | 3544 | 0 | return unexpected_scan_error( | 3545 | 0 | scan_error::invalid_scanned_value, | 3546 | 0 | "Unexpected '-' sign when parsing an " | 3547 | 0 | "unsigned value"); | 3548 | 0 | } | 3549 | 0 | else { | 3550 | 0 | if (specs.type == | 3551 | 0 | detail::presentation_type::int_unsigned_decimal) { | 3552 | 0 | return unexpected_scan_error( | 3553 | 0 | scan_error::invalid_scanned_value, | 3554 | 0 | "'u'-option disallows negative values"); | 3555 | 0 | } | 3556 | 0 | } | 3557 | 0 | } | 3558 | | | 3559 | 106 | if (prefix_result.is_zero) { | 3560 | 0 | value = T{0}; | 3561 | 0 | return std::next(prefix_result.iterator); | 3562 | 0 | } | 3563 | | | 3564 | 106 | if (SCN_LIKELY(!specs.localized)) { | 3565 | 106 | SCN_TRY(after_digits_it, | 3566 | 0 | parse_integer_digits_without_thsep( | 3567 | 0 | ranges::subrange{prefix_result.iterator, range.end()}, | 3568 | 0 | prefix_result.parsed_base)); | 3569 | |
| 3570 | 0 | auto buf = make_contiguous_buffer( | 3571 | 0 | ranges::subrange{prefix_result.iterator, after_digits_it}); | 3572 | 0 | SCN_TRY(result_it, | 3573 | 0 | parse_integer_value(buf.view(), value, prefix_result.sign, | 3574 | 0 | prefix_result.parsed_base)); | 3575 | |
| 3576 | 0 | return ranges::next( | 3577 | 0 | prefix_result.iterator, | 3578 | 0 | ranges::distance(buf.view().begin(), result_it)); | 3579 | 0 | } | 3580 | | | 3581 | 0 | auto locale_options = | 3582 | | #if SCN_DISABLE_LOCALE | 3583 | | localized_number_formatting_options<CharT>{}; | 3584 | | #else | 3585 | 0 | localized_number_formatting_options<CharT>{loc}; | 3586 | 0 | #endif | 3587 | |
| 3588 | 0 | SCN_TRY(parse_digits_result, | 3589 | 0 | parse_integer_digits_with_thsep( | 3590 | 0 | ranges::subrange{prefix_result.iterator, range.end()}, | 3591 | 0 | prefix_result.parsed_base, locale_options)); | 3592 | 0 | const auto& [after_digits_it, nothsep_source, thsep_indices] = | 3593 | 0 | parse_digits_result; | 3594 | |
| 3595 | 0 | if (!thsep_indices.empty()) { | 3596 | 0 | if (auto e = check_thsep_grouping( | 3597 | 0 | ranges::subrange{prefix_result.iterator, after_digits_it}, | 3598 | 0 | thsep_indices, locale_options.grouping); | 3599 | 0 | SCN_UNLIKELY(!e)) { | 3600 | 0 | return unexpected(e); | 3601 | 0 | } | 3602 | 0 | } | 3603 | | | 3604 | 0 | auto nothsep_source_view = | 3605 | 0 | std::basic_string_view<CharT>{nothsep_source}; | 3606 | 0 | SCN_TRY( | 3607 | 0 | nothsep_source_it, | 3608 | 0 | parse_integer_value(nothsep_source_view, value, prefix_result.sign, | 3609 | 0 | prefix_result.parsed_base)); | 3610 | |
| 3611 | 0 | return ranges::next( | 3612 | 0 | prefix_result.iterator, | 3613 | 0 | ranges::distance(nothsep_source_view.begin(), nothsep_source_it) + | 3614 | 0 | ranges::ssize(thsep_indices)); | 3615 | 0 | } |
_ZN3scn2v34impl19reader_impl_for_intIwE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEmEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERT0_NSL_10locale_refE Line | Count | Source | 3538 | 10.3k | { | 3539 | 10.3k | SCN_TRY(prefix_result, parse_integer_prefix(range, specs.get_base()) | 3540 | 10.3k | .transform_error(make_eof_scan_error)); | 3541 | | | 3542 | 10.3k | if (prefix_result.sign == sign_type::minus_sign) { | 3543 | 0 | if constexpr (!std::is_signed_v<T>) { | 3544 | 0 | return unexpected_scan_error( | 3545 | 0 | scan_error::invalid_scanned_value, | 3546 | 0 | "Unexpected '-' sign when parsing an " | 3547 | 0 | "unsigned value"); | 3548 | 0 | } | 3549 | 0 | else { | 3550 | 0 | if (specs.type == | 3551 | 0 | detail::presentation_type::int_unsigned_decimal) { | 3552 | 0 | return unexpected_scan_error( | 3553 | 0 | scan_error::invalid_scanned_value, | 3554 | 0 | "'u'-option disallows negative values"); | 3555 | 0 | } | 3556 | 0 | } | 3557 | 0 | } | 3558 | | | 3559 | 10.3k | if (prefix_result.is_zero) { | 3560 | 0 | value = T{0}; | 3561 | 0 | return std::next(prefix_result.iterator); | 3562 | 0 | } | 3563 | | | 3564 | 10.3k | if (SCN_LIKELY(!specs.localized)) { | 3565 | 10.3k | SCN_TRY(after_digits_it, | 3566 | 10.3k | parse_integer_digits_without_thsep( | 3567 | 10.3k | ranges::subrange{prefix_result.iterator, range.end()}, | 3568 | 10.3k | prefix_result.parsed_base)); | 3569 | | | 3570 | 10.3k | auto buf = make_contiguous_buffer( | 3571 | 10.3k | ranges::subrange{prefix_result.iterator, after_digits_it}); | 3572 | 10.3k | SCN_TRY(result_it, | 3573 | 0 | parse_integer_value(buf.view(), value, prefix_result.sign, | 3574 | 0 | prefix_result.parsed_base)); | 3575 | |
| 3576 | 0 | return ranges::next( | 3577 | 0 | prefix_result.iterator, | 3578 | 0 | ranges::distance(buf.view().begin(), result_it)); | 3579 | 10.3k | } | 3580 | | | 3581 | 0 | auto locale_options = | 3582 | | #if SCN_DISABLE_LOCALE | 3583 | | localized_number_formatting_options<CharT>{}; | 3584 | | #else | 3585 | 0 | localized_number_formatting_options<CharT>{loc}; | 3586 | 0 | #endif | 3587 | |
| 3588 | 0 | SCN_TRY(parse_digits_result, | 3589 | 0 | parse_integer_digits_with_thsep( | 3590 | 0 | ranges::subrange{prefix_result.iterator, range.end()}, | 3591 | 0 | prefix_result.parsed_base, locale_options)); | 3592 | 0 | const auto& [after_digits_it, nothsep_source, thsep_indices] = | 3593 | 0 | parse_digits_result; | 3594 | |
| 3595 | 0 | if (!thsep_indices.empty()) { | 3596 | 0 | if (auto e = check_thsep_grouping( | 3597 | 0 | ranges::subrange{prefix_result.iterator, after_digits_it}, | 3598 | 0 | thsep_indices, locale_options.grouping); | 3599 | 0 | SCN_UNLIKELY(!e)) { | 3600 | 0 | return unexpected(e); | 3601 | 0 | } | 3602 | 0 | } | 3603 | | | 3604 | 0 | auto nothsep_source_view = | 3605 | 0 | std::basic_string_view<CharT>{nothsep_source}; | 3606 | 0 | SCN_TRY( | 3607 | 0 | nothsep_source_it, | 3608 | 0 | parse_integer_value(nothsep_source_view, value, prefix_result.sign, | 3609 | 0 | prefix_result.parsed_base)); | 3610 | |
| 3611 | 0 | return ranges::next( | 3612 | 0 | prefix_result.iterator, | 3613 | 0 | ranges::distance(nothsep_source_view.begin(), nothsep_source_it) + | 3614 | 0 | ranges::ssize(thsep_indices)); | 3615 | 0 | } |
Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEyEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERT0_NSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEyEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERT0_NS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEyEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERT0_NSN_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl19reader_impl_for_intIwE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEyEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERT0_NSL_10locale_refE |
3616 | | }; |
3617 | | |
3618 | | ///////////////////////////////////////////////////////////////// |
3619 | | // Floating-point reader |
3620 | | ///////////////////////////////////////////////////////////////// |
3621 | | |
3622 | | struct float_reader_base { |
3623 | | enum options_type { |
3624 | | allow_hex = 1, |
3625 | | allow_scientific = 2, |
3626 | | allow_fixed = 4, |
3627 | | allow_thsep = 8 |
3628 | | }; |
3629 | | |
3630 | | enum class float_kind { |
3631 | | tbd = 0, |
3632 | | generic, // fixed or scientific |
3633 | | fixed, // xxx.yyy |
3634 | | scientific, // xxx.yyyEzzz |
3635 | | hex_without_prefix, // xxx.yyypzzz |
3636 | | hex_with_prefix, // 0Xxxx.yyypzzz |
3637 | | inf_short, // inf |
3638 | | inf_long, // infinity |
3639 | | nan_simple, // nan |
3640 | | nan_with_payload, // nan(xxx) |
3641 | | }; |
3642 | | |
3643 | 10.6k | constexpr float_reader_base() = default; |
3644 | 974 | explicit constexpr float_reader_base(unsigned opt) : m_options(opt) {} |
3645 | | |
3646 | | protected: |
3647 | | unsigned m_options{allow_hex | allow_scientific | allow_fixed}; |
3648 | | }; |
3649 | | |
3650 | | template <typename CharT> |
3651 | | class float_reader : public numeric_reader<CharT>, public float_reader_base { |
3652 | | using numeric_base = numeric_reader<CharT>; |
3653 | | |
3654 | | public: |
3655 | | using char_type = CharT; |
3656 | | |
3657 | 10.6k | constexpr float_reader() = default; scn::v3::impl::float_reader<char>::float_reader() Line | Count | Source | 3657 | 628 | constexpr float_reader() = default; |
scn::v3::impl::float_reader<wchar_t>::float_reader() Line | Count | Source | 3657 | 10.0k | constexpr float_reader() = default; |
|
3658 | | |
3659 | 974 | explicit constexpr float_reader(unsigned opt) : float_reader_base(opt) {}scn::v3::impl::float_reader<char>::float_reader(unsigned int) Line | Count | Source | 3659 | 526 | explicit constexpr float_reader(unsigned opt) : float_reader_base(opt) {} |
scn::v3::impl::float_reader<wchar_t>::float_reader(unsigned int) Line | Count | Source | 3659 | 448 | explicit constexpr float_reader(unsigned opt) : float_reader_base(opt) {} |
|
3660 | | |
3661 | | template <typename Range> |
3662 | | SCN_NODISCARD auto read_source(Range range, detail::locale_ref) |
3663 | | -> scan_expected<ranges::const_iterator_t<Range>> |
3664 | 11.5k | { |
3665 | 11.5k | if (SCN_UNLIKELY(m_options & float_reader_base::allow_thsep)) { |
3666 | 0 | m_locale_options = localized_number_formatting_options<CharT>{ |
3667 | 0 | classic_with_thsep_tag{}}; |
3668 | 0 | } |
3669 | | |
3670 | 11.5k | return read_source_impl(range); |
3671 | 11.5k | } Unexecuted instantiation: _ZN3scn2v34impl12float_readerIcE11read_sourceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_NSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl12float_readerIcE11read_sourceINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_NS9_10locale_refE _ZN3scn2v34impl12float_readerIcE11read_sourceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_NS0_6detail10locale_refE Line | Count | Source | 3664 | 262 | { | 3665 | 262 | if (SCN_UNLIKELY(m_options & float_reader_base::allow_thsep)) { | 3666 | 0 | m_locale_options = localized_number_formatting_options<CharT>{ | 3667 | 0 | classic_with_thsep_tag{}}; | 3668 | 0 | } | 3669 | | | 3670 | 262 | return read_source_impl(range); | 3671 | 262 | } |
_ZN3scn2v34impl12float_readerIcE11read_sourceINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_NS0_6detail10locale_refE Line | Count | Source | 3664 | 874 | { | 3665 | 874 | if (SCN_UNLIKELY(m_options & float_reader_base::allow_thsep)) { | 3666 | 0 | m_locale_options = localized_number_formatting_options<CharT>{ | 3667 | 0 | classic_with_thsep_tag{}}; | 3668 | 0 | } | 3669 | | | 3670 | 874 | return read_source_impl(range); | 3671 | 874 | } |
Unexecuted instantiation: _ZN3scn2v34impl12float_readerIwE11read_sourceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_NSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl12float_readerIwE11read_sourceINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_NS9_10locale_refE _ZN3scn2v34impl12float_readerIwE11read_sourceINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_NS0_6detail10locale_refE Line | Count | Source | 3664 | 116 | { | 3665 | 116 | if (SCN_UNLIKELY(m_options & float_reader_base::allow_thsep)) { | 3666 | 0 | m_locale_options = localized_number_formatting_options<CharT>{ | 3667 | 0 | classic_with_thsep_tag{}}; | 3668 | 0 | } | 3669 | | | 3670 | 116 | return read_source_impl(range); | 3671 | 116 | } |
_ZN3scn2v34impl12float_readerIwE11read_sourceINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_NS0_6detail10locale_refE Line | Count | Source | 3664 | 10.3k | { | 3665 | 10.3k | if (SCN_UNLIKELY(m_options & float_reader_base::allow_thsep)) { | 3666 | 0 | m_locale_options = localized_number_formatting_options<CharT>{ | 3667 | 0 | classic_with_thsep_tag{}}; | 3668 | 0 | } | 3669 | | | 3670 | 10.3k | return read_source_impl(range); | 3671 | 10.3k | } |
|
3672 | | |
3673 | | #if !SCN_DISABLE_LOCALE |
3674 | | template <typename Range> |
3675 | | SCN_NODISCARD auto read_source_localized(Range range, |
3676 | | detail::locale_ref loc) |
3677 | | -> scan_expected<ranges::const_iterator_t<Range>> |
3678 | 30 | { |
3679 | 30 | m_locale_options = localized_number_formatting_options<CharT>{loc}; |
3680 | 30 | if (SCN_LIKELY((m_options & float_reader_base::allow_thsep) == 0)) { |
3681 | 0 | m_locale_options.thousands_sep = CharT{0}; |
3682 | 0 | } |
3683 | | |
3684 | 30 | return read_source_impl(range); |
3685 | 30 | } Unexecuted instantiation: _ZN3scn2v34impl12float_readerIcE21read_source_localizedINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_NSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl12float_readerIcE21read_source_localizedINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_NS9_10locale_refE _ZN3scn2v34impl12float_readerIcE21read_source_localizedINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_NS0_6detail10locale_refE Line | Count | Source | 3678 | 8 | { | 3679 | 8 | m_locale_options = localized_number_formatting_options<CharT>{loc}; | 3680 | 8 | if (SCN_LIKELY((m_options & float_reader_base::allow_thsep) == 0)) { | 3681 | 0 | m_locale_options.thousands_sep = CharT{0}; | 3682 | 0 | } | 3683 | | | 3684 | 8 | return read_source_impl(range); | 3685 | 8 | } |
_ZN3scn2v34impl12float_readerIcE21read_source_localizedINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_NS0_6detail10locale_refE Line | Count | Source | 3678 | 10 | { | 3679 | 10 | m_locale_options = localized_number_formatting_options<CharT>{loc}; | 3680 | 10 | if (SCN_LIKELY((m_options & float_reader_base::allow_thsep) == 0)) { | 3681 | 0 | m_locale_options.thousands_sep = CharT{0}; | 3682 | 0 | } | 3683 | | | 3684 | 10 | return read_source_impl(range); | 3685 | 10 | } |
Unexecuted instantiation: _ZN3scn2v34impl12float_readerIwE21read_source_localizedINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_NSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl12float_readerIwE21read_source_localizedINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_NS9_10locale_refE _ZN3scn2v34impl12float_readerIwE21read_source_localizedINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_NS0_6detail10locale_refE Line | Count | Source | 3678 | 6 | { | 3679 | 6 | m_locale_options = localized_number_formatting_options<CharT>{loc}; | 3680 | 6 | if (SCN_LIKELY((m_options & float_reader_base::allow_thsep) == 0)) { | 3681 | 0 | m_locale_options.thousands_sep = CharT{0}; | 3682 | 0 | } | 3683 | | | 3684 | 6 | return read_source_impl(range); | 3685 | 6 | } |
_ZN3scn2v34impl12float_readerIwE21read_source_localizedINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_NS0_6detail10locale_refE Line | Count | Source | 3678 | 6 | { | 3679 | 6 | m_locale_options = localized_number_formatting_options<CharT>{loc}; | 3680 | 6 | if (SCN_LIKELY((m_options & float_reader_base::allow_thsep) == 0)) { | 3681 | 0 | m_locale_options.thousands_sep = CharT{0}; | 3682 | 0 | } | 3683 | | | 3684 | 6 | return read_source_impl(range); | 3685 | 6 | } |
|
3686 | | #endif |
3687 | | |
3688 | | template <typename T> |
3689 | | SCN_NODISCARD scan_expected<std::ptrdiff_t> parse_value(T& value) |
3690 | 11.1k | { |
3691 | 11.1k | SCN_EXPECT(m_kind != float_kind::tbd); |
3692 | | |
3693 | 11.1k | const std::ptrdiff_t sign_len = |
3694 | 11.1k | m_sign != sign_type::default_sign ? 1 : 0; |
3695 | | |
3696 | 11.1k | SCN_TRY(n, parse_value_impl(value)); |
3697 | 0 | return n + sign_len + ranges::ssize(m_thsep_indices); |
3698 | 11.1k | } Unexecuted instantiation: scn::v3::scan_expected<long> scn::v3::impl::float_reader<char>::parse_value<float>(float&) scn::v3::scan_expected<long> scn::v3::impl::float_reader<char>::parse_value<double>(double&) Line | Count | Source | 3690 | 856 | { | 3691 | 856 | SCN_EXPECT(m_kind != float_kind::tbd); | 3692 | | | 3693 | 856 | const std::ptrdiff_t sign_len = | 3694 | 856 | m_sign != sign_type::default_sign ? 1 : 0; | 3695 | | | 3696 | 856 | SCN_TRY(n, parse_value_impl(value)); | 3697 | 0 | return n + sign_len + ranges::ssize(m_thsep_indices); | 3698 | 856 | } |
Unexecuted instantiation: scn::v3::scan_expected<long> scn::v3::impl::float_reader<char>::parse_value<long double>(long double&) Unexecuted instantiation: scn::v3::scan_expected<long> scn::v3::impl::float_reader<wchar_t>::parse_value<float>(float&) scn::v3::scan_expected<long> scn::v3::impl::float_reader<wchar_t>::parse_value<double>(double&) Line | Count | Source | 3690 | 10.3k | { | 3691 | 10.3k | SCN_EXPECT(m_kind != float_kind::tbd); | 3692 | | | 3693 | 10.3k | const std::ptrdiff_t sign_len = | 3694 | 10.3k | m_sign != sign_type::default_sign ? 1 : 0; | 3695 | | | 3696 | 10.3k | SCN_TRY(n, parse_value_impl(value)); | 3697 | 0 | return n + sign_len + ranges::ssize(m_thsep_indices); | 3698 | 10.3k | } |
Unexecuted instantiation: scn::v3::scan_expected<long> scn::v3::impl::float_reader<wchar_t>::parse_value<long double>(long double&) |
3699 | | |
3700 | | private: |
3701 | | template <typename Range> |
3702 | | auto read_source_impl(Range range) |
3703 | | -> scan_expected<ranges::const_iterator_t<Range>> |
3704 | 11.6k | { |
3705 | 11.6k | SCN_TRY(sign_result, |
3706 | 11.6k | parse_numeric_sign(range).transform_error(make_eof_scan_error)); |
3707 | 11.6k | auto it = sign_result.first; |
3708 | 11.6k | m_sign = sign_result.second; |
3709 | | |
3710 | 11.6k | auto digits_begin = it; |
3711 | 11.6k | auto r = ranges::subrange{it, range.end()}; |
3712 | 11.6k | if constexpr (ranges::contiguous_range<Range> && |
3713 | 11.6k | ranges::sized_range<Range>) { |
3714 | 11.2k | if (SCN_UNLIKELY(m_locale_options.thousands_sep != 0 || |
3715 | 392 | m_locale_options.decimal_point != CharT{'.'})) { |
3716 | 0 | SCN_TRY_ASSIGN( |
3717 | 0 | it, |
3718 | 0 | do_read_source_impl( |
3719 | 0 | r, |
3720 | 0 | [&](const auto& rr) { return read_regular_float(rr); }, |
3721 | 0 | [&](const auto& rr) { return read_hexfloat(rr); })); |
3722 | 0 | } |
3723 | 11.2k | else { |
3724 | 11.2k | auto cb = [&](const auto& rr) |
3725 | 11.2k | -> scan_expected<ranges::const_iterator_t<decltype(rr)>> { |
3726 | 11.1k | auto res = read_all(rr); |
3727 | 11.1k | if (SCN_UNLIKELY(res == r.begin())) { |
3728 | 0 | return unexpected_scan_error( |
3729 | 0 | scan_error::invalid_scanned_value, |
3730 | 0 | "Invalid float value"); |
3731 | 0 | } |
3732 | 11.1k | return res; |
3733 | 11.1k | }; _ZZN3scn2v34impl12float_readerIcE16read_source_implINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_ENKUlRKSF_E1_clISB_EENSC_IDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSE_IDtfp_EE4typeEEEEEEESM_ Line | Count | Source | 3725 | 856 | -> scan_expected<ranges::const_iterator_t<decltype(rr)>> { | 3726 | 856 | auto res = read_all(rr); | 3727 | 856 | if (SCN_UNLIKELY(res == r.begin())) { | 3728 | 0 | return unexpected_scan_error( | 3729 | 0 | scan_error::invalid_scanned_value, | 3730 | 0 | "Invalid float value"); | 3731 | 0 | } | 3732 | 856 | return res; | 3733 | 856 | }; |
_ZZN3scn2v34impl12float_readerIwE16read_source_implINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_ENKUlRKSF_E1_clISB_EENSC_IDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSE_IDtfp_EE4typeEEEEEEESM_ Line | Count | Source | 3725 | 10.3k | -> scan_expected<ranges::const_iterator_t<decltype(rr)>> { | 3726 | 10.3k | auto res = read_all(rr); | 3727 | 10.3k | if (SCN_UNLIKELY(res == r.begin())) { | 3728 | 0 | return unexpected_scan_error( | 3729 | 0 | scan_error::invalid_scanned_value, | 3730 | 0 | "Invalid float value"); | 3731 | 0 | } | 3732 | 10.3k | return res; | 3733 | 10.3k | }; |
|
3734 | 11.2k | SCN_TRY_ASSIGN(it, do_read_source_impl(r, cb, cb)); |
3735 | 11.1k | } |
3736 | 11.2k | } |
3737 | 11.1k | else { |
3738 | 392 | SCN_TRY_ASSIGN( |
3739 | 0 | it, |
3740 | 0 | do_read_source_impl( |
3741 | 0 | r, [&](const auto& rr) { return read_regular_float(rr); }, |
3742 | 0 | [&](const auto& rr) { return read_hexfloat(rr); })); |
3743 | 0 | } |
3744 | | |
3745 | 11.1k | SCN_EXPECT(m_kind != float_kind::tbd); |
3746 | | |
3747 | 11.1k | if (m_kind != float_kind::inf_short && m_kind != float_kind::inf_long && |
3748 | 11.1k | m_kind != float_kind::nan_simple && |
3749 | 11.1k | m_kind != float_kind::nan_with_payload) { |
3750 | 11.1k | this->m_buffer.assign(ranges::subrange{digits_begin, it}); |
3751 | 11.1k | } |
3752 | | |
3753 | 11.1k | handle_separators(); |
3754 | | |
3755 | 11.1k | if (!m_thsep_indices.empty()) { |
3756 | 0 | SCN_EXPECT(m_integral_part_length >= 0); |
3757 | 0 | if (auto e = check_thsep_grouping( |
3758 | 0 | ranges::subrange{ |
3759 | 0 | digits_begin, |
3760 | 0 | ranges::next(digits_begin, m_integral_part_length)}, |
3761 | 0 | m_thsep_indices, m_locale_options.grouping); |
3762 | 0 | SCN_UNLIKELY(!e)) { |
3763 | 0 | return unexpected(e); |
3764 | 0 | } |
3765 | 0 | } |
3766 | | |
3767 | 11.1k | return it; |
3768 | 11.1k | } Unexecuted instantiation: _ZN3scn2v34impl12float_readerIcE16read_source_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_ Unexecuted instantiation: _ZN3scn2v34impl12float_readerIcE16read_source_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_ _ZN3scn2v34impl12float_readerIcE16read_source_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_ Line | Count | Source | 3704 | 270 | { | 3705 | 270 | SCN_TRY(sign_result, | 3706 | 270 | parse_numeric_sign(range).transform_error(make_eof_scan_error)); | 3707 | 270 | auto it = sign_result.first; | 3708 | 270 | m_sign = sign_result.second; | 3709 | | | 3710 | 270 | auto digits_begin = it; | 3711 | 270 | auto r = ranges::subrange{it, range.end()}; | 3712 | 270 | if constexpr (ranges::contiguous_range<Range> && | 3713 | 270 | ranges::sized_range<Range>) { | 3714 | 270 | if (SCN_UNLIKELY(m_locale_options.thousands_sep != 0 || | 3715 | 270 | m_locale_options.decimal_point != CharT{'.'})) { | 3716 | 270 | SCN_TRY_ASSIGN( | 3717 | 270 | it, | 3718 | 270 | do_read_source_impl( | 3719 | 270 | r, | 3720 | 270 | [&](const auto& rr) { return read_regular_float(rr); }, | 3721 | 270 | [&](const auto& rr) { return read_hexfloat(rr); })); | 3722 | 270 | } | 3723 | 270 | else { | 3724 | 270 | auto cb = [&](const auto& rr) | 3725 | 270 | -> scan_expected<ranges::const_iterator_t<decltype(rr)>> { | 3726 | 270 | auto res = read_all(rr); | 3727 | 270 | if (SCN_UNLIKELY(res == r.begin())) { | 3728 | 270 | return unexpected_scan_error( | 3729 | 270 | scan_error::invalid_scanned_value, | 3730 | 270 | "Invalid float value"); | 3731 | 270 | } | 3732 | 270 | return res; | 3733 | 270 | }; | 3734 | 270 | SCN_TRY_ASSIGN(it, do_read_source_impl(r, cb, cb)); | 3735 | 270 | } | 3736 | 270 | } | 3737 | 270 | else { | 3738 | 270 | SCN_TRY_ASSIGN( | 3739 | 0 | it, | 3740 | 0 | do_read_source_impl( | 3741 | 0 | r, [&](const auto& rr) { return read_regular_float(rr); }, | 3742 | 0 | [&](const auto& rr) { return read_hexfloat(rr); })); | 3743 | 0 | } | 3744 | | | 3745 | 0 | SCN_EXPECT(m_kind != float_kind::tbd); | 3746 | | | 3747 | 0 | if (m_kind != float_kind::inf_short && m_kind != float_kind::inf_long && | 3748 | 0 | m_kind != float_kind::nan_simple && | 3749 | 0 | m_kind != float_kind::nan_with_payload) { | 3750 | 0 | this->m_buffer.assign(ranges::subrange{digits_begin, it}); | 3751 | 0 | } | 3752 | |
| 3753 | 0 | handle_separators(); | 3754 | |
| 3755 | 0 | if (!m_thsep_indices.empty()) { | 3756 | 0 | SCN_EXPECT(m_integral_part_length >= 0); | 3757 | 0 | if (auto e = check_thsep_grouping( | 3758 | 0 | ranges::subrange{ | 3759 | 0 | digits_begin, | 3760 | 0 | ranges::next(digits_begin, m_integral_part_length)}, | 3761 | 0 | m_thsep_indices, m_locale_options.grouping); | 3762 | 0 | SCN_UNLIKELY(!e)) { | 3763 | 0 | return unexpected(e); | 3764 | 0 | } | 3765 | 0 | } | 3766 | | | 3767 | 0 | return it; | 3768 | 0 | } |
_ZN3scn2v34impl12float_readerIcE16read_source_implINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_ Line | Count | Source | 3704 | 884 | { | 3705 | 884 | SCN_TRY(sign_result, | 3706 | 884 | parse_numeric_sign(range).transform_error(make_eof_scan_error)); | 3707 | 884 | auto it = sign_result.first; | 3708 | 884 | m_sign = sign_result.second; | 3709 | | | 3710 | 884 | auto digits_begin = it; | 3711 | 884 | auto r = ranges::subrange{it, range.end()}; | 3712 | 884 | if constexpr (ranges::contiguous_range<Range> && | 3713 | 884 | ranges::sized_range<Range>) { | 3714 | 884 | if (SCN_UNLIKELY(m_locale_options.thousands_sep != 0 || | 3715 | 884 | m_locale_options.decimal_point != CharT{'.'})) { | 3716 | 0 | SCN_TRY_ASSIGN( | 3717 | 0 | it, | 3718 | 0 | do_read_source_impl( | 3719 | 0 | r, | 3720 | 0 | [&](const auto& rr) { return read_regular_float(rr); }, | 3721 | 0 | [&](const auto& rr) { return read_hexfloat(rr); })); | 3722 | 0 | } | 3723 | 884 | else { | 3724 | 884 | auto cb = [&](const auto& rr) | 3725 | 884 | -> scan_expected<ranges::const_iterator_t<decltype(rr)>> { | 3726 | 884 | auto res = read_all(rr); | 3727 | 884 | if (SCN_UNLIKELY(res == r.begin())) { | 3728 | 884 | return unexpected_scan_error( | 3729 | 884 | scan_error::invalid_scanned_value, | 3730 | 884 | "Invalid float value"); | 3731 | 884 | } | 3732 | 884 | return res; | 3733 | 884 | }; | 3734 | 884 | SCN_TRY_ASSIGN(it, do_read_source_impl(r, cb, cb)); | 3735 | 856 | } | 3736 | 884 | } | 3737 | 856 | else { | 3738 | 856 | SCN_TRY_ASSIGN( | 3739 | 856 | it, | 3740 | 856 | do_read_source_impl( | 3741 | 856 | r, [&](const auto& rr) { return read_regular_float(rr); }, | 3742 | 856 | [&](const auto& rr) { return read_hexfloat(rr); })); | 3743 | 856 | } | 3744 | | | 3745 | 856 | SCN_EXPECT(m_kind != float_kind::tbd); | 3746 | | | 3747 | 856 | if (m_kind != float_kind::inf_short && m_kind != float_kind::inf_long && | 3748 | 856 | m_kind != float_kind::nan_simple && | 3749 | 856 | m_kind != float_kind::nan_with_payload) { | 3750 | 856 | this->m_buffer.assign(ranges::subrange{digits_begin, it}); | 3751 | 856 | } | 3752 | | | 3753 | 856 | handle_separators(); | 3754 | | | 3755 | 856 | if (!m_thsep_indices.empty()) { | 3756 | 0 | SCN_EXPECT(m_integral_part_length >= 0); | 3757 | 0 | if (auto e = check_thsep_grouping( | 3758 | 0 | ranges::subrange{ | 3759 | 0 | digits_begin, | 3760 | 0 | ranges::next(digits_begin, m_integral_part_length)}, | 3761 | 0 | m_thsep_indices, m_locale_options.grouping); | 3762 | 0 | SCN_UNLIKELY(!e)) { | 3763 | 0 | return unexpected(e); | 3764 | 0 | } | 3765 | 0 | } | 3766 | | | 3767 | 856 | return it; | 3768 | 856 | } |
Unexecuted instantiation: _ZN3scn2v34impl12float_readerIwE16read_source_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_ Unexecuted instantiation: _ZN3scn2v34impl12float_readerIwE16read_source_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_ _ZN3scn2v34impl12float_readerIwE16read_source_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_ Line | Count | Source | 3704 | 122 | { | 3705 | 122 | SCN_TRY(sign_result, | 3706 | 122 | parse_numeric_sign(range).transform_error(make_eof_scan_error)); | 3707 | 122 | auto it = sign_result.first; | 3708 | 122 | m_sign = sign_result.second; | 3709 | | | 3710 | 122 | auto digits_begin = it; | 3711 | 122 | auto r = ranges::subrange{it, range.end()}; | 3712 | 122 | if constexpr (ranges::contiguous_range<Range> && | 3713 | 122 | ranges::sized_range<Range>) { | 3714 | 122 | if (SCN_UNLIKELY(m_locale_options.thousands_sep != 0 || | 3715 | 122 | m_locale_options.decimal_point != CharT{'.'})) { | 3716 | 122 | SCN_TRY_ASSIGN( | 3717 | 122 | it, | 3718 | 122 | do_read_source_impl( | 3719 | 122 | r, | 3720 | 122 | [&](const auto& rr) { return read_regular_float(rr); }, | 3721 | 122 | [&](const auto& rr) { return read_hexfloat(rr); })); | 3722 | 122 | } | 3723 | 122 | else { | 3724 | 122 | auto cb = [&](const auto& rr) | 3725 | 122 | -> scan_expected<ranges::const_iterator_t<decltype(rr)>> { | 3726 | 122 | auto res = read_all(rr); | 3727 | 122 | if (SCN_UNLIKELY(res == r.begin())) { | 3728 | 122 | return unexpected_scan_error( | 3729 | 122 | scan_error::invalid_scanned_value, | 3730 | 122 | "Invalid float value"); | 3731 | 122 | } | 3732 | 122 | return res; | 3733 | 122 | }; | 3734 | 122 | SCN_TRY_ASSIGN(it, do_read_source_impl(r, cb, cb)); | 3735 | 122 | } | 3736 | 122 | } | 3737 | 122 | else { | 3738 | 122 | SCN_TRY_ASSIGN( | 3739 | 0 | it, | 3740 | 0 | do_read_source_impl( | 3741 | 0 | r, [&](const auto& rr) { return read_regular_float(rr); }, | 3742 | 0 | [&](const auto& rr) { return read_hexfloat(rr); })); | 3743 | 0 | } | 3744 | | | 3745 | 0 | SCN_EXPECT(m_kind != float_kind::tbd); | 3746 | | | 3747 | 0 | if (m_kind != float_kind::inf_short && m_kind != float_kind::inf_long && | 3748 | 0 | m_kind != float_kind::nan_simple && | 3749 | 0 | m_kind != float_kind::nan_with_payload) { | 3750 | 0 | this->m_buffer.assign(ranges::subrange{digits_begin, it}); | 3751 | 0 | } | 3752 | |
| 3753 | 0 | handle_separators(); | 3754 | |
| 3755 | 0 | if (!m_thsep_indices.empty()) { | 3756 | 0 | SCN_EXPECT(m_integral_part_length >= 0); | 3757 | 0 | if (auto e = check_thsep_grouping( | 3758 | 0 | ranges::subrange{ | 3759 | 0 | digits_begin, | 3760 | 0 | ranges::next(digits_begin, m_integral_part_length)}, | 3761 | 0 | m_thsep_indices, m_locale_options.grouping); | 3762 | 0 | SCN_UNLIKELY(!e)) { | 3763 | 0 | return unexpected(e); | 3764 | 0 | } | 3765 | 0 | } | 3766 | | | 3767 | 0 | return it; | 3768 | 0 | } |
_ZN3scn2v34impl12float_readerIwE16read_source_implINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_ Line | Count | Source | 3704 | 10.3k | { | 3705 | 10.3k | SCN_TRY(sign_result, | 3706 | 10.3k | parse_numeric_sign(range).transform_error(make_eof_scan_error)); | 3707 | 10.3k | auto it = sign_result.first; | 3708 | 10.3k | m_sign = sign_result.second; | 3709 | | | 3710 | 10.3k | auto digits_begin = it; | 3711 | 10.3k | auto r = ranges::subrange{it, range.end()}; | 3712 | 10.3k | if constexpr (ranges::contiguous_range<Range> && | 3713 | 10.3k | ranges::sized_range<Range>) { | 3714 | 10.3k | if (SCN_UNLIKELY(m_locale_options.thousands_sep != 0 || | 3715 | 10.3k | m_locale_options.decimal_point != CharT{'.'})) { | 3716 | 0 | SCN_TRY_ASSIGN( | 3717 | 0 | it, | 3718 | 0 | do_read_source_impl( | 3719 | 0 | r, | 3720 | 0 | [&](const auto& rr) { return read_regular_float(rr); }, | 3721 | 0 | [&](const auto& rr) { return read_hexfloat(rr); })); | 3722 | 0 | } | 3723 | 10.3k | else { | 3724 | 10.3k | auto cb = [&](const auto& rr) | 3725 | 10.3k | -> scan_expected<ranges::const_iterator_t<decltype(rr)>> { | 3726 | 10.3k | auto res = read_all(rr); | 3727 | 10.3k | if (SCN_UNLIKELY(res == r.begin())) { | 3728 | 10.3k | return unexpected_scan_error( | 3729 | 10.3k | scan_error::invalid_scanned_value, | 3730 | 10.3k | "Invalid float value"); | 3731 | 10.3k | } | 3732 | 10.3k | return res; | 3733 | 10.3k | }; | 3734 | 10.3k | SCN_TRY_ASSIGN(it, do_read_source_impl(r, cb, cb)); | 3735 | 10.3k | } | 3736 | 10.3k | } | 3737 | 10.3k | else { | 3738 | 10.3k | SCN_TRY_ASSIGN( | 3739 | 10.3k | it, | 3740 | 10.3k | do_read_source_impl( | 3741 | 10.3k | r, [&](const auto& rr) { return read_regular_float(rr); }, | 3742 | 10.3k | [&](const auto& rr) { return read_hexfloat(rr); })); | 3743 | 10.3k | } | 3744 | | | 3745 | 10.3k | SCN_EXPECT(m_kind != float_kind::tbd); | 3746 | | | 3747 | 10.3k | if (m_kind != float_kind::inf_short && m_kind != float_kind::inf_long && | 3748 | 10.3k | m_kind != float_kind::nan_simple && | 3749 | 10.3k | m_kind != float_kind::nan_with_payload) { | 3750 | 10.3k | this->m_buffer.assign(ranges::subrange{digits_begin, it}); | 3751 | 10.3k | } | 3752 | | | 3753 | 10.3k | handle_separators(); | 3754 | | | 3755 | 10.3k | if (!m_thsep_indices.empty()) { | 3756 | 0 | SCN_EXPECT(m_integral_part_length >= 0); | 3757 | 0 | if (auto e = check_thsep_grouping( | 3758 | 0 | ranges::subrange{ | 3759 | 0 | digits_begin, | 3760 | 0 | ranges::next(digits_begin, m_integral_part_length)}, | 3761 | 0 | m_thsep_indices, m_locale_options.grouping); | 3762 | 0 | SCN_UNLIKELY(!e)) { | 3763 | 0 | return unexpected(e); | 3764 | 0 | } | 3765 | 0 | } | 3766 | | | 3767 | 10.3k | return it; | 3768 | 10.3k | } |
|
3769 | | |
3770 | | template <typename Range> |
3771 | | auto read_dec_digits(Range range, bool thsep_allowed) |
3772 | | -> parse_expected<ranges::const_iterator_t<Range>> |
3773 | 414 | { |
3774 | 414 | if (SCN_UNLIKELY(m_locale_options.thousands_sep != 0 && |
3775 | 414 | thsep_allowed)) { |
3776 | 0 | return read_while1_code_unit(range, [&](char_type ch) noexcept { |
3777 | 0 | return char_to_int(ch) < 10 || |
3778 | 0 | ch == m_locale_options.thousands_sep; |
3779 | 0 | }); Unexecuted instantiation: _ZZN3scn2v34impl12float_readerIcE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEENS1_15take_width_viewINS8_ISE_SF_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESQ_bENKUlcE_clEc Unexecuted instantiation: _ZZN3scn2v34impl12float_readerIcE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_bENKUlcE_clEc Unexecuted instantiation: _ZZN3scn2v34impl12float_readerIcE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSC_EENS1_15take_width_viewINS8_ISC_SC_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESN_bENKUlcE_clEc Unexecuted instantiation: _ZZN3scn2v34impl12float_readerIcE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_bENKUlcE_clEc Unexecuted instantiation: _ZZN3scn2v34impl12float_readerIwE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEENS1_15take_width_viewINS8_ISE_SF_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESQ_bENKUlwE_clEw Unexecuted instantiation: _ZZN3scn2v34impl12float_readerIwE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_bENKUlwE_clEw Unexecuted instantiation: _ZZN3scn2v34impl12float_readerIwE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSC_EENS1_15take_width_viewINS8_ISC_SC_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESN_bENKUlwE_clEw Unexecuted instantiation: _ZZN3scn2v34impl12float_readerIwE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_bENKUlwE_clEw |
3780 | 0 | } |
3781 | | |
3782 | 414 | return read_while1_code_unit( |
3783 | 414 | range, [](char_type ch) noexcept { return char_to_int(ch) < 10; });Unexecuted instantiation: _ZZN3scn2v34impl12float_readerIcE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEENS1_15take_width_viewINS8_ISE_SF_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESQ_bENKUlcE0_clEc Unexecuted instantiation: _ZZN3scn2v34impl12float_readerIcE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_bENKUlcE0_clEc _ZZN3scn2v34impl12float_readerIcE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSC_EENS1_15take_width_viewINS8_ISC_SC_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESN_bENKUlcE0_clEc Line | Count | Source | 3783 | 264 | range, [](char_type ch) noexcept { return char_to_int(ch) < 10; }); |
_ZZN3scn2v34impl12float_readerIcE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_bENKUlcE0_clEc Line | Count | Source | 3783 | 28 | range, [](char_type ch) noexcept { return char_to_int(ch) < 10; }); |
Unexecuted instantiation: _ZZN3scn2v34impl12float_readerIwE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEENS1_15take_width_viewINS8_ISE_SF_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESQ_bENKUlwE0_clEw Unexecuted instantiation: _ZZN3scn2v34impl12float_readerIwE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_bENKUlwE0_clEw _ZZN3scn2v34impl12float_readerIwE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSC_EENS1_15take_width_viewINS8_ISC_SC_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESN_bENKUlwE0_clEw Line | Count | Source | 3783 | 116 | range, [](char_type ch) noexcept { return char_to_int(ch) < 10; }); |
_ZZN3scn2v34impl12float_readerIwE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_bENKUlwE0_clEw Line | Count | Source | 3783 | 6 | range, [](char_type ch) noexcept { return char_to_int(ch) < 10; }); |
|
3784 | 414 | } Unexecuted instantiation: _ZN3scn2v34impl12float_readerIcE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEENS1_15take_width_viewINS8_ISE_SF_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESQ_b Unexecuted instantiation: _ZN3scn2v34impl12float_readerIcE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_b _ZN3scn2v34impl12float_readerIcE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSC_EENS1_15take_width_viewINS8_ISC_SC_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESN_b Line | Count | Source | 3773 | 264 | { | 3774 | 264 | if (SCN_UNLIKELY(m_locale_options.thousands_sep != 0 && | 3775 | 264 | thsep_allowed)) { | 3776 | 0 | return read_while1_code_unit(range, [&](char_type ch) noexcept { | 3777 | 0 | return char_to_int(ch) < 10 || | 3778 | 0 | ch == m_locale_options.thousands_sep; | 3779 | 0 | }); | 3780 | 0 | } | 3781 | | | 3782 | 264 | return read_while1_code_unit( | 3783 | 264 | range, [](char_type ch) noexcept { return char_to_int(ch) < 10; }); | 3784 | 264 | } |
_ZN3scn2v34impl12float_readerIcE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_b Line | Count | Source | 3773 | 28 | { | 3774 | 28 | if (SCN_UNLIKELY(m_locale_options.thousands_sep != 0 && | 3775 | 28 | thsep_allowed)) { | 3776 | 0 | return read_while1_code_unit(range, [&](char_type ch) noexcept { | 3777 | 0 | return char_to_int(ch) < 10 || | 3778 | 0 | ch == m_locale_options.thousands_sep; | 3779 | 0 | }); | 3780 | 0 | } | 3781 | | | 3782 | 28 | return read_while1_code_unit( | 3783 | 28 | range, [](char_type ch) noexcept { return char_to_int(ch) < 10; }); | 3784 | 28 | } |
Unexecuted instantiation: _ZN3scn2v34impl12float_readerIwE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEENS1_15take_width_viewINS8_ISE_SF_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESQ_b Unexecuted instantiation: _ZN3scn2v34impl12float_readerIwE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_b _ZN3scn2v34impl12float_readerIwE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSC_EENS1_15take_width_viewINS8_ISC_SC_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESN_b Line | Count | Source | 3773 | 116 | { | 3774 | 116 | if (SCN_UNLIKELY(m_locale_options.thousands_sep != 0 && | 3775 | 116 | thsep_allowed)) { | 3776 | 0 | return read_while1_code_unit(range, [&](char_type ch) noexcept { | 3777 | 0 | return char_to_int(ch) < 10 || | 3778 | 0 | ch == m_locale_options.thousands_sep; | 3779 | 0 | }); | 3780 | 0 | } | 3781 | | | 3782 | 116 | return read_while1_code_unit( | 3783 | 116 | range, [](char_type ch) noexcept { return char_to_int(ch) < 10; }); | 3784 | 116 | } |
_ZN3scn2v34impl12float_readerIwE15read_dec_digitsINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_b Line | Count | Source | 3773 | 6 | { | 3774 | 6 | if (SCN_UNLIKELY(m_locale_options.thousands_sep != 0 && | 3775 | 6 | thsep_allowed)) { | 3776 | 0 | return read_while1_code_unit(range, [&](char_type ch) noexcept { | 3777 | 0 | return char_to_int(ch) < 10 || | 3778 | 0 | ch == m_locale_options.thousands_sep; | 3779 | 0 | }); | 3780 | 0 | } | 3781 | | | 3782 | 6 | return read_while1_code_unit( | 3783 | 6 | range, [](char_type ch) noexcept { return char_to_int(ch) < 10; }); | 3784 | 6 | } |
|
3785 | | template <typename Range> |
3786 | | auto read_hex_digits(Range range, bool thsep_allowed) |
3787 | | -> parse_expected<ranges::const_iterator_t<Range>> |
3788 | 12 | { |
3789 | 12 | if (SCN_UNLIKELY(m_locale_options.thousands_sep != 0 && |
3790 | 12 | thsep_allowed)) { |
3791 | 0 | return read_while1_code_unit(range, [&](char_type ch) noexcept { |
3792 | 0 | return char_to_int(ch) < 16 || |
3793 | 0 | ch == m_locale_options.thousands_sep; |
3794 | 0 | }); Unexecuted instantiation: _ZZN3scn2v34impl12float_readerIcE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEENS1_15take_width_viewINS8_ISE_SF_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESQ_bENKUlcE_clEc Unexecuted instantiation: _ZZN3scn2v34impl12float_readerIcE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_bENKUlcE_clEc Unexecuted instantiation: _ZZN3scn2v34impl12float_readerIcE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSC_EENS1_15take_width_viewINS8_ISC_SC_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESN_bENKUlcE_clEc Unexecuted instantiation: _ZZN3scn2v34impl12float_readerIcE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_bENKUlcE_clEc Unexecuted instantiation: _ZZN3scn2v34impl12float_readerIwE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEENS1_15take_width_viewINS8_ISE_SF_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESQ_bENKUlwE_clEw Unexecuted instantiation: _ZZN3scn2v34impl12float_readerIwE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_bENKUlwE_clEw Unexecuted instantiation: _ZZN3scn2v34impl12float_readerIwE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSC_EENS1_15take_width_viewINS8_ISC_SC_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESN_bENKUlwE_clEw Unexecuted instantiation: _ZZN3scn2v34impl12float_readerIwE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_bENKUlwE_clEw |
3795 | 0 | } |
3796 | | |
3797 | 12 | return read_while1_code_unit( |
3798 | 12 | range, [](char_type ch) noexcept { return char_to_int(ch) < 16; });Unexecuted instantiation: _ZZN3scn2v34impl12float_readerIcE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEENS1_15take_width_viewINS8_ISE_SF_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESQ_bENKUlcE0_clEc Unexecuted instantiation: _ZZN3scn2v34impl12float_readerIcE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_bENKUlcE0_clEc _ZZN3scn2v34impl12float_readerIcE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSC_EENS1_15take_width_viewINS8_ISC_SC_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESN_bENKUlcE0_clEc Line | Count | Source | 3798 | 6 | range, [](char_type ch) noexcept { return char_to_int(ch) < 16; }); |
Unexecuted instantiation: _ZZN3scn2v34impl12float_readerIcE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_bENKUlcE0_clEc Unexecuted instantiation: _ZZN3scn2v34impl12float_readerIwE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEENS1_15take_width_viewINS8_ISE_SF_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESQ_bENKUlwE0_clEw Unexecuted instantiation: _ZZN3scn2v34impl12float_readerIwE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_bENKUlwE0_clEw _ZZN3scn2v34impl12float_readerIwE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSC_EENS1_15take_width_viewINS8_ISC_SC_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESN_bENKUlwE0_clEw Line | Count | Source | 3798 | 6 | range, [](char_type ch) noexcept { return char_to_int(ch) < 16; }); |
Unexecuted instantiation: _ZZN3scn2v34impl12float_readerIwE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_bENKUlwE0_clEw |
3799 | 12 | } Unexecuted instantiation: _ZN3scn2v34impl12float_readerIcE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEENS1_15take_width_viewINS8_ISE_SF_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESQ_b Unexecuted instantiation: _ZN3scn2v34impl12float_readerIcE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_b _ZN3scn2v34impl12float_readerIcE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSC_EENS1_15take_width_viewINS8_ISC_SC_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESN_b Line | Count | Source | 3788 | 6 | { | 3789 | 6 | if (SCN_UNLIKELY(m_locale_options.thousands_sep != 0 && | 3790 | 6 | thsep_allowed)) { | 3791 | 0 | return read_while1_code_unit(range, [&](char_type ch) noexcept { | 3792 | 0 | return char_to_int(ch) < 16 || | 3793 | 0 | ch == m_locale_options.thousands_sep; | 3794 | 0 | }); | 3795 | 0 | } | 3796 | | | 3797 | 6 | return read_while1_code_unit( | 3798 | 6 | range, [](char_type ch) noexcept { return char_to_int(ch) < 16; }); | 3799 | 6 | } |
Unexecuted instantiation: _ZN3scn2v34impl12float_readerIcE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_b Unexecuted instantiation: _ZN3scn2v34impl12float_readerIwE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEENS1_15take_width_viewINS8_ISE_SF_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESQ_b Unexecuted instantiation: _ZN3scn2v34impl12float_readerIwE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_b _ZN3scn2v34impl12float_readerIwE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSC_EENS1_15take_width_viewINS8_ISC_SC_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESN_b Line | Count | Source | 3788 | 6 | { | 3789 | 6 | if (SCN_UNLIKELY(m_locale_options.thousands_sep != 0 && | 3790 | 6 | thsep_allowed)) { | 3791 | 0 | return read_while1_code_unit(range, [&](char_type ch) noexcept { | 3792 | 0 | return char_to_int(ch) < 16 || | 3793 | 0 | ch == m_locale_options.thousands_sep; | 3794 | 0 | }); | 3795 | 0 | } | 3796 | | | 3797 | 6 | return read_while1_code_unit( | 3798 | 6 | range, [](char_type ch) noexcept { return char_to_int(ch) < 16; }); | 3799 | 6 | } |
Unexecuted instantiation: _ZN3scn2v34impl12float_readerIwE15read_hex_digitsINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_b |
3800 | | template <typename Range> |
3801 | | auto read_hex_prefix(Range range) |
3802 | | -> parse_expected<ranges::const_iterator_t<Range>> |
3803 | 11.5k | { |
3804 | 11.5k | return read_matching_string_classic_nocase(range, "0x"); |
3805 | 11.5k | } Unexecuted instantiation: _ZN3scn2v34impl12float_readerIcE15read_hex_prefixINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEENS1_15take_width_viewINS8_ISE_SF_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESQ_ Unexecuted instantiation: _ZN3scn2v34impl12float_readerIcE15read_hex_prefixINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_ _ZN3scn2v34impl12float_readerIcE15read_hex_prefixINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSC_EENS1_15take_width_viewINS8_ISC_SC_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESN_ Line | Count | Source | 3803 | 252 | { | 3804 | 252 | return read_matching_string_classic_nocase(range, "0x"); | 3805 | 252 | } |
_ZN3scn2v34impl12float_readerIcE15read_hex_prefixINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_ Line | Count | Source | 3803 | 856 | { | 3804 | 856 | return read_matching_string_classic_nocase(range, "0x"); | 3805 | 856 | } |
Unexecuted instantiation: _ZN3scn2v34impl12float_readerIwE15read_hex_prefixINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEENS1_15take_width_viewINS8_ISE_SF_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESQ_ Unexecuted instantiation: _ZN3scn2v34impl12float_readerIwE15read_hex_prefixINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_ _ZN3scn2v34impl12float_readerIwE15read_hex_prefixINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSC_EENS1_15take_width_viewINS8_ISC_SC_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESN_ Line | Count | Source | 3803 | 114 | { | 3804 | 114 | return read_matching_string_classic_nocase(range, "0x"); | 3805 | 114 | } |
_ZN3scn2v34impl12float_readerIwE15read_hex_prefixINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_ Line | Count | Source | 3803 | 10.3k | { | 3804 | 10.3k | return read_matching_string_classic_nocase(range, "0x"); | 3805 | 10.3k | } |
|
3806 | | |
3807 | | template <typename Range> |
3808 | | auto read_inf(Range range) |
3809 | | -> parse_expected<ranges::const_iterator_t<Range>> |
3810 | 11.6k | { |
3811 | 11.6k | auto it = range.begin(); |
3812 | 11.6k | if (auto r = read_matching_string_classic_nocase(range, "inf"); !r) { |
3813 | 11.6k | return unexpected(r.error()); |
3814 | 11.6k | } |
3815 | 0 | else { |
3816 | 0 | it = *r; |
3817 | 0 | } |
3818 | | |
3819 | 0 | if (auto r = read_matching_string_classic_nocase( |
3820 | 0 | ranges::subrange{it, range.end()}, "inity"); |
3821 | 0 | !r) { |
3822 | 0 | m_kind = float_kind::inf_short; |
3823 | 0 | return it; |
3824 | 0 | } |
3825 | 0 | else { |
3826 | 0 | m_kind = float_kind::inf_long; |
3827 | 0 | return *r; |
3828 | 0 | } |
3829 | 0 | } Unexecuted instantiation: _ZN3scn2v34impl12float_readerIcE8read_infINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEENS1_15take_width_viewINS8_ISE_SF_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESQ_ Unexecuted instantiation: _ZN3scn2v34impl12float_readerIcE8read_infINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_ _ZN3scn2v34impl12float_readerIcE8read_infINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSC_EENS1_15take_width_viewINS8_ISC_SC_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESN_ Line | Count | Source | 3810 | 270 | { | 3811 | 270 | auto it = range.begin(); | 3812 | 270 | if (auto r = read_matching_string_classic_nocase(range, "inf"); !r) { | 3813 | 270 | return unexpected(r.error()); | 3814 | 270 | } | 3815 | 0 | else { | 3816 | 0 | it = *r; | 3817 | 0 | } | 3818 | | | 3819 | 0 | if (auto r = read_matching_string_classic_nocase( | 3820 | 0 | ranges::subrange{it, range.end()}, "inity"); | 3821 | 0 | !r) { | 3822 | 0 | m_kind = float_kind::inf_short; | 3823 | 0 | return it; | 3824 | 0 | } | 3825 | 0 | else { | 3826 | 0 | m_kind = float_kind::inf_long; | 3827 | 0 | return *r; | 3828 | 0 | } | 3829 | 0 | } |
_ZN3scn2v34impl12float_readerIcE8read_infINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_ Line | Count | Source | 3810 | 884 | { | 3811 | 884 | auto it = range.begin(); | 3812 | 884 | if (auto r = read_matching_string_classic_nocase(range, "inf"); !r) { | 3813 | 884 | return unexpected(r.error()); | 3814 | 884 | } | 3815 | 0 | else { | 3816 | 0 | it = *r; | 3817 | 0 | } | 3818 | | | 3819 | 0 | if (auto r = read_matching_string_classic_nocase( | 3820 | 0 | ranges::subrange{it, range.end()}, "inity"); | 3821 | 0 | !r) { | 3822 | 0 | m_kind = float_kind::inf_short; | 3823 | 0 | return it; | 3824 | 0 | } | 3825 | 0 | else { | 3826 | 0 | m_kind = float_kind::inf_long; | 3827 | 0 | return *r; | 3828 | 0 | } | 3829 | 0 | } |
Unexecuted instantiation: _ZN3scn2v34impl12float_readerIwE8read_infINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEENS1_15take_width_viewINS8_ISE_SF_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESQ_ Unexecuted instantiation: _ZN3scn2v34impl12float_readerIwE8read_infINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_ _ZN3scn2v34impl12float_readerIwE8read_infINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSC_EENS1_15take_width_viewINS8_ISC_SC_EEE8sentinelILb1EEEEEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESN_ Line | Count | Source | 3810 | 122 | { | 3811 | 122 | auto it = range.begin(); | 3812 | 122 | if (auto r = read_matching_string_classic_nocase(range, "inf"); !r) { | 3813 | 122 | return unexpected(r.error()); | 3814 | 122 | } | 3815 | 0 | else { | 3816 | 0 | it = *r; | 3817 | 0 | } | 3818 | | | 3819 | 0 | if (auto r = read_matching_string_classic_nocase( | 3820 | 0 | ranges::subrange{it, range.end()}, "inity"); | 3821 | 0 | !r) { | 3822 | 0 | m_kind = float_kind::inf_short; | 3823 | 0 | return it; | 3824 | 0 | } | 3825 | 0 | else { | 3826 | 0 | m_kind = float_kind::inf_long; | 3827 | 0 | return *r; | 3828 | 0 | } | 3829 | 0 | } |
_ZN3scn2v34impl12float_readerIwE8read_infINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEEENS1_14parse_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_ Line | Count | Source | 3810 | 10.3k | { | 3811 | 10.3k | auto it = range.begin(); | 3812 | 10.3k | if (auto r = read_matching_string_classic_nocase(range, "inf"); !r) { | 3813 | 10.3k | return unexpected(r.error()); | 3814 | 10.3k | } | 3815 | 0 | else { | 3816 | 0 | it = *r; | 3817 | 0 | } | 3818 | | | 3819 | 0 | if (auto r = read_matching_string_classic_nocase( | 3820 | 0 | ranges::subrange{it, range.end()}, "inity"); | 3821 | 0 | !r) { | 3822 | 0 | m_kind = float_kind::inf_short; | 3823 | 0 | return it; | 3824 | 0 | } | 3825 | 0 | else { | 3826 | 0 | m_kind = float_kind::inf_long; | 3827 | 0 | return *r; | 3828 | 0 | } | 3829 | 0 | } |
|
3830 | | |
3831 | | template <typename Range> |
3832 | | auto read_nan(Range range) -> scan_expected<ranges::const_iterator_t<Range>> |
3833 | 11.6k | { |
3834 | 11.6k | auto it = range.begin(); |
3835 | 11.6k | if (auto r = read_matching_string_classic_nocase(range, "nan"); !r) { |
3836 | 11.6k | return r.transform_error(map_parse_error_to_scan_error( |
3837 | 11.6k | scan_error::invalid_scanned_value, |
3838 | 11.6k | "Invalid floating-point NaN value")); |
3839 | 11.6k | } |
3840 | 0 | else { |
3841 | 0 | it = *r; |
3842 | 0 | } |
3843 | | |
3844 | 0 | if (auto r = |
3845 | 0 | read_matching_code_unit(ranges::subrange{it, range.end()}, '('); |
3846 | 0 | !r) { |
3847 | 0 | m_kind = float_kind::nan_simple; |
3848 | 0 | return it; |
3849 | 0 | } |
3850 | 0 | else { |
3851 | 0 | it = *r; |
3852 | 0 | } |
3853 | | |
3854 | 0 | auto payload_beg_it = it; |
3855 | 0 | it = read_while_code_unit( |
3856 | 0 | ranges::subrange{it, range.end()}, [](char_type ch) noexcept { |
3857 | 0 | return is_ascii_char(ch) && |
3858 | 0 | ((ch >= '0' && ch <= '9') || (ch >= 'a' && ch <= 'z') || |
3859 | 0 | (ch >= 'A' && ch <= 'Z') || ch == '_'); |
3860 | 0 | }); Unexecuted instantiation: _ZZN3scn2v34impl12float_readerIcE8read_nanINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEENS1_15take_width_viewINS8_ISE_SF_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESQ_ENKUlcE_clEc Unexecuted instantiation: _ZZN3scn2v34impl12float_readerIcE8read_nanINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_ENKUlcE_clEc Unexecuted instantiation: _ZZN3scn2v34impl12float_readerIcE8read_nanINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSC_EENS1_15take_width_viewINS8_ISC_SC_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESN_ENKUlcE_clEc Unexecuted instantiation: _ZZN3scn2v34impl12float_readerIcE8read_nanINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_ENKUlcE_clEc Unexecuted instantiation: _ZZN3scn2v34impl12float_readerIwE8read_nanINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEENS1_15take_width_viewINS8_ISE_SF_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESQ_ENKUlwE_clEw Unexecuted instantiation: _ZZN3scn2v34impl12float_readerIwE8read_nanINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_ENKUlwE_clEw Unexecuted instantiation: _ZZN3scn2v34impl12float_readerIwE8read_nanINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSC_EENS1_15take_width_viewINS8_ISC_SC_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESN_ENKUlwE_clEw Unexecuted instantiation: _ZZN3scn2v34impl12float_readerIwE8read_nanINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_ENKUlwE_clEw |
3861 | 0 | m_nan_payload_buffer.assign(ranges::subrange{payload_beg_it, it}); |
3862 | |
|
3863 | 0 | m_kind = float_kind::nan_with_payload; |
3864 | 0 | if (auto r = read_matching_code_unit(ranges::subrange{it, range.end()}, |
3865 | 0 | ')')) { |
3866 | 0 | return *r; |
3867 | 0 | } |
3868 | 0 | return unexpected_scan_error(scan_error::invalid_scanned_value, |
3869 | 0 | "Invalid floating-point NaN payload"); |
3870 | 0 | } Unexecuted instantiation: _ZN3scn2v34impl12float_readerIcE8read_nanINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEENS1_15take_width_viewINS8_ISE_SF_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESQ_ Unexecuted instantiation: _ZN3scn2v34impl12float_readerIcE8read_nanINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_ _ZN3scn2v34impl12float_readerIcE8read_nanINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSC_EENS1_15take_width_viewINS8_ISC_SC_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESN_ Line | Count | Source | 3833 | 270 | { | 3834 | 270 | auto it = range.begin(); | 3835 | 270 | if (auto r = read_matching_string_classic_nocase(range, "nan"); !r) { | 3836 | 270 | return r.transform_error(map_parse_error_to_scan_error( | 3837 | 270 | scan_error::invalid_scanned_value, | 3838 | 270 | "Invalid floating-point NaN value")); | 3839 | 270 | } | 3840 | 0 | else { | 3841 | 0 | it = *r; | 3842 | 0 | } | 3843 | | | 3844 | 0 | if (auto r = | 3845 | 0 | read_matching_code_unit(ranges::subrange{it, range.end()}, '('); | 3846 | 0 | !r) { | 3847 | 0 | m_kind = float_kind::nan_simple; | 3848 | 0 | return it; | 3849 | 0 | } | 3850 | 0 | else { | 3851 | 0 | it = *r; | 3852 | 0 | } | 3853 | | | 3854 | 0 | auto payload_beg_it = it; | 3855 | 0 | it = read_while_code_unit( | 3856 | 0 | ranges::subrange{it, range.end()}, [](char_type ch) noexcept { | 3857 | 0 | return is_ascii_char(ch) && | 3858 | 0 | ((ch >= '0' && ch <= '9') || (ch >= 'a' && ch <= 'z') || | 3859 | 0 | (ch >= 'A' && ch <= 'Z') || ch == '_'); | 3860 | 0 | }); | 3861 | 0 | m_nan_payload_buffer.assign(ranges::subrange{payload_beg_it, it}); | 3862 | |
| 3863 | 0 | m_kind = float_kind::nan_with_payload; | 3864 | 0 | if (auto r = read_matching_code_unit(ranges::subrange{it, range.end()}, | 3865 | 0 | ')')) { | 3866 | 0 | return *r; | 3867 | 0 | } | 3868 | 0 | return unexpected_scan_error(scan_error::invalid_scanned_value, | 3869 | 0 | "Invalid floating-point NaN payload"); | 3870 | 0 | } |
_ZN3scn2v34impl12float_readerIcE8read_nanINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_ Line | Count | Source | 3833 | 884 | { | 3834 | 884 | auto it = range.begin(); | 3835 | 884 | if (auto r = read_matching_string_classic_nocase(range, "nan"); !r) { | 3836 | 884 | return r.transform_error(map_parse_error_to_scan_error( | 3837 | 884 | scan_error::invalid_scanned_value, | 3838 | 884 | "Invalid floating-point NaN value")); | 3839 | 884 | } | 3840 | 0 | else { | 3841 | 0 | it = *r; | 3842 | 0 | } | 3843 | | | 3844 | 0 | if (auto r = | 3845 | 0 | read_matching_code_unit(ranges::subrange{it, range.end()}, '('); | 3846 | 0 | !r) { | 3847 | 0 | m_kind = float_kind::nan_simple; | 3848 | 0 | return it; | 3849 | 0 | } | 3850 | 0 | else { | 3851 | 0 | it = *r; | 3852 | 0 | } | 3853 | | | 3854 | 0 | auto payload_beg_it = it; | 3855 | 0 | it = read_while_code_unit( | 3856 | 0 | ranges::subrange{it, range.end()}, [](char_type ch) noexcept { | 3857 | 0 | return is_ascii_char(ch) && | 3858 | 0 | ((ch >= '0' && ch <= '9') || (ch >= 'a' && ch <= 'z') || | 3859 | 0 | (ch >= 'A' && ch <= 'Z') || ch == '_'); | 3860 | 0 | }); | 3861 | 0 | m_nan_payload_buffer.assign(ranges::subrange{payload_beg_it, it}); | 3862 | |
| 3863 | 0 | m_kind = float_kind::nan_with_payload; | 3864 | 0 | if (auto r = read_matching_code_unit(ranges::subrange{it, range.end()}, | 3865 | 0 | ')')) { | 3866 | 0 | return *r; | 3867 | 0 | } | 3868 | 0 | return unexpected_scan_error(scan_error::invalid_scanned_value, | 3869 | 0 | "Invalid floating-point NaN payload"); | 3870 | 0 | } |
Unexecuted instantiation: _ZN3scn2v34impl12float_readerIwE8read_nanINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEENS1_15take_width_viewINS8_ISE_SF_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESQ_ Unexecuted instantiation: _ZN3scn2v34impl12float_readerIwE8read_nanINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_ _ZN3scn2v34impl12float_readerIwE8read_nanINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSC_EENS1_15take_width_viewINS8_ISC_SC_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESN_ Line | Count | Source | 3833 | 122 | { | 3834 | 122 | auto it = range.begin(); | 3835 | 122 | if (auto r = read_matching_string_classic_nocase(range, "nan"); !r) { | 3836 | 122 | return r.transform_error(map_parse_error_to_scan_error( | 3837 | 122 | scan_error::invalid_scanned_value, | 3838 | 122 | "Invalid floating-point NaN value")); | 3839 | 122 | } | 3840 | 0 | else { | 3841 | 0 | it = *r; | 3842 | 0 | } | 3843 | | | 3844 | 0 | if (auto r = | 3845 | 0 | read_matching_code_unit(ranges::subrange{it, range.end()}, '('); | 3846 | 0 | !r) { | 3847 | 0 | m_kind = float_kind::nan_simple; | 3848 | 0 | return it; | 3849 | 0 | } | 3850 | 0 | else { | 3851 | 0 | it = *r; | 3852 | 0 | } | 3853 | | | 3854 | 0 | auto payload_beg_it = it; | 3855 | 0 | it = read_while_code_unit( | 3856 | 0 | ranges::subrange{it, range.end()}, [](char_type ch) noexcept { | 3857 | 0 | return is_ascii_char(ch) && | 3858 | 0 | ((ch >= '0' && ch <= '9') || (ch >= 'a' && ch <= 'z') || | 3859 | 0 | (ch >= 'A' && ch <= 'Z') || ch == '_'); | 3860 | 0 | }); | 3861 | 0 | m_nan_payload_buffer.assign(ranges::subrange{payload_beg_it, it}); | 3862 | |
| 3863 | 0 | m_kind = float_kind::nan_with_payload; | 3864 | 0 | if (auto r = read_matching_code_unit(ranges::subrange{it, range.end()}, | 3865 | 0 | ')')) { | 3866 | 0 | return *r; | 3867 | 0 | } | 3868 | 0 | return unexpected_scan_error(scan_error::invalid_scanned_value, | 3869 | 0 | "Invalid floating-point NaN payload"); | 3870 | 0 | } |
_ZN3scn2v34impl12float_readerIwE8read_nanINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_ Line | Count | Source | 3833 | 10.3k | { | 3834 | 10.3k | auto it = range.begin(); | 3835 | 10.3k | if (auto r = read_matching_string_classic_nocase(range, "nan"); !r) { | 3836 | 10.3k | return r.transform_error(map_parse_error_to_scan_error( | 3837 | 10.3k | scan_error::invalid_scanned_value, | 3838 | 10.3k | "Invalid floating-point NaN value")); | 3839 | 10.3k | } | 3840 | 0 | else { | 3841 | 0 | it = *r; | 3842 | 0 | } | 3843 | | | 3844 | 0 | if (auto r = | 3845 | 0 | read_matching_code_unit(ranges::subrange{it, range.end()}, '('); | 3846 | 0 | !r) { | 3847 | 0 | m_kind = float_kind::nan_simple; | 3848 | 0 | return it; | 3849 | 0 | } | 3850 | 0 | else { | 3851 | 0 | it = *r; | 3852 | 0 | } | 3853 | | | 3854 | 0 | auto payload_beg_it = it; | 3855 | 0 | it = read_while_code_unit( | 3856 | 0 | ranges::subrange{it, range.end()}, [](char_type ch) noexcept { | 3857 | 0 | return is_ascii_char(ch) && | 3858 | 0 | ((ch >= '0' && ch <= '9') || (ch >= 'a' && ch <= 'z') || | 3859 | 0 | (ch >= 'A' && ch <= 'Z') || ch == '_'); | 3860 | 0 | }); | 3861 | 0 | m_nan_payload_buffer.assign(ranges::subrange{payload_beg_it, it}); | 3862 | |
| 3863 | 0 | m_kind = float_kind::nan_with_payload; | 3864 | 0 | if (auto r = read_matching_code_unit(ranges::subrange{it, range.end()}, | 3865 | 0 | ')')) { | 3866 | 0 | return *r; | 3867 | 0 | } | 3868 | 0 | return unexpected_scan_error(scan_error::invalid_scanned_value, | 3869 | 0 | "Invalid floating-point NaN payload"); | 3870 | 0 | } |
|
3871 | | |
3872 | | template <typename Range> |
3873 | | auto read_exponent(Range range, std::string_view exp) |
3874 | | -> ranges::const_iterator_t<Range> |
3875 | 0 | { |
3876 | 0 | if (auto r = read_one_of_code_unit(range, exp)) { |
3877 | 0 | auto beg_exp_it = range.begin(); |
3878 | 0 | auto it = *r; |
3879 | |
|
3880 | 0 | if (auto r_sign = |
3881 | 0 | parse_numeric_sign(ranges::subrange{it, range.end()})) { |
3882 | 0 | it = r_sign->first; |
3883 | 0 | } |
3884 | |
|
3885 | 0 | if (auto r_exp = read_while1_code_unit( |
3886 | 0 | ranges::subrange{it, range.end()}, |
3887 | 0 | [](char_type ch) noexcept { return char_to_int(ch) < 10; });Unexecuted instantiation: _ZZN3scn2v34impl12float_readerIcE13read_exponentINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEENS1_15take_width_viewINS8_ISE_SF_EEE8sentinelILb1EEEEEEEDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESP_NSN_17basic_string_viewIcNSN_11char_traitsIcEEEEENKUlcE_clEc Unexecuted instantiation: _ZZN3scn2v34impl12float_readerIcE13read_exponentINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEEEDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESH_NSF_17basic_string_viewIcNSF_11char_traitsIcEEEEENKUlcE_clEc Unexecuted instantiation: _ZZN3scn2v34impl12float_readerIcE13read_exponentINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSC_EENS1_15take_width_viewINS8_ISC_SC_EEE8sentinelILb1EEEEEEEDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESM_NSK_17basic_string_viewIcNSK_11char_traitsIcEEEEENKUlcE_clEc Unexecuted instantiation: _ZZN3scn2v34impl12float_readerIcE13read_exponentINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEEEDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESE_NSC_17basic_string_viewIcNSC_11char_traitsIcEEEEENKUlcE_clEc Unexecuted instantiation: _ZZN3scn2v34impl12float_readerIwE13read_exponentINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEENS1_15take_width_viewINS8_ISE_SF_EEE8sentinelILb1EEEEEEEDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESP_NSN_17basic_string_viewIcNSN_11char_traitsIcEEEEENKUlwE_clEw Unexecuted instantiation: _ZZN3scn2v34impl12float_readerIwE13read_exponentINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEEEDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESH_NSF_17basic_string_viewIcNSF_11char_traitsIcEEEEENKUlwE_clEw Unexecuted instantiation: _ZZN3scn2v34impl12float_readerIwE13read_exponentINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSC_EENS1_15take_width_viewINS8_ISC_SC_EEE8sentinelILb1EEEEEEEDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESM_NSK_17basic_string_viewIcNSK_11char_traitsIcEEEEENKUlwE_clEw Unexecuted instantiation: _ZZN3scn2v34impl12float_readerIwE13read_exponentINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEEEDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESE_NSC_17basic_string_viewIcNSC_11char_traitsIcEEEEENKUlwE_clEw |
3888 | 0 | SCN_UNLIKELY(!r_exp)) { |
3889 | 0 | it = beg_exp_it; |
3890 | 0 | } |
3891 | 0 | else { |
3892 | 0 | it = *r_exp; |
3893 | 0 | } |
3894 | |
|
3895 | 0 | return it; |
3896 | 0 | } |
3897 | 0 | return range.begin(); |
3898 | 0 | } Unexecuted instantiation: _ZN3scn2v34impl12float_readerIcE13read_exponentINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEENS1_15take_width_viewINS8_ISE_SF_EEE8sentinelILb1EEEEEEEDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESP_NSN_17basic_string_viewIcNSN_11char_traitsIcEEEE Unexecuted instantiation: _ZN3scn2v34impl12float_readerIcE13read_exponentINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEEEDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESH_NSF_17basic_string_viewIcNSF_11char_traitsIcEEEE Unexecuted instantiation: _ZN3scn2v34impl12float_readerIcE13read_exponentINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSC_EENS1_15take_width_viewINS8_ISC_SC_EEE8sentinelILb1EEEEEEEDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESM_NSK_17basic_string_viewIcNSK_11char_traitsIcEEEE Unexecuted instantiation: _ZN3scn2v34impl12float_readerIcE13read_exponentINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEEEDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESE_NSC_17basic_string_viewIcNSC_11char_traitsIcEEEE Unexecuted instantiation: _ZN3scn2v34impl12float_readerIwE13read_exponentINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEENS1_15take_width_viewINS8_ISE_SF_EEE8sentinelILb1EEEEEEEDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESP_NSN_17basic_string_viewIcNSN_11char_traitsIcEEEE Unexecuted instantiation: _ZN3scn2v34impl12float_readerIwE13read_exponentINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEEEDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESH_NSF_17basic_string_viewIcNSF_11char_traitsIcEEEE Unexecuted instantiation: _ZN3scn2v34impl12float_readerIwE13read_exponentINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSC_EENS1_15take_width_viewINS8_ISC_SC_EEE8sentinelILb1EEEEEEEDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESM_NSK_17basic_string_viewIcNSK_11char_traitsIcEEEE Unexecuted instantiation: _ZN3scn2v34impl12float_readerIwE13read_exponentINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEEEDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEESE_NSC_17basic_string_viewIcNSC_11char_traitsIcEEEE |
3899 | | |
3900 | | template <typename Range> |
3901 | | auto read_hexfloat(Range range) |
3902 | | -> scan_expected<ranges::const_iterator_t<Range>> |
3903 | 12 | { |
3904 | 12 | auto it = range.begin(); |
3905 | | |
3906 | 12 | std::ptrdiff_t digits_count = 0; |
3907 | 12 | if (auto r = read_hex_digits(ranges::subrange{it, range.end()}, true); |
3908 | 12 | SCN_UNLIKELY(!r)) { |
3909 | 12 | return r.transform_error(map_parse_error_to_scan_error( |
3910 | 12 | scan_error::invalid_scanned_value, |
3911 | 12 | "Invalid hexadecimal floating-point value")); |
3912 | 12 | } |
3913 | 0 | else { |
3914 | 0 | digits_count += ranges::distance(it, *r); |
3915 | 0 | it = *r; |
3916 | 0 | } |
3917 | | |
3918 | 0 | m_integral_part_length = digits_count; |
3919 | 0 | if (auto r = read_matching_code_unit(ranges::subrange{it, range.end()}, |
3920 | 0 | m_locale_options.decimal_point)) { |
3921 | 0 | it = *r; |
3922 | 0 | } |
3923 | |
|
3924 | 0 | if (auto r = |
3925 | 0 | read_hex_digits(ranges::subrange{it, range.end()}, false)) { |
3926 | 0 | digits_count += ranges::distance(it, *r); |
3927 | 0 | it = *r; |
3928 | 0 | } |
3929 | |
|
3930 | 0 | if (SCN_UNLIKELY(digits_count == 0)) { |
3931 | 0 | return unexpected_scan_error(scan_error::invalid_scanned_value, |
3932 | 0 | "No significand digits in hexfloat"); |
3933 | 0 | } |
3934 | | |
3935 | 0 | it = read_exponent(ranges::subrange{it, range.end()}, "pP"); |
3936 | |
|
3937 | 0 | return it; |
3938 | 0 | } Unexecuted instantiation: _ZN3scn2v34impl12float_readerIcE13read_hexfloatINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEENS1_15take_width_viewINS8_ISE_SF_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESQ_ Unexecuted instantiation: _ZN3scn2v34impl12float_readerIcE13read_hexfloatINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_ _ZN3scn2v34impl12float_readerIcE13read_hexfloatINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSC_EENS1_15take_width_viewINS8_ISC_SC_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESN_ Line | Count | Source | 3903 | 6 | { | 3904 | 6 | auto it = range.begin(); | 3905 | | | 3906 | 6 | std::ptrdiff_t digits_count = 0; | 3907 | 6 | if (auto r = read_hex_digits(ranges::subrange{it, range.end()}, true); | 3908 | 6 | SCN_UNLIKELY(!r)) { | 3909 | 6 | return r.transform_error(map_parse_error_to_scan_error( | 3910 | 6 | scan_error::invalid_scanned_value, | 3911 | 6 | "Invalid hexadecimal floating-point value")); | 3912 | 6 | } | 3913 | 0 | else { | 3914 | 0 | digits_count += ranges::distance(it, *r); | 3915 | 0 | it = *r; | 3916 | 0 | } | 3917 | | | 3918 | 0 | m_integral_part_length = digits_count; | 3919 | 0 | if (auto r = read_matching_code_unit(ranges::subrange{it, range.end()}, | 3920 | 0 | m_locale_options.decimal_point)) { | 3921 | 0 | it = *r; | 3922 | 0 | } | 3923 | |
| 3924 | 0 | if (auto r = | 3925 | 0 | read_hex_digits(ranges::subrange{it, range.end()}, false)) { | 3926 | 0 | digits_count += ranges::distance(it, *r); | 3927 | 0 | it = *r; | 3928 | 0 | } | 3929 | |
| 3930 | 0 | if (SCN_UNLIKELY(digits_count == 0)) { | 3931 | 0 | return unexpected_scan_error(scan_error::invalid_scanned_value, | 3932 | 0 | "No significand digits in hexfloat"); | 3933 | 0 | } | 3934 | | | 3935 | 0 | it = read_exponent(ranges::subrange{it, range.end()}, "pP"); | 3936 | |
| 3937 | 0 | return it; | 3938 | 0 | } |
Unexecuted instantiation: _ZN3scn2v34impl12float_readerIcE13read_hexfloatINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_ Unexecuted instantiation: _ZN3scn2v34impl12float_readerIwE13read_hexfloatINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEENS1_15take_width_viewINS8_ISE_SF_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESQ_ Unexecuted instantiation: _ZN3scn2v34impl12float_readerIwE13read_hexfloatINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_ _ZN3scn2v34impl12float_readerIwE13read_hexfloatINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSC_EENS1_15take_width_viewINS8_ISC_SC_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESN_ Line | Count | Source | 3903 | 6 | { | 3904 | 6 | auto it = range.begin(); | 3905 | | | 3906 | 6 | std::ptrdiff_t digits_count = 0; | 3907 | 6 | if (auto r = read_hex_digits(ranges::subrange{it, range.end()}, true); | 3908 | 6 | SCN_UNLIKELY(!r)) { | 3909 | 6 | return r.transform_error(map_parse_error_to_scan_error( | 3910 | 6 | scan_error::invalid_scanned_value, | 3911 | 6 | "Invalid hexadecimal floating-point value")); | 3912 | 6 | } | 3913 | 0 | else { | 3914 | 0 | digits_count += ranges::distance(it, *r); | 3915 | 0 | it = *r; | 3916 | 0 | } | 3917 | | | 3918 | 0 | m_integral_part_length = digits_count; | 3919 | 0 | if (auto r = read_matching_code_unit(ranges::subrange{it, range.end()}, | 3920 | 0 | m_locale_options.decimal_point)) { | 3921 | 0 | it = *r; | 3922 | 0 | } | 3923 | |
| 3924 | 0 | if (auto r = | 3925 | 0 | read_hex_digits(ranges::subrange{it, range.end()}, false)) { | 3926 | 0 | digits_count += ranges::distance(it, *r); | 3927 | 0 | it = *r; | 3928 | 0 | } | 3929 | |
| 3930 | 0 | if (SCN_UNLIKELY(digits_count == 0)) { | 3931 | 0 | return unexpected_scan_error(scan_error::invalid_scanned_value, | 3932 | 0 | "No significand digits in hexfloat"); | 3933 | 0 | } | 3934 | | | 3935 | 0 | it = read_exponent(ranges::subrange{it, range.end()}, "pP"); | 3936 | |
| 3937 | 0 | return it; | 3938 | 0 | } |
Unexecuted instantiation: _ZN3scn2v34impl12float_readerIwE13read_hexfloatINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_ |
3939 | | |
3940 | | template <typename Range> |
3941 | | auto read_regular_float(Range range) |
3942 | | -> scan_expected<ranges::const_iterator_t<Range>> |
3943 | 414 | { |
3944 | 414 | const bool allowed_exp = (m_options & allow_scientific) != 0; |
3945 | 414 | const bool required_exp = allowed_exp && (m_options & allow_fixed) == 0; |
3946 | | |
3947 | 414 | auto it = ranges::begin(range); |
3948 | 414 | std::ptrdiff_t digits_count = 0; |
3949 | | |
3950 | 414 | if (auto r = read_dec_digits(ranges::subrange{it, range.end()}, true); |
3951 | 414 | SCN_UNLIKELY(!r)) { |
3952 | 414 | return r.transform_error( |
3953 | 414 | map_parse_error_to_scan_error(scan_error::invalid_scanned_value, |
3954 | 414 | "Invalid floating-point value")); |
3955 | 414 | } |
3956 | 0 | else { |
3957 | 0 | digits_count += ranges::distance(it, *r); |
3958 | 0 | it = *r; |
3959 | 0 | } |
3960 | | |
3961 | 0 | m_integral_part_length = digits_count; |
3962 | 0 | if (auto r = read_matching_code_unit(ranges::subrange{it, range.end()}, |
3963 | 0 | m_locale_options.decimal_point)) { |
3964 | 0 | it = *r; |
3965 | 0 | } |
3966 | |
|
3967 | 0 | if (auto r = |
3968 | 0 | read_dec_digits(ranges::subrange{it, range.end()}, false)) { |
3969 | 0 | digits_count += ranges::distance(it, *r); |
3970 | 0 | it = *r; |
3971 | 0 | } |
3972 | |
|
3973 | 0 | if (SCN_UNLIKELY(digits_count == 0)) { |
3974 | 0 | return unexpected_scan_error(scan_error::invalid_scanned_value, |
3975 | 0 | "No significand digits in float"); |
3976 | 0 | } |
3977 | | |
3978 | 0 | auto beg_exp_it = it; |
3979 | 0 | if (allowed_exp) { |
3980 | 0 | it = read_exponent(ranges::subrange{it, range.end()}, "eE"); |
3981 | 0 | } |
3982 | 0 | if (required_exp && beg_exp_it == it) { |
3983 | 0 | return unexpected_scan_error( |
3984 | 0 | scan_error::invalid_scanned_value, |
3985 | 0 | "No exponent given to scientific float"); |
3986 | 0 | } |
3987 | | |
3988 | 0 | m_kind = |
3989 | 0 | (beg_exp_it == it) ? float_kind::fixed : float_kind::scientific; |
3990 | |
|
3991 | 0 | return it; |
3992 | 0 | } Unexecuted instantiation: _ZN3scn2v34impl12float_readerIcE18read_regular_floatINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEENS1_15take_width_viewINS8_ISE_SF_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESQ_ Unexecuted instantiation: _ZN3scn2v34impl12float_readerIcE18read_regular_floatINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_ _ZN3scn2v34impl12float_readerIcE18read_regular_floatINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSC_EENS1_15take_width_viewINS8_ISC_SC_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESN_ Line | Count | Source | 3943 | 264 | { | 3944 | 264 | const bool allowed_exp = (m_options & allow_scientific) != 0; | 3945 | 264 | const bool required_exp = allowed_exp && (m_options & allow_fixed) == 0; | 3946 | | | 3947 | 264 | auto it = ranges::begin(range); | 3948 | 264 | std::ptrdiff_t digits_count = 0; | 3949 | | | 3950 | 264 | if (auto r = read_dec_digits(ranges::subrange{it, range.end()}, true); | 3951 | 264 | SCN_UNLIKELY(!r)) { | 3952 | 264 | return r.transform_error( | 3953 | 264 | map_parse_error_to_scan_error(scan_error::invalid_scanned_value, | 3954 | 264 | "Invalid floating-point value")); | 3955 | 264 | } | 3956 | 0 | else { | 3957 | 0 | digits_count += ranges::distance(it, *r); | 3958 | 0 | it = *r; | 3959 | 0 | } | 3960 | | | 3961 | 0 | m_integral_part_length = digits_count; | 3962 | 0 | if (auto r = read_matching_code_unit(ranges::subrange{it, range.end()}, | 3963 | 0 | m_locale_options.decimal_point)) { | 3964 | 0 | it = *r; | 3965 | 0 | } | 3966 | |
| 3967 | 0 | if (auto r = | 3968 | 0 | read_dec_digits(ranges::subrange{it, range.end()}, false)) { | 3969 | 0 | digits_count += ranges::distance(it, *r); | 3970 | 0 | it = *r; | 3971 | 0 | } | 3972 | |
| 3973 | 0 | if (SCN_UNLIKELY(digits_count == 0)) { | 3974 | 0 | return unexpected_scan_error(scan_error::invalid_scanned_value, | 3975 | 0 | "No significand digits in float"); | 3976 | 0 | } | 3977 | | | 3978 | 0 | auto beg_exp_it = it; | 3979 | 0 | if (allowed_exp) { | 3980 | 0 | it = read_exponent(ranges::subrange{it, range.end()}, "eE"); | 3981 | 0 | } | 3982 | 0 | if (required_exp && beg_exp_it == it) { | 3983 | 0 | return unexpected_scan_error( | 3984 | 0 | scan_error::invalid_scanned_value, | 3985 | 0 | "No exponent given to scientific float"); | 3986 | 0 | } | 3987 | | | 3988 | 0 | m_kind = | 3989 | 0 | (beg_exp_it == it) ? float_kind::fixed : float_kind::scientific; | 3990 | |
| 3991 | 0 | return it; | 3992 | 0 | } |
_ZN3scn2v34impl12float_readerIcE18read_regular_floatINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_ Line | Count | Source | 3943 | 28 | { | 3944 | 28 | const bool allowed_exp = (m_options & allow_scientific) != 0; | 3945 | 28 | const bool required_exp = allowed_exp && (m_options & allow_fixed) == 0; | 3946 | | | 3947 | 28 | auto it = ranges::begin(range); | 3948 | 28 | std::ptrdiff_t digits_count = 0; | 3949 | | | 3950 | 28 | if (auto r = read_dec_digits(ranges::subrange{it, range.end()}, true); | 3951 | 28 | SCN_UNLIKELY(!r)) { | 3952 | 28 | return r.transform_error( | 3953 | 28 | map_parse_error_to_scan_error(scan_error::invalid_scanned_value, | 3954 | 28 | "Invalid floating-point value")); | 3955 | 28 | } | 3956 | 0 | else { | 3957 | 0 | digits_count += ranges::distance(it, *r); | 3958 | 0 | it = *r; | 3959 | 0 | } | 3960 | | | 3961 | 0 | m_integral_part_length = digits_count; | 3962 | 0 | if (auto r = read_matching_code_unit(ranges::subrange{it, range.end()}, | 3963 | 0 | m_locale_options.decimal_point)) { | 3964 | 0 | it = *r; | 3965 | 0 | } | 3966 | |
| 3967 | 0 | if (auto r = | 3968 | 0 | read_dec_digits(ranges::subrange{it, range.end()}, false)) { | 3969 | 0 | digits_count += ranges::distance(it, *r); | 3970 | 0 | it = *r; | 3971 | 0 | } | 3972 | |
| 3973 | 0 | if (SCN_UNLIKELY(digits_count == 0)) { | 3974 | 0 | return unexpected_scan_error(scan_error::invalid_scanned_value, | 3975 | 0 | "No significand digits in float"); | 3976 | 0 | } | 3977 | | | 3978 | 0 | auto beg_exp_it = it; | 3979 | 0 | if (allowed_exp) { | 3980 | 0 | it = read_exponent(ranges::subrange{it, range.end()}, "eE"); | 3981 | 0 | } | 3982 | 0 | if (required_exp && beg_exp_it == it) { | 3983 | 0 | return unexpected_scan_error( | 3984 | 0 | scan_error::invalid_scanned_value, | 3985 | 0 | "No exponent given to scientific float"); | 3986 | 0 | } | 3987 | | | 3988 | 0 | m_kind = | 3989 | 0 | (beg_exp_it == it) ? float_kind::fixed : float_kind::scientific; | 3990 | |
| 3991 | 0 | return it; | 3992 | 0 | } |
Unexecuted instantiation: _ZN3scn2v34impl12float_readerIwE18read_regular_floatINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEENS1_15take_width_viewINS8_ISE_SF_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESQ_ Unexecuted instantiation: _ZN3scn2v34impl12float_readerIwE18read_regular_floatINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_ _ZN3scn2v34impl12float_readerIwE18read_regular_floatINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSC_EENS1_15take_width_viewINS8_ISC_SC_EEE8sentinelILb1EEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESN_ Line | Count | Source | 3943 | 116 | { | 3944 | 116 | const bool allowed_exp = (m_options & allow_scientific) != 0; | 3945 | 116 | const bool required_exp = allowed_exp && (m_options & allow_fixed) == 0; | 3946 | | | 3947 | 116 | auto it = ranges::begin(range); | 3948 | 116 | std::ptrdiff_t digits_count = 0; | 3949 | | | 3950 | 116 | if (auto r = read_dec_digits(ranges::subrange{it, range.end()}, true); | 3951 | 116 | SCN_UNLIKELY(!r)) { | 3952 | 116 | return r.transform_error( | 3953 | 116 | map_parse_error_to_scan_error(scan_error::invalid_scanned_value, | 3954 | 116 | "Invalid floating-point value")); | 3955 | 116 | } | 3956 | 0 | else { | 3957 | 0 | digits_count += ranges::distance(it, *r); | 3958 | 0 | it = *r; | 3959 | 0 | } | 3960 | | | 3961 | 0 | m_integral_part_length = digits_count; | 3962 | 0 | if (auto r = read_matching_code_unit(ranges::subrange{it, range.end()}, | 3963 | 0 | m_locale_options.decimal_point)) { | 3964 | 0 | it = *r; | 3965 | 0 | } | 3966 | |
| 3967 | 0 | if (auto r = | 3968 | 0 | read_dec_digits(ranges::subrange{it, range.end()}, false)) { | 3969 | 0 | digits_count += ranges::distance(it, *r); | 3970 | 0 | it = *r; | 3971 | 0 | } | 3972 | |
| 3973 | 0 | if (SCN_UNLIKELY(digits_count == 0)) { | 3974 | 0 | return unexpected_scan_error(scan_error::invalid_scanned_value, | 3975 | 0 | "No significand digits in float"); | 3976 | 0 | } | 3977 | | | 3978 | 0 | auto beg_exp_it = it; | 3979 | 0 | if (allowed_exp) { | 3980 | 0 | it = read_exponent(ranges::subrange{it, range.end()}, "eE"); | 3981 | 0 | } | 3982 | 0 | if (required_exp && beg_exp_it == it) { | 3983 | 0 | return unexpected_scan_error( | 3984 | 0 | scan_error::invalid_scanned_value, | 3985 | 0 | "No exponent given to scientific float"); | 3986 | 0 | } | 3987 | | | 3988 | 0 | m_kind = | 3989 | 0 | (beg_exp_it == it) ? float_kind::fixed : float_kind::scientific; | 3990 | |
| 3991 | 0 | return it; | 3992 | 0 | } |
_ZN3scn2v34impl12float_readerIwE18read_regular_floatINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_ Line | Count | Source | 3943 | 6 | { | 3944 | 6 | const bool allowed_exp = (m_options & allow_scientific) != 0; | 3945 | 6 | const bool required_exp = allowed_exp && (m_options & allow_fixed) == 0; | 3946 | | | 3947 | 6 | auto it = ranges::begin(range); | 3948 | 6 | std::ptrdiff_t digits_count = 0; | 3949 | | | 3950 | 6 | if (auto r = read_dec_digits(ranges::subrange{it, range.end()}, true); | 3951 | 6 | SCN_UNLIKELY(!r)) { | 3952 | 6 | return r.transform_error( | 3953 | 6 | map_parse_error_to_scan_error(scan_error::invalid_scanned_value, | 3954 | 6 | "Invalid floating-point value")); | 3955 | 6 | } | 3956 | 0 | else { | 3957 | 0 | digits_count += ranges::distance(it, *r); | 3958 | 0 | it = *r; | 3959 | 0 | } | 3960 | | | 3961 | 0 | m_integral_part_length = digits_count; | 3962 | 0 | if (auto r = read_matching_code_unit(ranges::subrange{it, range.end()}, | 3963 | 0 | m_locale_options.decimal_point)) { | 3964 | 0 | it = *r; | 3965 | 0 | } | 3966 | |
| 3967 | 0 | if (auto r = | 3968 | 0 | read_dec_digits(ranges::subrange{it, range.end()}, false)) { | 3969 | 0 | digits_count += ranges::distance(it, *r); | 3970 | 0 | it = *r; | 3971 | 0 | } | 3972 | |
| 3973 | 0 | if (SCN_UNLIKELY(digits_count == 0)) { | 3974 | 0 | return unexpected_scan_error(scan_error::invalid_scanned_value, | 3975 | 0 | "No significand digits in float"); | 3976 | 0 | } | 3977 | | | 3978 | 0 | auto beg_exp_it = it; | 3979 | 0 | if (allowed_exp) { | 3980 | 0 | it = read_exponent(ranges::subrange{it, range.end()}, "eE"); | 3981 | 0 | } | 3982 | 0 | if (required_exp && beg_exp_it == it) { | 3983 | 0 | return unexpected_scan_error( | 3984 | 0 | scan_error::invalid_scanned_value, | 3985 | 0 | "No exponent given to scientific float"); | 3986 | 0 | } | 3987 | | | 3988 | 0 | m_kind = | 3989 | 0 | (beg_exp_it == it) ? float_kind::fixed : float_kind::scientific; | 3990 | |
| 3991 | 0 | return it; | 3992 | 0 | } |
|
3993 | | |
3994 | | template <typename Range, typename ReadRegular, typename ReadHex> |
3995 | | auto do_read_source_impl(Range range, |
3996 | | ReadRegular&& read_regular, |
3997 | | ReadHex&& read_hex) |
3998 | | -> scan_expected<ranges::const_iterator_t<Range>> |
3999 | 11.6k | { |
4000 | 11.6k | const bool allowed_hex = (m_options & allow_hex) != 0; |
4001 | 11.6k | const bool allowed_nonhex = |
4002 | 11.6k | (m_options & ~static_cast<unsigned>(allow_thsep) & |
4003 | 11.6k | ~static_cast<unsigned>(allow_hex)) != 0; |
4004 | | |
4005 | 11.6k | if (auto r = read_inf(range); !r && m_kind != float_kind::tbd) { |
4006 | 0 | return r.transform_error(map_parse_error_to_scan_error( |
4007 | 0 | scan_error::invalid_scanned_value, |
4008 | 0 | "Invalid infinite floating-point value")); |
4009 | 0 | } |
4010 | 11.6k | else if (r) { |
4011 | 0 | return *r; |
4012 | 0 | } |
4013 | | |
4014 | 11.6k | if (auto r = read_nan(range); !r && m_kind != float_kind::tbd) { |
4015 | 0 | return unexpected(r.error()); |
4016 | 0 | } |
4017 | 11.6k | else if (r) { |
4018 | 0 | return *r; |
4019 | 0 | } |
4020 | | |
4021 | 11.6k | if (allowed_hex && !allowed_nonhex) { |
4022 | | // only hex allowed: |
4023 | | // prefix "0x" allowed, not required |
4024 | 32 | auto it = range.begin(); |
4025 | | |
4026 | 32 | if (auto r = read_hex_prefix(range)) { |
4027 | 0 | m_kind = float_kind::hex_with_prefix; |
4028 | 0 | it = *r; |
4029 | 0 | } |
4030 | 32 | else { |
4031 | 32 | m_kind = float_kind::hex_without_prefix; |
4032 | 32 | } |
4033 | | |
4034 | 32 | return read_hex(ranges::subrange{it, range.end()}); |
4035 | 32 | } |
4036 | 11.5k | if (!allowed_hex && allowed_nonhex) { |
4037 | | // only nonhex allowed: |
4038 | | // no prefix allowed |
4039 | 60 | m_kind = float_kind::generic; |
4040 | 60 | return read_regular_float(range); |
4041 | 60 | } |
4042 | | // both hex and nonhex allowed: |
4043 | | // check for "0x" prefix -> hex, |
4044 | | // regular otherwise |
4045 | | |
4046 | 11.5k | if (auto r = read_hex_prefix(range); SCN_UNLIKELY(r)) { |
4047 | 0 | m_kind = float_kind::hex_with_prefix; |
4048 | 0 | return read_hex(ranges::subrange{*r, range.end()}); |
4049 | 0 | } |
4050 | | |
4051 | 11.5k | m_kind = float_kind::generic; |
4052 | 11.5k | return read_regular(range); |
4053 | 11.5k | } Unexecuted instantiation: _ZN3scn2v34impl12float_readerIcE19do_read_source_implINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEENS1_15take_width_viewINS8_ISE_SF_EEE8sentinelILb1EEEEEZNS3_16read_source_implISJ_EENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_EUlRKSR_E_ZNSN_ISJ_EESW_SR_EUlSY_E0_EESW_SR_OT0_OT1_ Unexecuted instantiation: _ZN3scn2v34impl12float_readerIcE19do_read_source_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEZNS3_16read_source_implISE_EENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_EUlRKSJ_E_ZNSF_ISE_EESO_SJ_EUlSQ_E0_EESO_SJ_OT0_OT1_ _ZN3scn2v34impl12float_readerIcE19do_read_source_implINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKcSC_EENS1_15take_width_viewINS8_ISC_SC_EEE8sentinelILb1EEEEEZNS3_16read_source_implISG_EENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_EUlRKSO_E_ZNSK_ISG_EEST_SO_EUlSV_E0_EEST_SO_OT0_OT1_ Line | Count | Source | 3999 | 270 | { | 4000 | 270 | const bool allowed_hex = (m_options & allow_hex) != 0; | 4001 | 270 | const bool allowed_nonhex = | 4002 | 270 | (m_options & ~static_cast<unsigned>(allow_thsep) & | 4003 | 270 | ~static_cast<unsigned>(allow_hex)) != 0; | 4004 | | | 4005 | 270 | if (auto r = read_inf(range); !r && m_kind != float_kind::tbd) { | 4006 | 0 | return r.transform_error(map_parse_error_to_scan_error( | 4007 | 0 | scan_error::invalid_scanned_value, | 4008 | 0 | "Invalid infinite floating-point value")); | 4009 | 0 | } | 4010 | 270 | else if (r) { | 4011 | 0 | return *r; | 4012 | 0 | } | 4013 | | | 4014 | 270 | if (auto r = read_nan(range); !r && m_kind != float_kind::tbd) { | 4015 | 0 | return unexpected(r.error()); | 4016 | 0 | } | 4017 | 270 | else if (r) { | 4018 | 0 | return *r; | 4019 | 0 | } | 4020 | | | 4021 | 270 | if (allowed_hex && !allowed_nonhex) { | 4022 | | // only hex allowed: | 4023 | | // prefix "0x" allowed, not required | 4024 | 6 | auto it = range.begin(); | 4025 | | | 4026 | 6 | if (auto r = read_hex_prefix(range)) { | 4027 | 0 | m_kind = float_kind::hex_with_prefix; | 4028 | 0 | it = *r; | 4029 | 0 | } | 4030 | 6 | else { | 4031 | 6 | m_kind = float_kind::hex_without_prefix; | 4032 | 6 | } | 4033 | | | 4034 | 6 | return read_hex(ranges::subrange{it, range.end()}); | 4035 | 6 | } | 4036 | 264 | if (!allowed_hex && allowed_nonhex) { | 4037 | | // only nonhex allowed: | 4038 | | // no prefix allowed | 4039 | 18 | m_kind = float_kind::generic; | 4040 | 18 | return read_regular_float(range); | 4041 | 18 | } | 4042 | | // both hex and nonhex allowed: | 4043 | | // check for "0x" prefix -> hex, | 4044 | | // regular otherwise | 4045 | | | 4046 | 246 | if (auto r = read_hex_prefix(range); SCN_UNLIKELY(r)) { | 4047 | 0 | m_kind = float_kind::hex_with_prefix; | 4048 | 0 | return read_hex(ranges::subrange{*r, range.end()}); | 4049 | 0 | } | 4050 | | | 4051 | 246 | m_kind = float_kind::generic; | 4052 | 246 | return read_regular(range); | 4053 | 246 | } |
Unexecuted instantiation: _ZN3scn2v34impl12float_readerIcE19do_read_source_implINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEZNS3_16read_source_implISB_EENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_EUlRKSG_E_ZNSC_ISB_EESL_SG_EUlSN_E0_EESL_SG_OT0_OT1_ _ZN3scn2v34impl12float_readerIcE19do_read_source_implINS0_6ranges6detail9subrange_8subrangeIPKcSA_EERZNS3_16read_source_implISB_EENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_EUlRKSG_E1_SP_EESL_SG_OT0_OT1_ Line | Count | Source | 3999 | 884 | { | 4000 | 884 | const bool allowed_hex = (m_options & allow_hex) != 0; | 4001 | 884 | const bool allowed_nonhex = | 4002 | 884 | (m_options & ~static_cast<unsigned>(allow_thsep) & | 4003 | 884 | ~static_cast<unsigned>(allow_hex)) != 0; | 4004 | | | 4005 | 884 | if (auto r = read_inf(range); !r && m_kind != float_kind::tbd) { | 4006 | 0 | return r.transform_error(map_parse_error_to_scan_error( | 4007 | 0 | scan_error::invalid_scanned_value, | 4008 | 0 | "Invalid infinite floating-point value")); | 4009 | 0 | } | 4010 | 884 | else if (r) { | 4011 | 0 | return *r; | 4012 | 0 | } | 4013 | | | 4014 | 884 | if (auto r = read_nan(range); !r && m_kind != float_kind::tbd) { | 4015 | 0 | return unexpected(r.error()); | 4016 | 0 | } | 4017 | 884 | else if (r) { | 4018 | 0 | return *r; | 4019 | 0 | } | 4020 | | | 4021 | 884 | if (allowed_hex && !allowed_nonhex) { | 4022 | | // only hex allowed: | 4023 | | // prefix "0x" allowed, not required | 4024 | 8 | auto it = range.begin(); | 4025 | | | 4026 | 8 | if (auto r = read_hex_prefix(range)) { | 4027 | 0 | m_kind = float_kind::hex_with_prefix; | 4028 | 0 | it = *r; | 4029 | 0 | } | 4030 | 8 | else { | 4031 | 8 | m_kind = float_kind::hex_without_prefix; | 4032 | 8 | } | 4033 | | | 4034 | 8 | return read_hex(ranges::subrange{it, range.end()}); | 4035 | 8 | } | 4036 | 876 | if (!allowed_hex && allowed_nonhex) { | 4037 | | // only nonhex allowed: | 4038 | | // no prefix allowed | 4039 | 28 | m_kind = float_kind::generic; | 4040 | 28 | return read_regular_float(range); | 4041 | 28 | } | 4042 | | // both hex and nonhex allowed: | 4043 | | // check for "0x" prefix -> hex, | 4044 | | // regular otherwise | 4045 | | | 4046 | 848 | if (auto r = read_hex_prefix(range); SCN_UNLIKELY(r)) { | 4047 | 0 | m_kind = float_kind::hex_with_prefix; | 4048 | 0 | return read_hex(ranges::subrange{*r, range.end()}); | 4049 | 0 | } | 4050 | | | 4051 | 848 | m_kind = float_kind::generic; | 4052 | 848 | return read_regular(range); | 4053 | 848 | } |
Unexecuted instantiation: _ZN3scn2v34impl12float_readerIwE19do_read_source_implINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEENS1_15take_width_viewINS8_ISE_SF_EEE8sentinelILb1EEEEEZNS3_16read_source_implISJ_EENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESR_EUlRKSR_E_ZNSN_ISJ_EESW_SR_EUlSY_E0_EESW_SR_OT0_OT1_ Unexecuted instantiation: _ZN3scn2v34impl12float_readerIwE19do_read_source_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEZNS3_16read_source_implISE_EENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_EUlRKSJ_E_ZNSF_ISE_EESO_SJ_EUlSQ_E0_EESO_SJ_OT0_OT1_ _ZN3scn2v34impl12float_readerIwE19do_read_source_implINS0_6ranges6detail9subrange_8subrangeINS1_27counted_width_iterator_impl22counted_width_iteratorIPKwSC_EENS1_15take_width_viewINS8_ISC_SC_EEE8sentinelILb1EEEEEZNS3_16read_source_implISG_EENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESO_EUlRKSO_E_ZNSK_ISG_EEST_SO_EUlSV_E0_EEST_SO_OT0_OT1_ Line | Count | Source | 3999 | 122 | { | 4000 | 122 | const bool allowed_hex = (m_options & allow_hex) != 0; | 4001 | 122 | const bool allowed_nonhex = | 4002 | 122 | (m_options & ~static_cast<unsigned>(allow_thsep) & | 4003 | 122 | ~static_cast<unsigned>(allow_hex)) != 0; | 4004 | | | 4005 | 122 | if (auto r = read_inf(range); !r && m_kind != float_kind::tbd) { | 4006 | 0 | return r.transform_error(map_parse_error_to_scan_error( | 4007 | 0 | scan_error::invalid_scanned_value, | 4008 | 0 | "Invalid infinite floating-point value")); | 4009 | 0 | } | 4010 | 122 | else if (r) { | 4011 | 0 | return *r; | 4012 | 0 | } | 4013 | | | 4014 | 122 | if (auto r = read_nan(range); !r && m_kind != float_kind::tbd) { | 4015 | 0 | return unexpected(r.error()); | 4016 | 0 | } | 4017 | 122 | else if (r) { | 4018 | 0 | return *r; | 4019 | 0 | } | 4020 | | | 4021 | 122 | if (allowed_hex && !allowed_nonhex) { | 4022 | | // only hex allowed: | 4023 | | // prefix "0x" allowed, not required | 4024 | 6 | auto it = range.begin(); | 4025 | | | 4026 | 6 | if (auto r = read_hex_prefix(range)) { | 4027 | 0 | m_kind = float_kind::hex_with_prefix; | 4028 | 0 | it = *r; | 4029 | 0 | } | 4030 | 6 | else { | 4031 | 6 | m_kind = float_kind::hex_without_prefix; | 4032 | 6 | } | 4033 | | | 4034 | 6 | return read_hex(ranges::subrange{it, range.end()}); | 4035 | 6 | } | 4036 | 116 | if (!allowed_hex && allowed_nonhex) { | 4037 | | // only nonhex allowed: | 4038 | | // no prefix allowed | 4039 | 8 | m_kind = float_kind::generic; | 4040 | 8 | return read_regular_float(range); | 4041 | 8 | } | 4042 | | // both hex and nonhex allowed: | 4043 | | // check for "0x" prefix -> hex, | 4044 | | // regular otherwise | 4045 | | | 4046 | 108 | if (auto r = read_hex_prefix(range); SCN_UNLIKELY(r)) { | 4047 | 0 | m_kind = float_kind::hex_with_prefix; | 4048 | 0 | return read_hex(ranges::subrange{*r, range.end()}); | 4049 | 0 | } | 4050 | | | 4051 | 108 | m_kind = float_kind::generic; | 4052 | 108 | return read_regular(range); | 4053 | 108 | } |
Unexecuted instantiation: _ZN3scn2v34impl12float_readerIwE19do_read_source_implINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEZNS3_16read_source_implISB_EENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_EUlRKSG_E_ZNSC_ISB_EESL_SG_EUlSN_E0_EESL_SG_OT0_OT1_ _ZN3scn2v34impl12float_readerIwE19do_read_source_implINS0_6ranges6detail9subrange_8subrangeIPKwSA_EERZNS3_16read_source_implISB_EENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_EUlRKSG_E1_SP_EESL_SG_OT0_OT1_ Line | Count | Source | 3999 | 10.3k | { | 4000 | 10.3k | const bool allowed_hex = (m_options & allow_hex) != 0; | 4001 | 10.3k | const bool allowed_nonhex = | 4002 | 10.3k | (m_options & ~static_cast<unsigned>(allow_thsep) & | 4003 | 10.3k | ~static_cast<unsigned>(allow_hex)) != 0; | 4004 | | | 4005 | 10.3k | if (auto r = read_inf(range); !r && m_kind != float_kind::tbd) { | 4006 | 0 | return r.transform_error(map_parse_error_to_scan_error( | 4007 | 0 | scan_error::invalid_scanned_value, | 4008 | 0 | "Invalid infinite floating-point value")); | 4009 | 0 | } | 4010 | 10.3k | else if (r) { | 4011 | 0 | return *r; | 4012 | 0 | } | 4013 | | | 4014 | 10.3k | if (auto r = read_nan(range); !r && m_kind != float_kind::tbd) { | 4015 | 0 | return unexpected(r.error()); | 4016 | 0 | } | 4017 | 10.3k | else if (r) { | 4018 | 0 | return *r; | 4019 | 0 | } | 4020 | | | 4021 | 10.3k | if (allowed_hex && !allowed_nonhex) { | 4022 | | // only hex allowed: | 4023 | | // prefix "0x" allowed, not required | 4024 | 12 | auto it = range.begin(); | 4025 | | | 4026 | 12 | if (auto r = read_hex_prefix(range)) { | 4027 | 0 | m_kind = float_kind::hex_with_prefix; | 4028 | 0 | it = *r; | 4029 | 0 | } | 4030 | 12 | else { | 4031 | 12 | m_kind = float_kind::hex_without_prefix; | 4032 | 12 | } | 4033 | | | 4034 | 12 | return read_hex(ranges::subrange{it, range.end()}); | 4035 | 12 | } | 4036 | 10.3k | if (!allowed_hex && allowed_nonhex) { | 4037 | | // only nonhex allowed: | 4038 | | // no prefix allowed | 4039 | 6 | m_kind = float_kind::generic; | 4040 | 6 | return read_regular_float(range); | 4041 | 6 | } | 4042 | | // both hex and nonhex allowed: | 4043 | | // check for "0x" prefix -> hex, | 4044 | | // regular otherwise | 4045 | | | 4046 | 10.3k | if (auto r = read_hex_prefix(range); SCN_UNLIKELY(r)) { | 4047 | 0 | m_kind = float_kind::hex_with_prefix; | 4048 | 0 | return read_hex(ranges::subrange{*r, range.end()}); | 4049 | 0 | } | 4050 | | | 4051 | 10.3k | m_kind = float_kind::generic; | 4052 | 10.3k | return read_regular(range); | 4053 | 10.3k | } |
|
4054 | | |
4055 | | void handle_separators() |
4056 | 11.1k | { |
4057 | 11.1k | if (m_locale_options.thousands_sep == 0 && |
4058 | 11.1k | m_locale_options.decimal_point == CharT{'.'}) { |
4059 | 11.1k | return; |
4060 | 11.1k | } |
4061 | | |
4062 | 0 | auto& str = this->m_buffer.make_into_allocated_string(); |
4063 | 0 | if (m_locale_options.decimal_point != CharT{'.'}) { |
4064 | 0 | for (auto& ch : str) { |
4065 | 0 | if (ch == m_locale_options.decimal_point) { |
4066 | 0 | ch = CharT{'.'}; |
4067 | 0 | } |
4068 | 0 | } |
4069 | 0 | } |
4070 | |
|
4071 | 0 | if (m_locale_options.thousands_sep == 0) { |
4072 | 0 | return; |
4073 | 0 | } |
4074 | | |
4075 | 0 | auto first = |
4076 | 0 | std::find(str.begin(), str.end(), m_locale_options.thousands_sep); |
4077 | 0 | if (first == str.end()) { |
4078 | 0 | return; |
4079 | 0 | } |
4080 | | |
4081 | 0 | m_thsep_indices.push_back( |
4082 | 0 | static_cast<char>(ranges::distance(str.begin(), first))); |
4083 | |
|
4084 | 0 | for (auto it = first; ++it != str.end();) { |
4085 | 0 | if (*it != m_locale_options.thousands_sep) { |
4086 | 0 | *first++ = std::move(*it); |
4087 | 0 | } |
4088 | 0 | else { |
4089 | 0 | m_thsep_indices.push_back( |
4090 | 0 | static_cast<char>(ranges::distance(str.begin(), it))); |
4091 | 0 | } |
4092 | 0 | } |
4093 | |
|
4094 | 0 | str.erase(first, str.end()); |
4095 | 0 | } scn::v3::impl::float_reader<char>::handle_separators() Line | Count | Source | 4056 | 856 | { | 4057 | 856 | if (m_locale_options.thousands_sep == 0 && | 4058 | 856 | m_locale_options.decimal_point == CharT{'.'}) { | 4059 | 856 | return; | 4060 | 856 | } | 4061 | | | 4062 | 0 | auto& str = this->m_buffer.make_into_allocated_string(); | 4063 | 0 | if (m_locale_options.decimal_point != CharT{'.'}) { | 4064 | 0 | for (auto& ch : str) { | 4065 | 0 | if (ch == m_locale_options.decimal_point) { | 4066 | 0 | ch = CharT{'.'}; | 4067 | 0 | } | 4068 | 0 | } | 4069 | 0 | } | 4070 | |
| 4071 | 0 | if (m_locale_options.thousands_sep == 0) { | 4072 | 0 | return; | 4073 | 0 | } | 4074 | | | 4075 | 0 | auto first = | 4076 | 0 | std::find(str.begin(), str.end(), m_locale_options.thousands_sep); | 4077 | 0 | if (first == str.end()) { | 4078 | 0 | return; | 4079 | 0 | } | 4080 | | | 4081 | 0 | m_thsep_indices.push_back( | 4082 | 0 | static_cast<char>(ranges::distance(str.begin(), first))); | 4083 | |
| 4084 | 0 | for (auto it = first; ++it != str.end();) { | 4085 | 0 | if (*it != m_locale_options.thousands_sep) { | 4086 | 0 | *first++ = std::move(*it); | 4087 | 0 | } | 4088 | 0 | else { | 4089 | 0 | m_thsep_indices.push_back( | 4090 | 0 | static_cast<char>(ranges::distance(str.begin(), it))); | 4091 | 0 | } | 4092 | 0 | } | 4093 | |
| 4094 | 0 | str.erase(first, str.end()); | 4095 | 0 | } |
scn::v3::impl::float_reader<wchar_t>::handle_separators() Line | Count | Source | 4056 | 10.3k | { | 4057 | 10.3k | if (m_locale_options.thousands_sep == 0 && | 4058 | 10.3k | m_locale_options.decimal_point == CharT{'.'}) { | 4059 | 10.3k | return; | 4060 | 10.3k | } | 4061 | | | 4062 | 0 | auto& str = this->m_buffer.make_into_allocated_string(); | 4063 | 0 | if (m_locale_options.decimal_point != CharT{'.'}) { | 4064 | 0 | for (auto& ch : str) { | 4065 | 0 | if (ch == m_locale_options.decimal_point) { | 4066 | 0 | ch = CharT{'.'}; | 4067 | 0 | } | 4068 | 0 | } | 4069 | 0 | } | 4070 | |
| 4071 | 0 | if (m_locale_options.thousands_sep == 0) { | 4072 | 0 | return; | 4073 | 0 | } | 4074 | | | 4075 | 0 | auto first = | 4076 | 0 | std::find(str.begin(), str.end(), m_locale_options.thousands_sep); | 4077 | 0 | if (first == str.end()) { | 4078 | 0 | return; | 4079 | 0 | } | 4080 | | | 4081 | 0 | m_thsep_indices.push_back( | 4082 | 0 | static_cast<char>(ranges::distance(str.begin(), first))); | 4083 | |
| 4084 | 0 | for (auto it = first; ++it != str.end();) { | 4085 | 0 | if (*it != m_locale_options.thousands_sep) { | 4086 | 0 | *first++ = std::move(*it); | 4087 | 0 | } | 4088 | 0 | else { | 4089 | 0 | m_thsep_indices.push_back( | 4090 | 0 | static_cast<char>(ranges::distance(str.begin(), it))); | 4091 | 0 | } | 4092 | 0 | } | 4093 | |
| 4094 | 0 | str.erase(first, str.end()); | 4095 | 0 | } |
|
4096 | | |
4097 | | template <typename T> |
4098 | | T setsign(T value) const |
4099 | 11.1k | { |
4100 | 11.1k | if (m_sign == sign_type::minus_sign) { |
4101 | 0 | return std::copysign(value, T{-1.0}); |
4102 | 0 | } |
4103 | 11.1k | return std::copysign(value, T{1.0}); |
4104 | 11.1k | } Unexecuted instantiation: float scn::v3::impl::float_reader<char>::setsign<float>(float) const Unexecuted instantiation: float scn::v3::impl::float_reader<wchar_t>::setsign<float>(float) const double scn::v3::impl::float_reader<char>::setsign<double>(double) const Line | Count | Source | 4099 | 856 | { | 4100 | 856 | if (m_sign == sign_type::minus_sign) { | 4101 | 0 | return std::copysign(value, T{-1.0}); | 4102 | 0 | } | 4103 | 856 | return std::copysign(value, T{1.0}); | 4104 | 856 | } |
double scn::v3::impl::float_reader<wchar_t>::setsign<double>(double) const Line | Count | Source | 4099 | 10.3k | { | 4100 | 10.3k | if (m_sign == sign_type::minus_sign) { | 4101 | 0 | return std::copysign(value, T{-1.0}); | 4102 | 0 | } | 4103 | 10.3k | return std::copysign(value, T{1.0}); | 4104 | 10.3k | } |
Unexecuted instantiation: long double scn::v3::impl::float_reader<char>::setsign<long double>(long double) const Unexecuted instantiation: long double scn::v3::impl::float_reader<wchar_t>::setsign<long double>(long double) const |
4105 | | |
4106 | | template <typename T> |
4107 | | scan_expected<std::ptrdiff_t> parse_value_impl(T& value); |
4108 | | |
4109 | | localized_number_formatting_options<CharT> m_locale_options{}; |
4110 | | std::string m_thsep_indices{}; |
4111 | | contiguous_range_factory<CharT> m_nan_payload_buffer{}; |
4112 | | std::ptrdiff_t m_integral_part_length{-1}; |
4113 | | sign_type m_sign{sign_type::default_sign}; |
4114 | | float_kind m_kind{float_kind::tbd}; |
4115 | | }; |
4116 | | |
4117 | | #define SCN_DECLARE_FLOAT_READER_TEMPLATE(CharT, FloatT) \ |
4118 | | extern template auto float_reader<CharT>::parse_value_impl(FloatT&) \ |
4119 | | -> scan_expected<std::ptrdiff_t>; |
4120 | | |
4121 | | #if !SCN_DISABLE_TYPE_FLOAT |
4122 | | SCN_DECLARE_FLOAT_READER_TEMPLATE(char, float) |
4123 | | SCN_DECLARE_FLOAT_READER_TEMPLATE(wchar_t, float) |
4124 | | #endif |
4125 | | #if !SCN_DISABLE_TYPE_DOUBLE |
4126 | | SCN_DECLARE_FLOAT_READER_TEMPLATE(char, double) |
4127 | | SCN_DECLARE_FLOAT_READER_TEMPLATE(wchar_t, double) |
4128 | | #endif |
4129 | | #if !SCN_DISABLE_TYPE_LONG_DOUBLE |
4130 | | SCN_DECLARE_FLOAT_READER_TEMPLATE(char, long double) |
4131 | | SCN_DECLARE_FLOAT_READER_TEMPLATE(wchar_t, long double) |
4132 | | #endif |
4133 | | |
4134 | | #undef SCN_DECLARE_FLOAT_READER_TEMPLATE |
4135 | | |
4136 | | template <typename CharT> |
4137 | | class reader_impl_for_float |
4138 | | : public reader_base<reader_impl_for_float<CharT>, CharT> { |
4139 | | public: |
4140 | | constexpr reader_impl_for_float() = default; |
4141 | | |
4142 | | void check_specs_impl(const detail::format_specs& specs, |
4143 | | reader_error_handler& eh) |
4144 | 7.57k | { |
4145 | 7.57k | detail::check_float_type_specs(specs, eh); |
4146 | 7.57k | } scn::v3::impl::reader_impl_for_float<char>::check_specs_impl(scn::v3::detail::format_specs const&, scn::v3::impl::reader_error_handler&) Line | Count | Source | 4144 | 5.13k | { | 4145 | 5.13k | detail::check_float_type_specs(specs, eh); | 4146 | 5.13k | } |
scn::v3::impl::reader_impl_for_float<wchar_t>::check_specs_impl(scn::v3::detail::format_specs const&, scn::v3::impl::reader_error_handler&) Line | Count | Source | 4144 | 2.44k | { | 4145 | 2.44k | detail::check_float_type_specs(specs, eh); | 4146 | 2.44k | } |
|
4147 | | |
4148 | | template <typename Range, typename T> |
4149 | | auto read_default(Range range, T& value, detail::locale_ref loc) |
4150 | | -> scan_expected<ranges::const_iterator_t<Range>> |
4151 | 10.6k | { |
4152 | 10.6k | SCN_UNUSED(loc); |
4153 | | |
4154 | 10.6k | float_reader<CharT> rd{}; |
4155 | 10.6k | return read_impl<Range>( |
4156 | 10.6k | range, rd, |
4157 | 10.6k | [](float_reader<CharT>& r, auto&&... args) { |
4158 | 10.6k | return r.read_source(SCN_FWD(args)...); |
4159 | 10.6k | }, Unexecuted instantiation: _ZZN3scn2v34impl21reader_impl_for_floatIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEfEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RT0_NS0_6detail10locale_refEENKUlRNS1_12float_readerIcEEDpOT_E_clIJSB_SO_EEEDaSR_SU_ _ZZN3scn2v34impl21reader_impl_for_floatIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEdEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RT0_NS0_6detail10locale_refEENKUlRNS1_12float_readerIcEEDpOT_E_clIJSB_SO_EEEDaSR_SU_ Line | Count | Source | 4157 | 628 | [](float_reader<CharT>& r, auto&&... args) { | 4158 | 628 | return r.read_source(SCN_FWD(args)...); | 4159 | 628 | }, |
Unexecuted instantiation: _ZZN3scn2v34impl21reader_impl_for_floatIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEeEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RT0_NS0_6detail10locale_refEENKUlRNS1_12float_readerIcEEDpOT_E_clIJSB_SO_EEEDaSR_SU_ Unexecuted instantiation: _ZZN3scn2v34impl21reader_impl_for_floatIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEfEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_NS9_10locale_refEENKUlRNS1_12float_readerIcEEDpOT_E_clIJSE_SQ_EEEDaST_SW_ Unexecuted instantiation: _ZZN3scn2v34impl21reader_impl_for_floatIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEdEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_NS9_10locale_refEENKUlRNS1_12float_readerIcEEDpOT_E_clIJSE_SQ_EEEDaST_SW_ Unexecuted instantiation: _ZZN3scn2v34impl21reader_impl_for_floatIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEeEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_NS9_10locale_refEENKUlRNS1_12float_readerIcEEDpOT_E_clIJSE_SQ_EEEDaST_SW_ Unexecuted instantiation: _ZZN3scn2v34impl21reader_impl_for_floatIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEfEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RT0_NS0_6detail10locale_refEENKUlRNS1_12float_readerIwEEDpOT_E_clIJSB_SO_EEEDaSR_SU_ _ZZN3scn2v34impl21reader_impl_for_floatIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEdEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RT0_NS0_6detail10locale_refEENKUlRNS1_12float_readerIwEEDpOT_E_clIJSB_SO_EEEDaSR_SU_ Line | Count | Source | 4157 | 10.0k | [](float_reader<CharT>& r, auto&&... args) { | 4158 | 10.0k | return r.read_source(SCN_FWD(args)...); | 4159 | 10.0k | }, |
Unexecuted instantiation: _ZZN3scn2v34impl21reader_impl_for_floatIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEeEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RT0_NS0_6detail10locale_refEENKUlRNS1_12float_readerIwEEDpOT_E_clIJSB_SO_EEEDaSR_SU_ Unexecuted instantiation: _ZZN3scn2v34impl21reader_impl_for_floatIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEfEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_NS9_10locale_refEENKUlRNS1_12float_readerIwEEDpOT_E_clIJSE_SQ_EEEDaST_SW_ Unexecuted instantiation: _ZZN3scn2v34impl21reader_impl_for_floatIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEdEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_NS9_10locale_refEENKUlRNS1_12float_readerIwEEDpOT_E_clIJSE_SQ_EEEDaST_SW_ Unexecuted instantiation: _ZZN3scn2v34impl21reader_impl_for_floatIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEeEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_NS9_10locale_refEENKUlRNS1_12float_readerIwEEDpOT_E_clIJSE_SQ_EEEDaST_SW_ |
4160 | 10.6k | value); |
4161 | 10.6k | } Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_floatIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEfEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RT0_NS0_6detail10locale_refE _ZN3scn2v34impl21reader_impl_for_floatIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEdEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RT0_NS0_6detail10locale_refE Line | Count | Source | 4151 | 628 | { | 4152 | 628 | SCN_UNUSED(loc); | 4153 | | | 4154 | 628 | float_reader<CharT> rd{}; | 4155 | 628 | return read_impl<Range>( | 4156 | 628 | range, rd, | 4157 | 628 | [](float_reader<CharT>& r, auto&&... args) { | 4158 | 628 | return r.read_source(SCN_FWD(args)...); | 4159 | 628 | }, | 4160 | 628 | value); | 4161 | 628 | } |
Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_floatIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEeEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RT0_NS0_6detail10locale_refE Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_floatIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEfEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_NS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_floatIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEdEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_NS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_floatIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEeEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_NS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_floatIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEfEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RT0_NS0_6detail10locale_refE _ZN3scn2v34impl21reader_impl_for_floatIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEdEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RT0_NS0_6detail10locale_refE Line | Count | Source | 4151 | 10.0k | { | 4152 | 10.0k | SCN_UNUSED(loc); | 4153 | | | 4154 | 10.0k | float_reader<CharT> rd{}; | 4155 | 10.0k | return read_impl<Range>( | 4156 | 10.0k | range, rd, | 4157 | 10.0k | [](float_reader<CharT>& r, auto&&... args) { | 4158 | 10.0k | return r.read_source(SCN_FWD(args)...); | 4159 | 10.0k | }, | 4160 | 10.0k | value); | 4161 | 10.0k | } |
Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_floatIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEeEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RT0_NS0_6detail10locale_refE Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_floatIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEfEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_NS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_floatIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEdEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_NS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_floatIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEeEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RT0_NS9_10locale_refE |
4162 | | |
4163 | | template <typename Range, typename T> |
4164 | | auto read_specs(Range range, |
4165 | | const detail::format_specs& specs, |
4166 | | T& value, |
4167 | | detail::locale_ref loc) |
4168 | | -> scan_expected<ranges::const_iterator_t<Range>> |
4169 | 974 | { |
4170 | 974 | float_reader<CharT> rd{get_options(specs)}; |
4171 | | |
4172 | 974 | #if !SCN_DISABLE_LOCALE |
4173 | 974 | if (specs.localized) { |
4174 | 30 | return read_impl<Range>( |
4175 | 30 | range, rd, |
4176 | 30 | [](float_reader<CharT>& r, auto&&... args) { |
4177 | 30 | return r.read_source_localized(SCN_FWD(args)...); |
4178 | 30 | }, Unexecuted instantiation: _ZZN3scn2v34impl21reader_impl_for_floatIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEfEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERT0_NSA_10locale_refEENKUlRNS1_12float_readerIcEEDpOT_E_clIJSG_SV_EEEDaSY_S11_ Unexecuted instantiation: _ZZN3scn2v34impl21reader_impl_for_floatIcE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEfEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERT0_NS9_10locale_refEENKUlRNS1_12float_readerIcEEDpOT_E_clIJSE_ST_EEEDaSW_SZ_ Unexecuted instantiation: _ZZN3scn2v34impl21reader_impl_for_floatIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEfEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERT0_NSN_10locale_refEENKUlRNS1_12float_readerIcEEDpOT_E_clIJSD_ST_EEEDaSW_SZ_ Unexecuted instantiation: _ZZN3scn2v34impl21reader_impl_for_floatIcE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEfEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERT0_NSL_10locale_refEENKUlRNS1_12float_readerIcEEDpOT_E_clIJSB_SR_EEEDaSU_SX_ Unexecuted instantiation: _ZZN3scn2v34impl21reader_impl_for_floatIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEdEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERT0_NSA_10locale_refEENKUlRNS1_12float_readerIcEEDpOT_E_clIJSG_SV_EEEDaSY_S11_ Unexecuted instantiation: _ZZN3scn2v34impl21reader_impl_for_floatIcE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEdEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERT0_NS9_10locale_refEENKUlRNS1_12float_readerIcEEDpOT_E_clIJSE_ST_EEEDaSW_SZ_ _ZZN3scn2v34impl21reader_impl_for_floatIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEdEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERT0_NSN_10locale_refEENKUlRNS1_12float_readerIcEEDpOT_E_clIJSD_ST_EEEDaSW_SZ_ Line | Count | Source | 4176 | 8 | [](float_reader<CharT>& r, auto&&... args) { | 4177 | 8 | return r.read_source_localized(SCN_FWD(args)...); | 4178 | 8 | }, |
_ZZN3scn2v34impl21reader_impl_for_floatIcE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEdEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERT0_NSL_10locale_refEENKUlRNS1_12float_readerIcEEDpOT_E_clIJSB_SR_EEEDaSU_SX_ Line | Count | Source | 4176 | 10 | [](float_reader<CharT>& r, auto&&... args) { | 4177 | 10 | return r.read_source_localized(SCN_FWD(args)...); | 4178 | 10 | }, |
Unexecuted instantiation: _ZZN3scn2v34impl21reader_impl_for_floatIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEeEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERT0_NSA_10locale_refEENKUlRNS1_12float_readerIcEEDpOT_E_clIJSG_SV_EEEDaSY_S11_ Unexecuted instantiation: _ZZN3scn2v34impl21reader_impl_for_floatIcE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEeEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERT0_NS9_10locale_refEENKUlRNS1_12float_readerIcEEDpOT_E_clIJSE_ST_EEEDaSW_SZ_ Unexecuted instantiation: _ZZN3scn2v34impl21reader_impl_for_floatIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEeEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERT0_NSN_10locale_refEENKUlRNS1_12float_readerIcEEDpOT_E_clIJSD_ST_EEEDaSW_SZ_ Unexecuted instantiation: _ZZN3scn2v34impl21reader_impl_for_floatIcE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEeEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERT0_NSL_10locale_refEENKUlRNS1_12float_readerIcEEDpOT_E_clIJSB_SR_EEEDaSU_SX_ Unexecuted instantiation: _ZZN3scn2v34impl21reader_impl_for_floatIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEfEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERT0_NSA_10locale_refEENKUlRNS1_12float_readerIwEEDpOT_E_clIJSG_SV_EEEDaSY_S11_ Unexecuted instantiation: _ZZN3scn2v34impl21reader_impl_for_floatIwE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEfEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERT0_NS9_10locale_refEENKUlRNS1_12float_readerIwEEDpOT_E_clIJSE_ST_EEEDaSW_SZ_ Unexecuted instantiation: _ZZN3scn2v34impl21reader_impl_for_floatIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEfEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERT0_NSN_10locale_refEENKUlRNS1_12float_readerIwEEDpOT_E_clIJSD_ST_EEEDaSW_SZ_ Unexecuted instantiation: _ZZN3scn2v34impl21reader_impl_for_floatIwE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEfEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERT0_NSL_10locale_refEENKUlRNS1_12float_readerIwEEDpOT_E_clIJSB_SR_EEEDaSU_SX_ Unexecuted instantiation: _ZZN3scn2v34impl21reader_impl_for_floatIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEdEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERT0_NSA_10locale_refEENKUlRNS1_12float_readerIwEEDpOT_E_clIJSG_SV_EEEDaSY_S11_ Unexecuted instantiation: _ZZN3scn2v34impl21reader_impl_for_floatIwE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEdEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERT0_NS9_10locale_refEENKUlRNS1_12float_readerIwEEDpOT_E_clIJSE_ST_EEEDaSW_SZ_ _ZZN3scn2v34impl21reader_impl_for_floatIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEdEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERT0_NSN_10locale_refEENKUlRNS1_12float_readerIwEEDpOT_E_clIJSD_ST_EEEDaSW_SZ_ Line | Count | Source | 4176 | 6 | [](float_reader<CharT>& r, auto&&... args) { | 4177 | 6 | return r.read_source_localized(SCN_FWD(args)...); | 4178 | 6 | }, |
_ZZN3scn2v34impl21reader_impl_for_floatIwE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEdEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERT0_NSL_10locale_refEENKUlRNS1_12float_readerIwEEDpOT_E_clIJSB_SR_EEEDaSU_SX_ Line | Count | Source | 4176 | 6 | [](float_reader<CharT>& r, auto&&... args) { | 4177 | 6 | return r.read_source_localized(SCN_FWD(args)...); | 4178 | 6 | }, |
Unexecuted instantiation: _ZZN3scn2v34impl21reader_impl_for_floatIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEeEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERT0_NSA_10locale_refEENKUlRNS1_12float_readerIwEEDpOT_E_clIJSG_SV_EEEDaSY_S11_ Unexecuted instantiation: _ZZN3scn2v34impl21reader_impl_for_floatIwE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEeEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERT0_NS9_10locale_refEENKUlRNS1_12float_readerIwEEDpOT_E_clIJSE_ST_EEEDaSW_SZ_ Unexecuted instantiation: _ZZN3scn2v34impl21reader_impl_for_floatIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEeEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERT0_NSN_10locale_refEENKUlRNS1_12float_readerIwEEDpOT_E_clIJSD_ST_EEEDaSW_SZ_ Unexecuted instantiation: _ZZN3scn2v34impl21reader_impl_for_floatIwE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEeEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERT0_NSL_10locale_refEENKUlRNS1_12float_readerIwEEDpOT_E_clIJSB_SR_EEEDaSU_SX_ |
4179 | 30 | value, loc); |
4180 | 30 | } |
4181 | 944 | #endif |
4182 | | |
4183 | 944 | return read_impl<Range>( |
4184 | 944 | range, rd, |
4185 | 944 | [](float_reader<CharT>& r, auto&&... args) { |
4186 | 944 | return r.read_source(SCN_FWD(args)...); |
4187 | 944 | }, Unexecuted instantiation: _ZZN3scn2v34impl21reader_impl_for_floatIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEfEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERT0_NSA_10locale_refEENKUlRNS1_12float_readerIcEEDpOT_E0_clIJSG_SV_EEEDaSY_S11_ Unexecuted instantiation: _ZZN3scn2v34impl21reader_impl_for_floatIcE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEfEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERT0_NS9_10locale_refEENKUlRNS1_12float_readerIcEEDpOT_E0_clIJSE_ST_EEEDaSW_SZ_ Unexecuted instantiation: _ZZN3scn2v34impl21reader_impl_for_floatIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEfEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERT0_NSN_10locale_refEENKUlRNS1_12float_readerIcEEDpOT_E0_clIJSD_ST_EEEDaSW_SZ_ Unexecuted instantiation: _ZZN3scn2v34impl21reader_impl_for_floatIcE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEfEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERT0_NSL_10locale_refEENKUlRNS1_12float_readerIcEEDpOT_E0_clIJSB_SR_EEEDaSU_SX_ Unexecuted instantiation: _ZZN3scn2v34impl21reader_impl_for_floatIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEdEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERT0_NSA_10locale_refEENKUlRNS1_12float_readerIcEEDpOT_E0_clIJSG_SV_EEEDaSY_S11_ Unexecuted instantiation: _ZZN3scn2v34impl21reader_impl_for_floatIcE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEdEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERT0_NS9_10locale_refEENKUlRNS1_12float_readerIcEEDpOT_E0_clIJSE_ST_EEEDaSW_SZ_ _ZZN3scn2v34impl21reader_impl_for_floatIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEdEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERT0_NSN_10locale_refEENKUlRNS1_12float_readerIcEEDpOT_E0_clIJSD_ST_EEEDaSW_SZ_ Line | Count | Source | 4185 | 262 | [](float_reader<CharT>& r, auto&&... args) { | 4186 | 262 | return r.read_source(SCN_FWD(args)...); | 4187 | 262 | }, |
_ZZN3scn2v34impl21reader_impl_for_floatIcE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEdEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERT0_NSL_10locale_refEENKUlRNS1_12float_readerIcEEDpOT_E0_clIJSB_SR_EEEDaSU_SX_ Line | Count | Source | 4185 | 246 | [](float_reader<CharT>& r, auto&&... args) { | 4186 | 246 | return r.read_source(SCN_FWD(args)...); | 4187 | 246 | }, |
Unexecuted instantiation: _ZZN3scn2v34impl21reader_impl_for_floatIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEeEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERT0_NSA_10locale_refEENKUlRNS1_12float_readerIcEEDpOT_E0_clIJSG_SV_EEEDaSY_S11_ Unexecuted instantiation: _ZZN3scn2v34impl21reader_impl_for_floatIcE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEeEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERT0_NS9_10locale_refEENKUlRNS1_12float_readerIcEEDpOT_E0_clIJSE_ST_EEEDaSW_SZ_ Unexecuted instantiation: _ZZN3scn2v34impl21reader_impl_for_floatIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEeEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERT0_NSN_10locale_refEENKUlRNS1_12float_readerIcEEDpOT_E0_clIJSD_ST_EEEDaSW_SZ_ Unexecuted instantiation: _ZZN3scn2v34impl21reader_impl_for_floatIcE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEeEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERT0_NSL_10locale_refEENKUlRNS1_12float_readerIcEEDpOT_E0_clIJSB_SR_EEEDaSU_SX_ Unexecuted instantiation: _ZZN3scn2v34impl21reader_impl_for_floatIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEfEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERT0_NSA_10locale_refEENKUlRNS1_12float_readerIwEEDpOT_E0_clIJSG_SV_EEEDaSY_S11_ Unexecuted instantiation: _ZZN3scn2v34impl21reader_impl_for_floatIwE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEfEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERT0_NS9_10locale_refEENKUlRNS1_12float_readerIwEEDpOT_E0_clIJSE_ST_EEEDaSW_SZ_ Unexecuted instantiation: _ZZN3scn2v34impl21reader_impl_for_floatIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEfEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERT0_NSN_10locale_refEENKUlRNS1_12float_readerIwEEDpOT_E0_clIJSD_ST_EEEDaSW_SZ_ Unexecuted instantiation: _ZZN3scn2v34impl21reader_impl_for_floatIwE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEfEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERT0_NSL_10locale_refEENKUlRNS1_12float_readerIwEEDpOT_E0_clIJSB_SR_EEEDaSU_SX_ Unexecuted instantiation: _ZZN3scn2v34impl21reader_impl_for_floatIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEdEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERT0_NSA_10locale_refEENKUlRNS1_12float_readerIwEEDpOT_E0_clIJSG_SV_EEEDaSY_S11_ Unexecuted instantiation: _ZZN3scn2v34impl21reader_impl_for_floatIwE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEdEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERT0_NS9_10locale_refEENKUlRNS1_12float_readerIwEEDpOT_E0_clIJSE_ST_EEEDaSW_SZ_ _ZZN3scn2v34impl21reader_impl_for_floatIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEdEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERT0_NSN_10locale_refEENKUlRNS1_12float_readerIwEEDpOT_E0_clIJSD_ST_EEEDaSW_SZ_ Line | Count | Source | 4185 | 116 | [](float_reader<CharT>& r, auto&&... args) { | 4186 | 116 | return r.read_source(SCN_FWD(args)...); | 4187 | 116 | }, |
_ZZN3scn2v34impl21reader_impl_for_floatIwE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEdEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERT0_NSL_10locale_refEENKUlRNS1_12float_readerIwEEDpOT_E0_clIJSB_SR_EEEDaSU_SX_ Line | Count | Source | 4185 | 320 | [](float_reader<CharT>& r, auto&&... args) { | 4186 | 320 | return r.read_source(SCN_FWD(args)...); | 4187 | 320 | }, |
Unexecuted instantiation: _ZZN3scn2v34impl21reader_impl_for_floatIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEeEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERT0_NSA_10locale_refEENKUlRNS1_12float_readerIwEEDpOT_E0_clIJSG_SV_EEEDaSY_S11_ Unexecuted instantiation: _ZZN3scn2v34impl21reader_impl_for_floatIwE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEeEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERT0_NS9_10locale_refEENKUlRNS1_12float_readerIwEEDpOT_E0_clIJSE_ST_EEEDaSW_SZ_ Unexecuted instantiation: _ZZN3scn2v34impl21reader_impl_for_floatIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEeEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERT0_NSN_10locale_refEENKUlRNS1_12float_readerIwEEDpOT_E0_clIJSD_ST_EEEDaSW_SZ_ Unexecuted instantiation: _ZZN3scn2v34impl21reader_impl_for_floatIwE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEeEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERT0_NSL_10locale_refEENKUlRNS1_12float_readerIwEEDpOT_E0_clIJSB_SR_EEEDaSU_SX_ |
4188 | 944 | value); |
4189 | 974 | } Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_floatIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEfEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERT0_NSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_floatIcE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEfEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERT0_NS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_floatIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEfEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERT0_NSN_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_floatIcE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEfEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERT0_NSL_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_floatIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEdEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERT0_NSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_floatIcE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEdEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERT0_NS9_10locale_refE _ZN3scn2v34impl21reader_impl_for_floatIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEdEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERT0_NSN_10locale_refE Line | Count | Source | 4169 | 270 | { | 4170 | 270 | float_reader<CharT> rd{get_options(specs)}; | 4171 | | | 4172 | 270 | #if !SCN_DISABLE_LOCALE | 4173 | 270 | if (specs.localized) { | 4174 | 8 | return read_impl<Range>( | 4175 | 8 | range, rd, | 4176 | 8 | [](float_reader<CharT>& r, auto&&... args) { | 4177 | 8 | return r.read_source_localized(SCN_FWD(args)...); | 4178 | 8 | }, | 4179 | 8 | value, loc); | 4180 | 8 | } | 4181 | 262 | #endif | 4182 | | | 4183 | 262 | return read_impl<Range>( | 4184 | 262 | range, rd, | 4185 | 262 | [](float_reader<CharT>& r, auto&&... args) { | 4186 | 262 | return r.read_source(SCN_FWD(args)...); | 4187 | 262 | }, | 4188 | 262 | value); | 4189 | 270 | } |
_ZN3scn2v34impl21reader_impl_for_floatIcE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEdEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERT0_NSL_10locale_refE Line | Count | Source | 4169 | 256 | { | 4170 | 256 | float_reader<CharT> rd{get_options(specs)}; | 4171 | | | 4172 | 256 | #if !SCN_DISABLE_LOCALE | 4173 | 256 | if (specs.localized) { | 4174 | 10 | return read_impl<Range>( | 4175 | 10 | range, rd, | 4176 | 10 | [](float_reader<CharT>& r, auto&&... args) { | 4177 | 10 | return r.read_source_localized(SCN_FWD(args)...); | 4178 | 10 | }, | 4179 | 10 | value, loc); | 4180 | 10 | } | 4181 | 246 | #endif | 4182 | | | 4183 | 246 | return read_impl<Range>( | 4184 | 246 | range, rd, | 4185 | 246 | [](float_reader<CharT>& r, auto&&... args) { | 4186 | 246 | return r.read_source(SCN_FWD(args)...); | 4187 | 246 | }, | 4188 | 246 | value); | 4189 | 256 | } |
Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_floatIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEeEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERT0_NSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_floatIcE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEeEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERT0_NS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_floatIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEeEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERT0_NSN_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_floatIcE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEeEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERT0_NSL_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_floatIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEfEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERT0_NSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_floatIwE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEfEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERT0_NS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_floatIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEfEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERT0_NSN_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_floatIwE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEfEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERT0_NSL_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_floatIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEdEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERT0_NSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_floatIwE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEdEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERT0_NS9_10locale_refE _ZN3scn2v34impl21reader_impl_for_floatIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEdEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERT0_NSN_10locale_refE Line | Count | Source | 4169 | 122 | { | 4170 | 122 | float_reader<CharT> rd{get_options(specs)}; | 4171 | | | 4172 | 122 | #if !SCN_DISABLE_LOCALE | 4173 | 122 | if (specs.localized) { | 4174 | 6 | return read_impl<Range>( | 4175 | 6 | range, rd, | 4176 | 6 | [](float_reader<CharT>& r, auto&&... args) { | 4177 | 6 | return r.read_source_localized(SCN_FWD(args)...); | 4178 | 6 | }, | 4179 | 6 | value, loc); | 4180 | 6 | } | 4181 | 116 | #endif | 4182 | | | 4183 | 116 | return read_impl<Range>( | 4184 | 116 | range, rd, | 4185 | 116 | [](float_reader<CharT>& r, auto&&... args) { | 4186 | 116 | return r.read_source(SCN_FWD(args)...); | 4187 | 116 | }, | 4188 | 116 | value); | 4189 | 122 | } |
_ZN3scn2v34impl21reader_impl_for_floatIwE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEdEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERT0_NSL_10locale_refE Line | Count | Source | 4169 | 326 | { | 4170 | 326 | float_reader<CharT> rd{get_options(specs)}; | 4171 | | | 4172 | 326 | #if !SCN_DISABLE_LOCALE | 4173 | 326 | if (specs.localized) { | 4174 | 6 | return read_impl<Range>( | 4175 | 6 | range, rd, | 4176 | 6 | [](float_reader<CharT>& r, auto&&... args) { | 4177 | 6 | return r.read_source_localized(SCN_FWD(args)...); | 4178 | 6 | }, | 4179 | 6 | value, loc); | 4180 | 6 | } | 4181 | 320 | #endif | 4182 | | | 4183 | 320 | return read_impl<Range>( | 4184 | 320 | range, rd, | 4185 | 320 | [](float_reader<CharT>& r, auto&&... args) { | 4186 | 320 | return r.read_source(SCN_FWD(args)...); | 4187 | 320 | }, | 4188 | 320 | value); | 4189 | 326 | } |
Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_floatIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEeEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERT0_NSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_floatIwE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEeEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERT0_NS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_floatIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEeEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERT0_NSN_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_floatIwE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEeEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERT0_NSL_10locale_refE |
4190 | | |
4191 | | private: |
4192 | | template <typename Range> |
4193 | | using read_source_callback_type = |
4194 | | scan_expected<ranges::const_iterator_t<Range>>(float_reader<CharT>&, |
4195 | | Range, |
4196 | | detail::locale_ref); |
4197 | | |
4198 | | template <typename Range, typename T> |
4199 | | scan_expected<ranges::const_iterator_t<Range>> read_impl( |
4200 | | Range range, |
4201 | | float_reader<CharT>& rd, |
4202 | | function_ref<read_source_callback_type<Range>> read_source_cb, |
4203 | | T& value, |
4204 | | detail::locale_ref loc = {}) |
4205 | 11.6k | { |
4206 | 11.6k | if (auto r = std::invoke(read_source_cb, rd, range, loc); |
4207 | 11.6k | SCN_UNLIKELY(!r)) { |
4208 | 426 | return unexpected(r.error()); |
4209 | 426 | } |
4210 | | |
4211 | 11.1k | SCN_TRY(n, rd.parse_value(value)); |
4212 | 0 | return ranges::next(range.begin(), n); |
4213 | 11.1k | } Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_floatIcE9read_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEfEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RNS1_12float_readerIcEENS1_12function_refIFSP_SS_SK_NSA_10locale_refEENS1_12fnref_detail11qual_fn_sigISV_E8functionEEERT0_SU_ Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_floatIcE9read_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEfEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RNS1_12float_readerIcEENS1_12function_refIFSN_SQ_SI_NS9_10locale_refEENS1_12fnref_detail11qual_fn_sigIST_E8functionEEERT0_SS_ Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_floatIcE9read_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEfEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RNS1_12float_readerIcEENS1_12function_refIFSM_SP_SH_NS0_6detail10locale_refEENS1_12fnref_detail11qual_fn_sigIST_E8functionEEERT0_SS_ Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_floatIcE9read_implINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEfEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RNS1_12float_readerIcEENS1_12function_refIFSK_SN_SF_NS0_6detail10locale_refEENS1_12fnref_detail11qual_fn_sigISR_E8functionEEERT0_SQ_ Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_floatIcE9read_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEdEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RNS1_12float_readerIcEENS1_12function_refIFSP_SS_SK_NSA_10locale_refEENS1_12fnref_detail11qual_fn_sigISV_E8functionEEERT0_SU_ Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_floatIcE9read_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEdEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RNS1_12float_readerIcEENS1_12function_refIFSN_SQ_SI_NS9_10locale_refEENS1_12fnref_detail11qual_fn_sigIST_E8functionEEERT0_SS_ _ZN3scn2v34impl21reader_impl_for_floatIcE9read_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEdEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RNS1_12float_readerIcEENS1_12function_refIFSM_SP_SH_NS0_6detail10locale_refEENS1_12fnref_detail11qual_fn_sigIST_E8functionEEERT0_SS_ Line | Count | Source | 4205 | 270 | { | 4206 | 270 | if (auto r = std::invoke(read_source_cb, rd, range, loc); | 4207 | 270 | SCN_UNLIKELY(!r)) { | 4208 | 270 | return unexpected(r.error()); | 4209 | 270 | } | 4210 | | | 4211 | 0 | SCN_TRY(n, rd.parse_value(value)); | 4212 | 0 | return ranges::next(range.begin(), n); | 4213 | 0 | } |
_ZN3scn2v34impl21reader_impl_for_floatIcE9read_implINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEdEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RNS1_12float_readerIcEENS1_12function_refIFSK_SN_SF_NS0_6detail10locale_refEENS1_12fnref_detail11qual_fn_sigISR_E8functionEEERT0_SQ_ Line | Count | Source | 4205 | 884 | { | 4206 | 884 | if (auto r = std::invoke(read_source_cb, rd, range, loc); | 4207 | 884 | SCN_UNLIKELY(!r)) { | 4208 | 28 | return unexpected(r.error()); | 4209 | 28 | } | 4210 | | | 4211 | 856 | SCN_TRY(n, rd.parse_value(value)); | 4212 | 0 | return ranges::next(range.begin(), n); | 4213 | 856 | } |
Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_floatIcE9read_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEeEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RNS1_12float_readerIcEENS1_12function_refIFSP_SS_SK_NSA_10locale_refEENS1_12fnref_detail11qual_fn_sigISV_E8functionEEERT0_SU_ Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_floatIcE9read_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEeEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RNS1_12float_readerIcEENS1_12function_refIFSN_SQ_SI_NS9_10locale_refEENS1_12fnref_detail11qual_fn_sigIST_E8functionEEERT0_SS_ Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_floatIcE9read_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEeEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RNS1_12float_readerIcEENS1_12function_refIFSM_SP_SH_NS0_6detail10locale_refEENS1_12fnref_detail11qual_fn_sigIST_E8functionEEERT0_SS_ Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_floatIcE9read_implINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEeEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RNS1_12float_readerIcEENS1_12function_refIFSK_SN_SF_NS0_6detail10locale_refEENS1_12fnref_detail11qual_fn_sigISR_E8functionEEERT0_SQ_ Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_floatIwE9read_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEfEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RNS1_12float_readerIwEENS1_12function_refIFSP_SS_SK_NSA_10locale_refEENS1_12fnref_detail11qual_fn_sigISV_E8functionEEERT0_SU_ Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_floatIwE9read_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEfEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RNS1_12float_readerIwEENS1_12function_refIFSN_SQ_SI_NS9_10locale_refEENS1_12fnref_detail11qual_fn_sigIST_E8functionEEERT0_SS_ Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_floatIwE9read_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEfEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RNS1_12float_readerIwEENS1_12function_refIFSM_SP_SH_NS0_6detail10locale_refEENS1_12fnref_detail11qual_fn_sigIST_E8functionEEERT0_SS_ Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_floatIwE9read_implINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEfEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RNS1_12float_readerIwEENS1_12function_refIFSK_SN_SF_NS0_6detail10locale_refEENS1_12fnref_detail11qual_fn_sigISR_E8functionEEERT0_SQ_ Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_floatIwE9read_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEdEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RNS1_12float_readerIwEENS1_12function_refIFSP_SS_SK_NSA_10locale_refEENS1_12fnref_detail11qual_fn_sigISV_E8functionEEERT0_SU_ Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_floatIwE9read_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEdEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RNS1_12float_readerIwEENS1_12function_refIFSN_SQ_SI_NS9_10locale_refEENS1_12fnref_detail11qual_fn_sigIST_E8functionEEERT0_SS_ _ZN3scn2v34impl21reader_impl_for_floatIwE9read_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEdEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RNS1_12float_readerIwEENS1_12function_refIFSM_SP_SH_NS0_6detail10locale_refEENS1_12fnref_detail11qual_fn_sigIST_E8functionEEERT0_SS_ Line | Count | Source | 4205 | 122 | { | 4206 | 122 | if (auto r = std::invoke(read_source_cb, rd, range, loc); | 4207 | 122 | SCN_UNLIKELY(!r)) { | 4208 | 122 | return unexpected(r.error()); | 4209 | 122 | } | 4210 | | | 4211 | 0 | SCN_TRY(n, rd.parse_value(value)); | 4212 | 0 | return ranges::next(range.begin(), n); | 4213 | 0 | } |
_ZN3scn2v34impl21reader_impl_for_floatIwE9read_implINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEdEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RNS1_12float_readerIwEENS1_12function_refIFSK_SN_SF_NS0_6detail10locale_refEENS1_12fnref_detail11qual_fn_sigISR_E8functionEEERT0_SQ_ Line | Count | Source | 4205 | 10.3k | { | 4206 | 10.3k | if (auto r = std::invoke(read_source_cb, rd, range, loc); | 4207 | 10.3k | SCN_UNLIKELY(!r)) { | 4208 | 6 | return unexpected(r.error()); | 4209 | 6 | } | 4210 | | | 4211 | 10.3k | SCN_TRY(n, rd.parse_value(value)); | 4212 | 0 | return ranges::next(range.begin(), n); | 4213 | 10.3k | } |
Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_floatIwE9read_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEeEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RNS1_12float_readerIwEENS1_12function_refIFSP_SS_SK_NSA_10locale_refEENS1_12fnref_detail11qual_fn_sigISV_E8functionEEERT0_SU_ Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_floatIwE9read_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEeEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RNS1_12float_readerIwEENS1_12function_refIFSN_SQ_SI_NS9_10locale_refEENS1_12fnref_detail11qual_fn_sigIST_E8functionEEERT0_SS_ Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_floatIwE9read_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEeEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RNS1_12float_readerIwEENS1_12function_refIFSM_SP_SH_NS0_6detail10locale_refEENS1_12fnref_detail11qual_fn_sigIST_E8functionEEERT0_SS_ Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_floatIwE9read_implINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEeEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RNS1_12float_readerIwEENS1_12function_refIFSK_SN_SF_NS0_6detail10locale_refEENS1_12fnref_detail11qual_fn_sigISR_E8functionEEERT0_SQ_ |
4214 | | |
4215 | | static unsigned get_options(const detail::format_specs& specs) |
4216 | 974 | { |
4217 | 974 | unsigned options{}; |
4218 | 974 | if (specs.localized) { |
4219 | 30 | options |= float_reader_base::allow_thsep; |
4220 | 30 | } |
4221 | | |
4222 | 974 | SCN_GCC_COMPAT_PUSH |
4223 | 974 | SCN_GCC_COMPAT_IGNORE("-Wswitch-enum") |
4224 | | |
4225 | 974 | switch (specs.type) { |
4226 | 42 | case detail::presentation_type::float_fixed: |
4227 | 42 | return options | float_reader_base::allow_fixed; |
4228 | | |
4229 | 8 | case detail::presentation_type::float_scientific: |
4230 | 8 | return options | float_reader_base::allow_scientific; |
4231 | | |
4232 | 32 | case detail::presentation_type::float_hex: |
4233 | 32 | return options | float_reader_base::allow_hex; |
4234 | | |
4235 | 10 | case detail::presentation_type::float_general: |
4236 | 10 | return options | float_reader_base::allow_scientific | |
4237 | 10 | float_reader_base::allow_fixed; |
4238 | | |
4239 | 882 | case detail::presentation_type::none: |
4240 | 882 | return options | float_reader_base::allow_scientific | |
4241 | 882 | float_reader_base::allow_fixed | |
4242 | 882 | float_reader_base::allow_hex; |
4243 | | |
4244 | 0 | default: |
4245 | 0 | SCN_EXPECT(false); |
4246 | 974 | SCN_UNREACHABLE; |
4247 | 974 | } |
4248 | | |
4249 | | SCN_GCC_COMPAT_POP // -Wswitch-enum |
4250 | 974 | } scn::v3::impl::reader_impl_for_float<char>::get_options(scn::v3::detail::format_specs const&) Line | Count | Source | 4216 | 526 | { | 4217 | 526 | unsigned options{}; | 4218 | 526 | if (specs.localized) { | 4219 | 18 | options |= float_reader_base::allow_thsep; | 4220 | 18 | } | 4221 | | | 4222 | 526 | SCN_GCC_COMPAT_PUSH | 4223 | 526 | SCN_GCC_COMPAT_IGNORE("-Wswitch-enum") | 4224 | | | 4225 | 526 | switch (specs.type) { | 4226 | 32 | case detail::presentation_type::float_fixed: | 4227 | 32 | return options | float_reader_base::allow_fixed; | 4228 | | | 4229 | 4 | case detail::presentation_type::float_scientific: | 4230 | 4 | return options | float_reader_base::allow_scientific; | 4231 | | | 4232 | 14 | case detail::presentation_type::float_hex: | 4233 | 14 | return options | float_reader_base::allow_hex; | 4234 | | | 4235 | 10 | case detail::presentation_type::float_general: | 4236 | 10 | return options | float_reader_base::allow_scientific | | 4237 | 10 | float_reader_base::allow_fixed; | 4238 | | | 4239 | 466 | case detail::presentation_type::none: | 4240 | 466 | return options | float_reader_base::allow_scientific | | 4241 | 466 | float_reader_base::allow_fixed | | 4242 | 466 | float_reader_base::allow_hex; | 4243 | | | 4244 | 0 | default: | 4245 | 0 | SCN_EXPECT(false); | 4246 | 526 | SCN_UNREACHABLE; | 4247 | 526 | } | 4248 | | | 4249 | | SCN_GCC_COMPAT_POP // -Wswitch-enum | 4250 | 526 | } |
scn::v3::impl::reader_impl_for_float<wchar_t>::get_options(scn::v3::detail::format_specs const&) Line | Count | Source | 4216 | 448 | { | 4217 | 448 | unsigned options{}; | 4218 | 448 | if (specs.localized) { | 4219 | 12 | options |= float_reader_base::allow_thsep; | 4220 | 12 | } | 4221 | | | 4222 | 448 | SCN_GCC_COMPAT_PUSH | 4223 | 448 | SCN_GCC_COMPAT_IGNORE("-Wswitch-enum") | 4224 | | | 4225 | 448 | switch (specs.type) { | 4226 | 10 | case detail::presentation_type::float_fixed: | 4227 | 10 | return options | float_reader_base::allow_fixed; | 4228 | | | 4229 | 4 | case detail::presentation_type::float_scientific: | 4230 | 4 | return options | float_reader_base::allow_scientific; | 4231 | | | 4232 | 18 | case detail::presentation_type::float_hex: | 4233 | 18 | return options | float_reader_base::allow_hex; | 4234 | | | 4235 | 0 | case detail::presentation_type::float_general: | 4236 | 0 | return options | float_reader_base::allow_scientific | | 4237 | 0 | float_reader_base::allow_fixed; | 4238 | | | 4239 | 416 | case detail::presentation_type::none: | 4240 | 416 | return options | float_reader_base::allow_scientific | | 4241 | 416 | float_reader_base::allow_fixed | | 4242 | 416 | float_reader_base::allow_hex; | 4243 | | | 4244 | 0 | default: | 4245 | 0 | SCN_EXPECT(false); | 4246 | 448 | SCN_UNREACHABLE; | 4247 | 448 | } | 4248 | | | 4249 | | SCN_GCC_COMPAT_POP // -Wswitch-enum | 4250 | 448 | } |
|
4251 | | }; |
4252 | | |
4253 | | ///////////////////////////////////////////////////////////////// |
4254 | | // Regex reader |
4255 | | ///////////////////////////////////////////////////////////////// |
4256 | | |
4257 | | // Forward declaration for C++17 compatibility with regex disabled |
4258 | | template <typename CharT, typename Input> |
4259 | | auto read_regex_matches_impl(std::basic_string_view<CharT> pattern, |
4260 | | detail::regex_flags flags, |
4261 | | Input input, |
4262 | | basic_regex_matches<CharT>& value) |
4263 | | -> scan_expected<ranges::iterator_t<Input>>; |
4264 | | |
4265 | | #if !SCN_DISABLE_REGEX |
4266 | | |
4267 | | #if SCN_REGEX_BACKEND == SCN_REGEX_BACKEND_STD |
4268 | | constexpr auto make_regex_flags(detail::regex_flags flags) |
4269 | | -> scan_expected<std::regex_constants::syntax_option_type> |
4270 | 14.5k | { |
4271 | 14.5k | std::regex_constants::syntax_option_type result{}; |
4272 | 14.5k | if ((flags & detail::regex_flags::multiline) != detail::regex_flags::none) { |
4273 | 390 | #if SCN_HAS_STD_REGEX_MULTILINE |
4274 | 390 | result |= std::regex_constants::multiline; |
4275 | | #else |
4276 | | return unexpected_scan_error( |
4277 | | scan_error::invalid_format_string, |
4278 | | "/m flag for regex isn't supported by regex backend"); |
4279 | | #endif |
4280 | 390 | } |
4281 | 14.5k | if ((flags & detail::regex_flags::singleline) != |
4282 | 14.5k | detail::regex_flags::none) { |
4283 | 0 | return unexpected_scan_error( |
4284 | 0 | scan_error::invalid_format_string, |
4285 | 0 | "/s flag for regex isn't supported by regex backend"); |
4286 | 0 | } |
4287 | 14.5k | if ((flags & detail::regex_flags::nocase) != detail::regex_flags::none) { |
4288 | 1.59k | result |= std::regex_constants::icase; |
4289 | 1.59k | } |
4290 | 14.5k | if ((flags & detail::regex_flags::nocapture) != detail::regex_flags::none) { |
4291 | 12 | result |= std::regex_constants::nosubs; |
4292 | 12 | } |
4293 | 14.5k | return result; |
4294 | 14.5k | } |
4295 | | #elif SCN_REGEX_BACKEND == SCN_REGEX_BACKEND_BOOST |
4296 | | constexpr auto make_regex_flags(detail::regex_flags flags) |
4297 | | -> boost::regex_constants::syntax_option_type |
4298 | | { |
4299 | | boost::regex_constants::syntax_option_type result{}; |
4300 | | if ((flags & detail::regex_flags::multiline) == detail::regex_flags::none) { |
4301 | | result |= boost::regex_constants::no_mod_m; |
4302 | | } |
4303 | | if ((flags & detail::regex_flags::singleline) != |
4304 | | detail::regex_flags::none) { |
4305 | | result |= boost::regex_constants::mod_s; |
4306 | | } |
4307 | | if ((flags & detail::regex_flags::nocase) != detail::regex_flags::none) { |
4308 | | result |= boost::regex_constants::icase; |
4309 | | } |
4310 | | if ((flags & detail::regex_flags::nocapture) != detail::regex_flags::none) { |
4311 | | result |= boost::regex_constants::nosubs; |
4312 | | } |
4313 | | return result; |
4314 | | } |
4315 | | #elif SCN_REGEX_BACKEND == SCN_REGEX_BACKEND_RE2 |
4316 | | inline auto make_regex_flags(detail::regex_flags flags) |
4317 | | -> std::pair<RE2::Options, std::string_view> |
4318 | | { |
4319 | | RE2::Options opt{RE2::Quiet}; |
4320 | | std::string_view stringflags{}; |
4321 | | |
4322 | | if ((flags & detail::regex_flags::multiline) == detail::regex_flags::none) { |
4323 | | stringflags = "(?m)"; |
4324 | | } |
4325 | | if ((flags & detail::regex_flags::singleline) != |
4326 | | detail::regex_flags::none) { |
4327 | | opt.set_dot_nl(true); |
4328 | | } |
4329 | | if ((flags & detail::regex_flags::nocase) != detail::regex_flags::none) { |
4330 | | opt.set_case_sensitive(false); |
4331 | | } |
4332 | | if ((flags & detail::regex_flags::nocapture) != detail::regex_flags::none) { |
4333 | | opt.set_never_capture(true); |
4334 | | } |
4335 | | |
4336 | | return {opt, stringflags}; |
4337 | | } |
4338 | | #endif // SCN_REGEX_BACKEND == ... |
4339 | | |
4340 | | template <typename CharT, typename Input> |
4341 | | auto read_regex_string_impl(std::basic_string_view<CharT> pattern, |
4342 | | detail::regex_flags flags, |
4343 | | Input input) |
4344 | | -> scan_expected<ranges::iterator_t<Input>> |
4345 | 14.5k | { |
4346 | 14.5k | static_assert(ranges::contiguous_range<Input> && |
4347 | 14.5k | ranges::borrowed_range<Input> && |
4348 | 14.5k | std::is_same_v<ranges::range_value_t<Input>, CharT>); |
4349 | | |
4350 | 14.5k | #if SCN_REGEX_BACKEND == SCN_REGEX_BACKEND_STD |
4351 | 14.5k | std::basic_regex<CharT> re{}; |
4352 | 14.5k | try { |
4353 | 14.5k | SCN_TRY(re_flags, make_regex_flags(flags)); |
4354 | 14.5k | re = std::basic_regex<CharT>{pattern.data(), pattern.size(), |
4355 | 14.5k | re_flags | std::regex_constants::nosubs}; |
4356 | 14.5k | } |
4357 | 14.5k | catch (const std::regex_error& err) { |
4358 | 7.05k | return unexpected_scan_error(scan_error::invalid_format_string, |
4359 | 7.05k | "Invalid regex"); |
4360 | 7.05k | } |
4361 | | |
4362 | 7.44k | std::match_results<const CharT*> matches{}; |
4363 | 7.44k | try { |
4364 | 7.44k | bool found = std::regex_search(input.data(), |
4365 | 7.44k | input.data() + input.size(), matches, re, |
4366 | 7.44k | std::regex_constants::match_continuous); |
4367 | 7.44k | if (!found || matches.prefix().matched) { |
4368 | 4.78k | return unexpected_scan_error(scan_error::invalid_scanned_value, |
4369 | 4.78k | "Regular expression didn't match"); |
4370 | 4.78k | } |
4371 | 7.44k | } |
4372 | 7.44k | catch (const std::regex_error& err) { |
4373 | 168 | return unexpected_scan_error(scan_error::invalid_format_string, |
4374 | 168 | "Regex matching failed with an error"); |
4375 | 168 | } |
4376 | | |
4377 | 2.49k | return input.begin() + ranges::distance(input.data(), matches[0].second); |
4378 | | #elif SCN_REGEX_BACKEND == SCN_REGEX_BACKEND_BOOST |
4379 | | auto re = |
4380 | | #if SCN_REGEX_BOOST_USE_ICU |
4381 | | boost::make_u32regex(pattern.data(), pattern.data() + pattern.size(), |
4382 | | make_regex_flags(flags) | |
4383 | | boost::regex_constants::no_except | |
4384 | | boost::regex_constants::nosubs); |
4385 | | #else |
4386 | | boost::basic_regex<CharT>{pattern.data(), pattern.size(), |
4387 | | make_regex_flags(flags) | |
4388 | | boost::regex_constants::no_except | |
4389 | | boost::regex_constants::nosubs}; |
4390 | | #endif |
4391 | | if (re.status() != 0) { |
4392 | | return unexpected_scan_error(scan_error::invalid_format_string, |
4393 | | "Invalid regex"); |
4394 | | } |
4395 | | |
4396 | | boost::match_results<const CharT*> matches{}; |
4397 | | try { |
4398 | | bool found = |
4399 | | #if SCN_REGEX_BOOST_USE_ICU |
4400 | | boost::u32regex_search(input.data(), input.data() + input.size(), |
4401 | | matches, re, |
4402 | | boost::regex_constants::match_continuous); |
4403 | | #else |
4404 | | boost::regex_search(input.data(), input.data() + input.size(), |
4405 | | matches, re, |
4406 | | boost::regex_constants::match_continuous); |
4407 | | #endif |
4408 | | if (!found || matches.prefix().matched) { |
4409 | | return unexpected_scan_error(scan_error::invalid_scanned_value, |
4410 | | "Regular expression didn't match"); |
4411 | | } |
4412 | | } |
4413 | | catch (const std::runtime_error& err) { |
4414 | | return unexpected_scan_error(scan_error::invalid_format_string, |
4415 | | "Regex matching failed with an error"); |
4416 | | } |
4417 | | |
4418 | | return input.begin() + ranges::distance(input.data(), matches[0].second); |
4419 | | #elif SCN_REGEX_BACKEND == SCN_REGEX_BACKEND_RE2 |
4420 | | static_assert(std::is_same_v<CharT, char>); |
4421 | | std::string flagged_pattern{}; |
4422 | | auto re = [&]() { |
4423 | | auto [opts, flagstr] = make_regex_flags(flags); |
4424 | | opts.set_never_capture(true); |
4425 | | if (flagstr.empty()) { |
4426 | | return re2::RE2{pattern, opts}; |
4427 | | } |
4428 | | flagged_pattern.reserve(flagstr.size() + pattern.size()); |
4429 | | flagged_pattern.append(flagstr); |
4430 | | flagged_pattern.append(pattern); |
4431 | | return re2::RE2{flagged_pattern, opts}; |
4432 | | }(); |
4433 | | if (!re.ok()) { |
4434 | | return unexpected_scan_error(scan_error::invalid_format_string, |
4435 | | "Failed to parse regular expression"); |
4436 | | } |
4437 | | |
4438 | | auto new_input = detail::make_string_view_from_pointers( |
4439 | | detail::to_address(input.begin()), detail::to_address(input.end())); |
4440 | | bool found = re2::RE2::Consume(&new_input, re); |
4441 | | if (!found) { |
4442 | | return unexpected_scan_error(scan_error::invalid_scanned_value, |
4443 | | "Regular expression didn't match"); |
4444 | | } |
4445 | | return input.begin() + ranges::distance(input.data(), new_input.data()); |
4446 | | #endif // SCN_REGEX_BACKEND == ... |
4447 | 7.44k | } Unexecuted instantiation: _ZN3scn2v34impl22read_regex_string_implIcNSt3__117basic_string_viewIcNS3_11char_traitsIcEEEEEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEENS4_IT_NS5_ISE_EEEENS0_6detail11regex_flagsESA_ _ZN3scn2v34impl22read_regex_string_implIcNS0_6ranges6detail9subrange_8subrangeIPKcS8_EEEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRT0_EEEEEENSt3__117basic_string_viewIT_NSF_11char_traitsISH_EEEENS0_6detail11regex_flagsESB_ Line | Count | Source | 4345 | 9.32k | { | 4346 | 9.32k | static_assert(ranges::contiguous_range<Input> && | 4347 | 9.32k | ranges::borrowed_range<Input> && | 4348 | 9.32k | std::is_same_v<ranges::range_value_t<Input>, CharT>); | 4349 | | | 4350 | 9.32k | #if SCN_REGEX_BACKEND == SCN_REGEX_BACKEND_STD | 4351 | 9.32k | std::basic_regex<CharT> re{}; | 4352 | 9.32k | try { | 4353 | 9.32k | SCN_TRY(re_flags, make_regex_flags(flags)); | 4354 | 9.32k | re = std::basic_regex<CharT>{pattern.data(), pattern.size(), | 4355 | 9.32k | re_flags | std::regex_constants::nosubs}; | 4356 | 9.32k | } | 4357 | 9.32k | catch (const std::regex_error& err) { | 4358 | 4.90k | return unexpected_scan_error(scan_error::invalid_format_string, | 4359 | 4.90k | "Invalid regex"); | 4360 | 4.90k | } | 4361 | | | 4362 | 4.41k | std::match_results<const CharT*> matches{}; | 4363 | 4.41k | try { | 4364 | 4.41k | bool found = std::regex_search(input.data(), | 4365 | 4.41k | input.data() + input.size(), matches, re, | 4366 | 4.41k | std::regex_constants::match_continuous); | 4367 | 4.41k | if (!found || matches.prefix().matched) { | 4368 | 2.59k | return unexpected_scan_error(scan_error::invalid_scanned_value, | 4369 | 2.59k | "Regular expression didn't match"); | 4370 | 2.59k | } | 4371 | 4.41k | } | 4372 | 4.41k | catch (const std::regex_error& err) { | 4373 | 162 | return unexpected_scan_error(scan_error::invalid_format_string, | 4374 | 162 | "Regex matching failed with an error"); | 4375 | 162 | } | 4376 | | | 4377 | 1.65k | return input.begin() + ranges::distance(input.data(), matches[0].second); | 4378 | | #elif SCN_REGEX_BACKEND == SCN_REGEX_BACKEND_BOOST | 4379 | | auto re = | 4380 | | #if SCN_REGEX_BOOST_USE_ICU | 4381 | | boost::make_u32regex(pattern.data(), pattern.data() + pattern.size(), | 4382 | | make_regex_flags(flags) | | 4383 | | boost::regex_constants::no_except | | 4384 | | boost::regex_constants::nosubs); | 4385 | | #else | 4386 | | boost::basic_regex<CharT>{pattern.data(), pattern.size(), | 4387 | | make_regex_flags(flags) | | 4388 | | boost::regex_constants::no_except | | 4389 | | boost::regex_constants::nosubs}; | 4390 | | #endif | 4391 | | if (re.status() != 0) { | 4392 | | return unexpected_scan_error(scan_error::invalid_format_string, | 4393 | | "Invalid regex"); | 4394 | | } | 4395 | | | 4396 | | boost::match_results<const CharT*> matches{}; | 4397 | | try { | 4398 | | bool found = | 4399 | | #if SCN_REGEX_BOOST_USE_ICU | 4400 | | boost::u32regex_search(input.data(), input.data() + input.size(), | 4401 | | matches, re, | 4402 | | boost::regex_constants::match_continuous); | 4403 | | #else | 4404 | | boost::regex_search(input.data(), input.data() + input.size(), | 4405 | | matches, re, | 4406 | | boost::regex_constants::match_continuous); | 4407 | | #endif | 4408 | | if (!found || matches.prefix().matched) { | 4409 | | return unexpected_scan_error(scan_error::invalid_scanned_value, | 4410 | | "Regular expression didn't match"); | 4411 | | } | 4412 | | } | 4413 | | catch (const std::runtime_error& err) { | 4414 | | return unexpected_scan_error(scan_error::invalid_format_string, | 4415 | | "Regex matching failed with an error"); | 4416 | | } | 4417 | | | 4418 | | return input.begin() + ranges::distance(input.data(), matches[0].second); | 4419 | | #elif SCN_REGEX_BACKEND == SCN_REGEX_BACKEND_RE2 | 4420 | | static_assert(std::is_same_v<CharT, char>); | 4421 | | std::string flagged_pattern{}; | 4422 | | auto re = [&]() { | 4423 | | auto [opts, flagstr] = make_regex_flags(flags); | 4424 | | opts.set_never_capture(true); | 4425 | | if (flagstr.empty()) { | 4426 | | return re2::RE2{pattern, opts}; | 4427 | | } | 4428 | | flagged_pattern.reserve(flagstr.size() + pattern.size()); | 4429 | | flagged_pattern.append(flagstr); | 4430 | | flagged_pattern.append(pattern); | 4431 | | return re2::RE2{flagged_pattern, opts}; | 4432 | | }(); | 4433 | | if (!re.ok()) { | 4434 | | return unexpected_scan_error(scan_error::invalid_format_string, | 4435 | | "Failed to parse regular expression"); | 4436 | | } | 4437 | | | 4438 | | auto new_input = detail::make_string_view_from_pointers( | 4439 | | detail::to_address(input.begin()), detail::to_address(input.end())); | 4440 | | bool found = re2::RE2::Consume(&new_input, re); | 4441 | | if (!found) { | 4442 | | return unexpected_scan_error(scan_error::invalid_scanned_value, | 4443 | | "Regular expression didn't match"); | 4444 | | } | 4445 | | return input.begin() + ranges::distance(input.data(), new_input.data()); | 4446 | | #endif // SCN_REGEX_BACKEND == ... | 4447 | 4.41k | } |
Unexecuted instantiation: _ZN3scn2v34impl22read_regex_string_implIwNSt3__117basic_string_viewIwNS3_11char_traitsIwEEEEEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEENS4_IT_NS5_ISE_EEEENS0_6detail11regex_flagsESA_ _ZN3scn2v34impl22read_regex_string_implIwNS0_6ranges6detail9subrange_8subrangeIPKwS8_EEEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRT0_EEEEEENSt3__117basic_string_viewIT_NSF_11char_traitsISH_EEEENS0_6detail11regex_flagsESB_ Line | Count | Source | 4345 | 5.17k | { | 4346 | 5.17k | static_assert(ranges::contiguous_range<Input> && | 4347 | 5.17k | ranges::borrowed_range<Input> && | 4348 | 5.17k | std::is_same_v<ranges::range_value_t<Input>, CharT>); | 4349 | | | 4350 | 5.17k | #if SCN_REGEX_BACKEND == SCN_REGEX_BACKEND_STD | 4351 | 5.17k | std::basic_regex<CharT> re{}; | 4352 | 5.17k | try { | 4353 | 5.17k | SCN_TRY(re_flags, make_regex_flags(flags)); | 4354 | 5.17k | re = std::basic_regex<CharT>{pattern.data(), pattern.size(), | 4355 | 5.17k | re_flags | std::regex_constants::nosubs}; | 4356 | 5.17k | } | 4357 | 5.17k | catch (const std::regex_error& err) { | 4358 | 2.14k | return unexpected_scan_error(scan_error::invalid_format_string, | 4359 | 2.14k | "Invalid regex"); | 4360 | 2.14k | } | 4361 | | | 4362 | 3.03k | std::match_results<const CharT*> matches{}; | 4363 | 3.03k | try { | 4364 | 3.03k | bool found = std::regex_search(input.data(), | 4365 | 3.03k | input.data() + input.size(), matches, re, | 4366 | 3.03k | std::regex_constants::match_continuous); | 4367 | 3.03k | if (!found || matches.prefix().matched) { | 4368 | 2.18k | return unexpected_scan_error(scan_error::invalid_scanned_value, | 4369 | 2.18k | "Regular expression didn't match"); | 4370 | 2.18k | } | 4371 | 3.03k | } | 4372 | 3.03k | catch (const std::regex_error& err) { | 4373 | 6 | return unexpected_scan_error(scan_error::invalid_format_string, | 4374 | 6 | "Regex matching failed with an error"); | 4375 | 6 | } | 4376 | | | 4377 | 840 | return input.begin() + ranges::distance(input.data(), matches[0].second); | 4378 | | #elif SCN_REGEX_BACKEND == SCN_REGEX_BACKEND_BOOST | 4379 | | auto re = | 4380 | | #if SCN_REGEX_BOOST_USE_ICU | 4381 | | boost::make_u32regex(pattern.data(), pattern.data() + pattern.size(), | 4382 | | make_regex_flags(flags) | | 4383 | | boost::regex_constants::no_except | | 4384 | | boost::regex_constants::nosubs); | 4385 | | #else | 4386 | | boost::basic_regex<CharT>{pattern.data(), pattern.size(), | 4387 | | make_regex_flags(flags) | | 4388 | | boost::regex_constants::no_except | | 4389 | | boost::regex_constants::nosubs}; | 4390 | | #endif | 4391 | | if (re.status() != 0) { | 4392 | | return unexpected_scan_error(scan_error::invalid_format_string, | 4393 | | "Invalid regex"); | 4394 | | } | 4395 | | | 4396 | | boost::match_results<const CharT*> matches{}; | 4397 | | try { | 4398 | | bool found = | 4399 | | #if SCN_REGEX_BOOST_USE_ICU | 4400 | | boost::u32regex_search(input.data(), input.data() + input.size(), | 4401 | | matches, re, | 4402 | | boost::regex_constants::match_continuous); | 4403 | | #else | 4404 | | boost::regex_search(input.data(), input.data() + input.size(), | 4405 | | matches, re, | 4406 | | boost::regex_constants::match_continuous); | 4407 | | #endif | 4408 | | if (!found || matches.prefix().matched) { | 4409 | | return unexpected_scan_error(scan_error::invalid_scanned_value, | 4410 | | "Regular expression didn't match"); | 4411 | | } | 4412 | | } | 4413 | | catch (const std::runtime_error& err) { | 4414 | | return unexpected_scan_error(scan_error::invalid_format_string, | 4415 | | "Regex matching failed with an error"); | 4416 | | } | 4417 | | | 4418 | | return input.begin() + ranges::distance(input.data(), matches[0].second); | 4419 | | #elif SCN_REGEX_BACKEND == SCN_REGEX_BACKEND_RE2 | 4420 | | static_assert(std::is_same_v<CharT, char>); | 4421 | | std::string flagged_pattern{}; | 4422 | | auto re = [&]() { | 4423 | | auto [opts, flagstr] = make_regex_flags(flags); | 4424 | | opts.set_never_capture(true); | 4425 | | if (flagstr.empty()) { | 4426 | | return re2::RE2{pattern, opts}; | 4427 | | } | 4428 | | flagged_pattern.reserve(flagstr.size() + pattern.size()); | 4429 | | flagged_pattern.append(flagstr); | 4430 | | flagged_pattern.append(pattern); | 4431 | | return re2::RE2{flagged_pattern, opts}; | 4432 | | }(); | 4433 | | if (!re.ok()) { | 4434 | | return unexpected_scan_error(scan_error::invalid_format_string, | 4435 | | "Failed to parse regular expression"); | 4436 | | } | 4437 | | | 4438 | | auto new_input = detail::make_string_view_from_pointers( | 4439 | | detail::to_address(input.begin()), detail::to_address(input.end())); | 4440 | | bool found = re2::RE2::Consume(&new_input, re); | 4441 | | if (!found) { | 4442 | | return unexpected_scan_error(scan_error::invalid_scanned_value, | 4443 | | "Regular expression didn't match"); | 4444 | | } | 4445 | | return input.begin() + ranges::distance(input.data(), new_input.data()); | 4446 | | #endif // SCN_REGEX_BACKEND == ... | 4447 | 3.03k | } |
|
4448 | | |
4449 | | template <typename CharT, typename Input> |
4450 | | auto read_regex_matches_impl(std::basic_string_view<CharT> pattern, |
4451 | | detail::regex_flags flags, |
4452 | | Input input, |
4453 | | basic_regex_matches<CharT>& value) |
4454 | | -> scan_expected<ranges::iterator_t<Input>> |
4455 | 0 | { |
4456 | 0 | static_assert(ranges::contiguous_range<Input> && |
4457 | 0 | ranges::borrowed_range<Input> && |
4458 | 0 | std::is_same_v<ranges::range_value_t<Input>, CharT>); |
4459 | |
|
4460 | 0 | #if SCN_REGEX_BACKEND == SCN_REGEX_BACKEND_STD |
4461 | 0 | std::basic_regex<CharT> re{}; |
4462 | 0 | try { |
4463 | 0 | SCN_TRY(re_flags, make_regex_flags(flags)); |
4464 | 0 | re = std::basic_regex<CharT>{pattern.data(), pattern.size(), re_flags}; |
4465 | 0 | } |
4466 | 0 | catch (const std::regex_error& err) { |
4467 | 0 | return unexpected_scan_error(scan_error::invalid_format_string, |
4468 | 0 | "Invalid regex"); |
4469 | 0 | } |
4470 | | |
4471 | 0 | std::match_results<const CharT*> matches{}; |
4472 | 0 | try { |
4473 | 0 | bool found = std::regex_search(input.data(), |
4474 | 0 | input.data() + input.size(), matches, re, |
4475 | 0 | std::regex_constants::match_continuous); |
4476 | 0 | if (!found || matches.prefix().matched) { |
4477 | 0 | return unexpected_scan_error(scan_error::invalid_scanned_value, |
4478 | 0 | "Regular expression didn't match"); |
4479 | 0 | } |
4480 | 0 | } |
4481 | 0 | catch (const std::regex_error& err) { |
4482 | 0 | return unexpected_scan_error(scan_error::invalid_format_string, |
4483 | 0 | "Regex matching failed with an error"); |
4484 | 0 | } |
4485 | | |
4486 | 0 | value.resize(matches.size()); |
4487 | 0 | std::transform(matches.begin(), matches.end(), value.begin(), |
4488 | 0 | [](auto&& match) -> std::optional<basic_regex_match<CharT>> { |
4489 | 0 | if (!match.matched) |
4490 | 0 | return std::nullopt; |
4491 | 0 | return detail::make_string_view_from_pointers( |
4492 | 0 | match.first, match.second); |
4493 | 0 | }); Unexecuted instantiation: _ZZN3scn2v34impl23read_regex_matches_implIcNSt3__117basic_string_viewIcNS3_11char_traitsIcEEEEEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEENS4_IT_NS5_ISE_EEEENS0_6detail11regex_flagsESA_RNS0_19basic_regex_matchesISE_EEENKUlOSE_E_clIRKNS3_9sub_matchIPKcEEEENS3_8optionalINS0_17basic_regex_matchIcEEEESM_ Unexecuted instantiation: _ZZN3scn2v34impl23read_regex_matches_implIcNS0_6ranges6detail9subrange_8subrangeIPKcS8_EEEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRT0_EEEEEENSt3__117basic_string_viewIT_NSF_11char_traitsISH_EEEENS0_6detail11regex_flagsESB_RNS0_19basic_regex_matchesISH_EEENKUlOSH_E_clIRKNSF_9sub_matchIS8_EEEENSF_8optionalINS0_17basic_regex_matchIcEEEESQ_ Unexecuted instantiation: _ZZN3scn2v34impl23read_regex_matches_implIwNSt3__117basic_string_viewIwNS3_11char_traitsIwEEEEEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEENS4_IT_NS5_ISE_EEEENS0_6detail11regex_flagsESA_RNS0_19basic_regex_matchesISE_EEENKUlOSE_E_clIRKNS3_9sub_matchIPKwEEEENS3_8optionalINS0_17basic_regex_matchIwEEEESM_ Unexecuted instantiation: _ZZN3scn2v34impl23read_regex_matches_implIwNS0_6ranges6detail9subrange_8subrangeIPKwS8_EEEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRT0_EEEEEENSt3__117basic_string_viewIT_NSF_11char_traitsISH_EEEENS0_6detail11regex_flagsESB_RNS0_19basic_regex_matchesISH_EEENKUlOSH_E_clIRKNSF_9sub_matchIS8_EEEENSF_8optionalINS0_17basic_regex_matchIwEEEESQ_ |
4494 | 0 | return input.begin() + ranges::distance(input.data(), matches[0].second); |
4495 | | #elif SCN_REGEX_BACKEND == SCN_REGEX_BACKEND_BOOST |
4496 | | std::vector<std::basic_string<CharT>> names; |
4497 | | for (size_t i = 0; i < pattern.size();) { |
4498 | | if constexpr (std::is_same_v<CharT, char>) { |
4499 | | i = pattern.find("(?<", i); |
4500 | | } |
4501 | | else { |
4502 | | i = pattern.find(L"(?<", i); |
4503 | | } |
4504 | | |
4505 | | if (i == std::basic_string_view<CharT>::npos) { |
4506 | | break; |
4507 | | } |
4508 | | if (i > 0 && pattern[i - 1] == CharT{'\\'}) { |
4509 | | if (i == 1 || pattern[i - 2] != CharT{'\\'}) { |
4510 | | i += 3; |
4511 | | continue; |
4512 | | } |
4513 | | } |
4514 | | |
4515 | | i += 3; |
4516 | | auto end_i = pattern.find(CharT{'>'}, i); |
4517 | | if (end_i == std::basic_string_view<CharT>::npos) { |
4518 | | break; |
4519 | | } |
4520 | | names.emplace_back(pattern.substr(i, end_i - i)); |
4521 | | } |
4522 | | |
4523 | | auto re = |
4524 | | #if SCN_REGEX_BOOST_USE_ICU |
4525 | | boost::make_u32regex( |
4526 | | pattern.data(), pattern.data() + pattern.size(), |
4527 | | make_regex_flags(flags) | boost::regex_constants::no_except); |
4528 | | #else |
4529 | | boost::basic_regex<CharT>{ |
4530 | | pattern.data(), pattern.size(), |
4531 | | make_regex_flags(flags) | boost::regex_constants::no_except}; |
4532 | | #endif |
4533 | | if (re.status() != 0) { |
4534 | | return unexpected_scan_error(scan_error::invalid_format_string, |
4535 | | "Invalid regex"); |
4536 | | } |
4537 | | |
4538 | | boost::match_results<const CharT*> matches{}; |
4539 | | try { |
4540 | | bool found = |
4541 | | #if SCN_REGEX_BOOST_USE_ICU |
4542 | | boost::u32regex_search(input.data(), input.data() + input.size(), |
4543 | | matches, re, |
4544 | | boost::regex_constants::match_continuous); |
4545 | | #else |
4546 | | boost::regex_search(input.data(), input.data() + input.size(), |
4547 | | matches, re, |
4548 | | boost::regex_constants::match_continuous); |
4549 | | #endif |
4550 | | if (!found || matches.prefix().matched) { |
4551 | | return unexpected_scan_error(scan_error::invalid_scanned_value, |
4552 | | "Regular expression didn't match"); |
4553 | | } |
4554 | | } |
4555 | | catch (const std::runtime_error& err) { |
4556 | | return unexpected_scan_error(scan_error::invalid_format_string, |
4557 | | "Regex matching failed with an error"); |
4558 | | } |
4559 | | |
4560 | | value.resize(matches.size()); |
4561 | | std::transform( |
4562 | | matches.begin(), matches.end(), value.begin(), |
4563 | | [&](auto&& match) -> std::optional<basic_regex_match<CharT>> { |
4564 | | if (!match.matched) |
4565 | | return std::nullopt; |
4566 | | auto sv = detail::make_string_view_from_pointers(match.first, |
4567 | | match.second); |
4568 | | |
4569 | | if (auto name_it = std::find_if( |
4570 | | names.begin(), names.end(), |
4571 | | [&](const auto& name) { return match == matches[name]; }); |
4572 | | name_it != names.end()) { |
4573 | | return basic_regex_match<CharT>{sv, *name_it}; |
4574 | | } |
4575 | | return sv; |
4576 | | }); |
4577 | | return input.begin() + ranges::distance(input.data(), matches[0].second); |
4578 | | #elif SCN_REGEX_BACKEND == SCN_REGEX_BACKEND_RE2 |
4579 | | static_assert(std::is_same_v<CharT, char>); |
4580 | | std::string flagged_pattern{}; |
4581 | | auto re = [&]() { |
4582 | | auto [opts, flagstr] = make_regex_flags(flags); |
4583 | | if (flagstr.empty()) { |
4584 | | return re2::RE2{pattern, opts}; |
4585 | | } |
4586 | | flagged_pattern.reserve(flagstr.size() + pattern.size()); |
4587 | | flagged_pattern.append(flagstr); |
4588 | | flagged_pattern.append(pattern); |
4589 | | return re2::RE2{flagged_pattern, opts}; |
4590 | | }(); |
4591 | | if (!re.ok()) { |
4592 | | return unexpected_scan_error(scan_error::invalid_format_string, |
4593 | | "Failed to parse regular expression"); |
4594 | | } |
4595 | | // TODO: Optimize into a single batch allocation |
4596 | | const auto max_matches_n = |
4597 | | static_cast<size_t>(re.NumberOfCapturingGroups()); |
4598 | | std::vector<std::optional<std::string_view>> matches(max_matches_n); |
4599 | | std::vector<re2::RE2::Arg> match_args(max_matches_n); |
4600 | | std::vector<re2::RE2::Arg*> match_argptrs(max_matches_n); |
4601 | | std::transform(matches.begin(), matches.end(), match_args.begin(), |
4602 | | [](auto& val) { return re2::RE2::Arg{&val}; }); |
4603 | | std::transform(match_args.begin(), match_args.end(), match_argptrs.begin(), |
4604 | | [](auto& arg) { return &arg; }); |
4605 | | auto new_input = detail::make_string_view_from_pointers( |
4606 | | detail::to_address(input.begin()), detail::to_address(input.end())); |
4607 | | bool found = re2::RE2::ConsumeN(&new_input, re, match_argptrs.data(), |
4608 | | match_argptrs.size()); |
4609 | | if (!found) { |
4610 | | return unexpected_scan_error(scan_error::invalid_scanned_value, |
4611 | | "Regular expression didn't match"); |
4612 | | } |
4613 | | value.resize(matches.size() + 1); |
4614 | | value[0] = |
4615 | | detail::make_string_view_from_pointers(input.data(), new_input.data()); |
4616 | | std::transform(matches.begin(), matches.end(), value.begin() + 1, |
4617 | | [&](auto&& match) -> std::optional<regex_match> { |
4618 | | if (!match) |
4619 | | return std::nullopt; |
4620 | | return *match; |
4621 | | }); |
4622 | | { |
4623 | | const auto& capturing_groups = re.CapturingGroupNames(); |
4624 | | for (size_t i = 1; i < value.size(); ++i) { |
4625 | | if (auto it = capturing_groups.find(static_cast<int>(i)); |
4626 | | it != capturing_groups.end()) { |
4627 | | auto val = value[i]->get(); |
4628 | | value[i].emplace(val, it->second); |
4629 | | }; |
4630 | | } |
4631 | | } |
4632 | | return input.begin() + ranges::distance(input.data(), new_input.data()); |
4633 | | #endif // SCN_REGEX_BACKEND == ... |
4634 | 0 | } Unexecuted instantiation: _ZN3scn2v34impl23read_regex_matches_implIcNSt3__117basic_string_viewIcNS3_11char_traitsIcEEEEEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEENS4_IT_NS5_ISE_EEEENS0_6detail11regex_flagsESA_RNS0_19basic_regex_matchesISE_EE Unexecuted instantiation: _ZN3scn2v34impl23read_regex_matches_implIcNS0_6ranges6detail9subrange_8subrangeIPKcS8_EEEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRT0_EEEEEENSt3__117basic_string_viewIT_NSF_11char_traitsISH_EEEENS0_6detail11regex_flagsESB_RNS0_19basic_regex_matchesISH_EE Unexecuted instantiation: _ZN3scn2v34impl23read_regex_matches_implIwNSt3__117basic_string_viewIwNS3_11char_traitsIwEEEEEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEENS4_IT_NS5_ISE_EEEENS0_6detail11regex_flagsESA_RNS0_19basic_regex_matchesISE_EE Unexecuted instantiation: _ZN3scn2v34impl23read_regex_matches_implIwNS0_6ranges6detail9subrange_8subrangeIPKwS8_EEEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRT0_EEEEEENSt3__117basic_string_viewIT_NSF_11char_traitsISH_EEEENS0_6detail11regex_flagsESB_RNS0_19basic_regex_matchesISH_EE |
4635 | | |
4636 | | inline std::string get_unescaped_regex_pattern(std::string_view pattern) |
4637 | 960 | { |
4638 | 960 | std::string result{pattern}; |
4639 | 8.53k | for (size_t n = 0; (n = result.find("\\/", n)) != std::string::npos;) { |
4640 | 7.57k | result.replace(n, 2, "/"); |
4641 | 7.57k | ++n; |
4642 | 7.57k | } |
4643 | 960 | return result; |
4644 | 960 | } |
4645 | | inline std::wstring get_unescaped_regex_pattern(std::wstring_view pattern) |
4646 | 180 | { |
4647 | 180 | std::wstring result{pattern}; |
4648 | 594 | for (size_t n = 0; (n = result.find(L"\\/", n)) != std::wstring::npos;) { |
4649 | 414 | result.replace(n, 2, L"/"); |
4650 | 414 | ++n; |
4651 | 414 | } |
4652 | 180 | return result; |
4653 | 180 | } |
4654 | | |
4655 | | #endif // !SCN_DISABLE_REGEX |
4656 | | |
4657 | | template <typename SourceCharT> |
4658 | | struct regex_matches_reader |
4659 | | : public reader_base<regex_matches_reader<SourceCharT>, SourceCharT> { |
4660 | | void check_specs_impl(const detail::format_specs& specs, |
4661 | | reader_error_handler& eh) |
4662 | 0 | { |
4663 | 0 | detail::check_regex_type_specs(specs, eh); |
4664 | 0 | SCN_EXPECT(specs.charset_string_data != nullptr); |
4665 | 0 | SCN_EXPECT(specs.charset_string_size > 0); |
4666 | 0 | } Unexecuted instantiation: scn::v3::impl::regex_matches_reader<char>::check_specs_impl(scn::v3::detail::format_specs const&, scn::v3::impl::reader_error_handler&) Unexecuted instantiation: scn::v3::impl::regex_matches_reader<wchar_t>::check_specs_impl(scn::v3::detail::format_specs const&, scn::v3::impl::reader_error_handler&) |
4667 | | |
4668 | | template <typename Range, typename DestCharT> |
4669 | | auto read_default(Range, |
4670 | | basic_regex_matches<DestCharT>&, |
4671 | | detail::locale_ref = {}) |
4672 | | -> scan_expected<ranges::const_iterator_t<Range>> |
4673 | 0 | { |
4674 | 0 | return unexpected_scan_error( |
4675 | 0 | scan_error::invalid_format_string, |
4676 | 0 | "No regex given in format string for scanning regex_matches"); |
4677 | 0 | } Unexecuted instantiation: _ZN3scn2v34impl20regex_matches_readerIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RNS0_19basic_regex_matchesIT0_EENS0_6detail10locale_refE Unexecuted instantiation: _ZN3scn2v34impl20regex_matches_readerIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RNS0_19basic_regex_matchesIT0_EENS0_6detail10locale_refE Unexecuted instantiation: _ZN3scn2v34impl20regex_matches_readerIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RNS0_19basic_regex_matchesIT0_EENS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl20regex_matches_readerIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RNS0_19basic_regex_matchesIT0_EENS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl20regex_matches_readerIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RNS0_19basic_regex_matchesIT0_EENS0_6detail10locale_refE Unexecuted instantiation: _ZN3scn2v34impl20regex_matches_readerIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RNS0_19basic_regex_matchesIT0_EENS0_6detail10locale_refE Unexecuted instantiation: _ZN3scn2v34impl20regex_matches_readerIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RNS0_19basic_regex_matchesIT0_EENS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl20regex_matches_readerIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RNS0_19basic_regex_matchesIT0_EENS9_10locale_refE |
4678 | | |
4679 | | template <typename Range, typename DestCharT> |
4680 | | auto read_specs(Range range, |
4681 | | const detail::format_specs& specs, |
4682 | | basic_regex_matches<DestCharT>& value, |
4683 | | detail::locale_ref = {}) |
4684 | | -> scan_expected<ranges::const_iterator_t<Range>> |
4685 | 0 | { |
4686 | 0 | if constexpr (!std::is_same_v<SourceCharT, DestCharT>) { |
4687 | 0 | return unexpected_scan_error( |
4688 | 0 | scan_error::invalid_scanned_value, |
4689 | 0 | "Cannot transcode is regex_matches_reader"); |
4690 | 0 | } |
4691 | 0 | else if constexpr (!SCN_REGEX_SUPPORTS_WIDE_STRINGS && |
4692 | 0 | !std::is_same_v<SourceCharT, char>) { |
4693 | 0 | return unexpected_scan_error( |
4694 | 0 | scan_error::invalid_scanned_value, |
4695 | 0 | "Regex backend doesn't support wide strings as input"); |
4696 | 0 | } |
4697 | 0 | else { |
4698 | 0 | if (!is_entire_source_contiguous(range)) { |
4699 | 0 | return unexpected_scan_error( |
4700 | 0 | scan_error::invalid_scanned_value, |
4701 | 0 | "Cannot use regex with a non-contiguous source " |
4702 | 0 | "range"); |
4703 | 0 | } |
4704 | | |
4705 | 0 | auto input = get_as_contiguous(range); |
4706 | 0 | SCN_TRY(it, |
4707 | 0 | impl(input, |
4708 | 0 | specs.type == detail::presentation_type::regex_escaped, |
4709 | 0 | specs.charset_string<SourceCharT>(), |
4710 | 0 | specs.regexp_flags, value)); |
4711 | 0 | return ranges::next(range.begin(), |
4712 | 0 | ranges::distance(input.begin(), it)); |
4713 | 0 | } |
4714 | 0 | } Unexecuted instantiation: _ZN3scn2v34impl20regex_matches_readerIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERNS0_19basic_regex_matchesIT0_EENSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl20regex_matches_readerIcE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERNS0_19basic_regex_matchesIT0_EENS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl20regex_matches_readerIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERNS0_19basic_regex_matchesIT0_EENSN_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl20regex_matches_readerIcE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERNS0_19basic_regex_matchesIT0_EENSL_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl20regex_matches_readerIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERNS0_19basic_regex_matchesIT0_EENSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl20regex_matches_readerIcE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERNS0_19basic_regex_matchesIT0_EENS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl20regex_matches_readerIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERNS0_19basic_regex_matchesIT0_EENSN_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl20regex_matches_readerIcE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERNS0_19basic_regex_matchesIT0_EENSL_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl20regex_matches_readerIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERNS0_19basic_regex_matchesIT0_EENSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl20regex_matches_readerIwE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERNS0_19basic_regex_matchesIT0_EENS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl20regex_matches_readerIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERNS0_19basic_regex_matchesIT0_EENSN_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl20regex_matches_readerIwE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERNS0_19basic_regex_matchesIT0_EENSL_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl20regex_matches_readerIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERNS0_19basic_regex_matchesIT0_EENSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl20regex_matches_readerIwE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERNS0_19basic_regex_matchesIT0_EENS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl20regex_matches_readerIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERNS0_19basic_regex_matchesIT0_EENSN_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl20regex_matches_readerIwE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERNS0_19basic_regex_matchesIT0_EENSL_10locale_refE |
4715 | | |
4716 | | private: |
4717 | | template <typename Range, typename DestCharT> |
4718 | | auto impl(Range input, |
4719 | | bool is_escaped, |
4720 | | std::basic_string_view<SourceCharT> pattern, |
4721 | | detail::regex_flags flags, |
4722 | | basic_regex_matches<DestCharT>& value) |
4723 | 0 | { |
4724 | 0 | if constexpr (detail::is_type_disabled< |
4725 | 0 | basic_regex_matches<DestCharT>>) { |
4726 | 0 | SCN_EXPECT(false); |
4727 | 0 | SCN_UNREACHABLE; |
4728 | 0 | } |
4729 | 0 | else { |
4730 | 0 | if (is_escaped) { |
4731 | 0 | return read_regex_matches_impl<SourceCharT>( |
4732 | 0 | get_unescaped_regex_pattern(pattern), flags, input, value); |
4733 | 0 | } |
4734 | 0 | return read_regex_matches_impl(pattern, flags, input, value); |
4735 | 0 | } |
4736 | 0 | } Unexecuted instantiation: auto scn::v3::impl::regex_matches_reader<char>::impl<std::__1::basic_string_view<char, std::__1::char_traits<char> >, char>(std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool, std::__1::basic_string_view<char, std::__1::char_traits<char> >, scn::v3::detail::regex_flags, scn::v3::basic_regex_matches<char>&) Unexecuted instantiation: auto scn::v3::impl::regex_matches_reader<char>::impl<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*>, char>(scn::v3::ranges::detail::subrange_::subrange<char const*, char const*>, bool, std::__1::basic_string_view<char, std::__1::char_traits<char> >, scn::v3::detail::regex_flags, scn::v3::basic_regex_matches<char>&) Unexecuted instantiation: auto scn::v3::impl::regex_matches_reader<wchar_t>::impl<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> >, wchar_t>(std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> >, bool, std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> >, scn::v3::detail::regex_flags, scn::v3::basic_regex_matches<wchar_t>&) Unexecuted instantiation: auto scn::v3::impl::regex_matches_reader<wchar_t>::impl<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*>, wchar_t>(scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*>, bool, std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> >, scn::v3::detail::regex_flags, scn::v3::basic_regex_matches<wchar_t>&) |
4737 | | }; |
4738 | | |
4739 | | template <typename CharT> |
4740 | | struct reader_impl_for_regex_matches : public regex_matches_reader<CharT> {}; |
4741 | | |
4742 | | ///////////////////////////////////////////////////////////////// |
4743 | | // String reader |
4744 | | ///////////////////////////////////////////////////////////////// |
4745 | | |
4746 | | template <typename Range, typename Iterator, typename ValueCharT> |
4747 | | auto read_string_impl(Range range, |
4748 | | Iterator&& result, |
4749 | | std::basic_string<ValueCharT>& value) |
4750 | | -> scan_expected<ranges::const_iterator_t<Range>> |
4751 | 26.9k | { |
4752 | 26.9k | static_assert(ranges::forward_iterator<detail::remove_cvref_t<Iterator>>); |
4753 | | |
4754 | 26.9k | auto src = make_contiguous_buffer(ranges::subrange{range.begin(), result}); |
4755 | 26.9k | if (!validate_unicode(src.view())) { |
4756 | 2.12k | return unexpected_scan_error(scan_error::invalid_scanned_value, |
4757 | 2.12k | "Invalid encoding in scanned string"); |
4758 | 2.12k | } |
4759 | 24.7k | if (auto e = transcode_if_necessary(SCN_MOVE(src), value); |
4760 | 24.7k | SCN_UNLIKELY(!e)) { |
4761 | 0 | return unexpected(e); |
4762 | 0 | } |
4763 | | |
4764 | 24.7k | return SCN_MOVE(result); |
4765 | 24.7k | } Unexecuted instantiation: _ZN3scn2v34impl16read_string_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS4_18default_sentinel_tEEEEENS1_27counted_width_iterator_impl22counted_width_iteratorISB_SC_EEcEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_OT0_RNSJ_12basic_stringIT1_NSJ_11char_traitsISU_EENSJ_9allocatorISU_EEEE Unexecuted instantiation: _ZN3scn2v34impl16read_string_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS4_18default_sentinel_tEEEEERNS1_27counted_width_iterator_impl22counted_width_iteratorISB_SC_EEcEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_OT0_RNSK_12basic_stringIT1_NSK_11char_traitsISV_EENSK_9allocatorISV_EEEE Unexecuted instantiation: _ZN3scn2v34impl16read_string_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEESA_cEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_OT0_RNSE_12basic_stringIT1_NSE_11char_traitsISP_EENSE_9allocatorISP_EEEE Unexecuted instantiation: _ZN3scn2v34impl16read_string_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEERSA_cEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_OT0_RNSF_12basic_stringIT1_NSF_11char_traitsISQ_EENSF_9allocatorISQ_EEEE _ZN3scn2v34impl16read_string_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcS9_EEEENS1_27counted_width_iterator_impl22counted_width_iteratorIS9_S9_EEcEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_OT0_RNSG_12basic_stringIT1_NSG_11char_traitsISR_EENSG_9allocatorISR_EEEE Line | Count | Source | 4751 | 326 | { | 4752 | 326 | static_assert(ranges::forward_iterator<detail::remove_cvref_t<Iterator>>); | 4753 | | | 4754 | 326 | auto src = make_contiguous_buffer(ranges::subrange{range.begin(), result}); | 4755 | 326 | if (!validate_unicode(src.view())) { | 4756 | 118 | return unexpected_scan_error(scan_error::invalid_scanned_value, | 4757 | 118 | "Invalid encoding in scanned string"); | 4758 | 118 | } | 4759 | 208 | if (auto e = transcode_if_necessary(SCN_MOVE(src), value); | 4760 | 208 | SCN_UNLIKELY(!e)) { | 4761 | 0 | return unexpected(e); | 4762 | 0 | } | 4763 | | | 4764 | 208 | return SCN_MOVE(result); | 4765 | 208 | } |
_ZN3scn2v34impl16read_string_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcS9_EEEERNS1_27counted_width_iterator_impl22counted_width_iteratorIS9_S9_EEcEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_OT0_RNSH_12basic_stringIT1_NSH_11char_traitsISS_EENSH_9allocatorISS_EEEE Line | Count | Source | 4751 | 200 | { | 4752 | 200 | static_assert(ranges::forward_iterator<detail::remove_cvref_t<Iterator>>); | 4753 | | | 4754 | 200 | auto src = make_contiguous_buffer(ranges::subrange{range.begin(), result}); | 4755 | 200 | if (!validate_unicode(src.view())) { | 4756 | 46 | return unexpected_scan_error(scan_error::invalid_scanned_value, | 4757 | 46 | "Invalid encoding in scanned string"); | 4758 | 46 | } | 4759 | 154 | if (auto e = transcode_if_necessary(SCN_MOVE(src), value); | 4760 | 154 | SCN_UNLIKELY(!e)) { | 4761 | 0 | return unexpected(e); | 4762 | 0 | } | 4763 | | | 4764 | 154 | return SCN_MOVE(result); | 4765 | 154 | } |
_ZN3scn2v34impl16read_string_implINS0_6ranges6detail9subrange_8subrangeIPKcS8_EES8_cEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESD_OT0_RNSB_12basic_stringIT1_NSB_11char_traitsISM_EENSB_9allocatorISM_EEEE Line | Count | Source | 4751 | 950 | { | 4752 | 950 | static_assert(ranges::forward_iterator<detail::remove_cvref_t<Iterator>>); | 4753 | | | 4754 | 950 | auto src = make_contiguous_buffer(ranges::subrange{range.begin(), result}); | 4755 | 950 | if (!validate_unicode(src.view())) { | 4756 | 312 | return unexpected_scan_error(scan_error::invalid_scanned_value, | 4757 | 312 | "Invalid encoding in scanned string"); | 4758 | 312 | } | 4759 | 638 | if (auto e = transcode_if_necessary(SCN_MOVE(src), value); | 4760 | 638 | SCN_UNLIKELY(!e)) { | 4761 | 0 | return unexpected(e); | 4762 | 0 | } | 4763 | | | 4764 | 638 | return SCN_MOVE(result); | 4765 | 638 | } |
_ZN3scn2v34impl16read_string_implINS0_6ranges6detail9subrange_8subrangeIPKcS8_EERS8_cEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESE_OT0_RNSC_12basic_stringIT1_NSC_11char_traitsISN_EENSC_9allocatorISN_EEEE Line | Count | Source | 4751 | 1.10k | { | 4752 | 1.10k | static_assert(ranges::forward_iterator<detail::remove_cvref_t<Iterator>>); | 4753 | | | 4754 | 1.10k | auto src = make_contiguous_buffer(ranges::subrange{range.begin(), result}); | 4755 | 1.10k | if (!validate_unicode(src.view())) { | 4756 | 124 | return unexpected_scan_error(scan_error::invalid_scanned_value, | 4757 | 124 | "Invalid encoding in scanned string"); | 4758 | 124 | } | 4759 | 982 | if (auto e = transcode_if_necessary(SCN_MOVE(src), value); | 4760 | 982 | SCN_UNLIKELY(!e)) { | 4761 | 0 | return unexpected(e); | 4762 | 0 | } | 4763 | | | 4764 | 982 | return SCN_MOVE(result); | 4765 | 982 | } |
Unexecuted instantiation: _ZN3scn2v34impl16read_string_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS4_18default_sentinel_tEEEEENS1_27counted_width_iterator_impl22counted_width_iteratorISB_SC_EEwEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_OT0_RNSJ_12basic_stringIT1_NSJ_11char_traitsISU_EENSJ_9allocatorISU_EEEE Unexecuted instantiation: _ZN3scn2v34impl16read_string_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS4_18default_sentinel_tEEEEERNS1_27counted_width_iterator_impl22counted_width_iteratorISB_SC_EEwEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_OT0_RNSK_12basic_stringIT1_NSK_11char_traitsISV_EENSK_9allocatorISV_EEEE Unexecuted instantiation: _ZN3scn2v34impl16read_string_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEESA_wEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_OT0_RNSE_12basic_stringIT1_NSE_11char_traitsISP_EENSE_9allocatorISP_EEEE Unexecuted instantiation: _ZN3scn2v34impl16read_string_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEERSA_wEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_OT0_RNSF_12basic_stringIT1_NSF_11char_traitsISQ_EENSF_9allocatorISQ_EEEE _ZN3scn2v34impl16read_string_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcS9_EEEENS1_27counted_width_iterator_impl22counted_width_iteratorIS9_S9_EEwEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_OT0_RNSG_12basic_stringIT1_NSG_11char_traitsISR_EENSG_9allocatorISR_EEEE Line | Count | Source | 4751 | 326 | { | 4752 | 326 | static_assert(ranges::forward_iterator<detail::remove_cvref_t<Iterator>>); | 4753 | | | 4754 | 326 | auto src = make_contiguous_buffer(ranges::subrange{range.begin(), result}); | 4755 | 326 | if (!validate_unicode(src.view())) { | 4756 | 118 | return unexpected_scan_error(scan_error::invalid_scanned_value, | 4757 | 118 | "Invalid encoding in scanned string"); | 4758 | 118 | } | 4759 | 208 | if (auto e = transcode_if_necessary(SCN_MOVE(src), value); | 4760 | 208 | SCN_UNLIKELY(!e)) { | 4761 | 0 | return unexpected(e); | 4762 | 0 | } | 4763 | | | 4764 | 208 | return SCN_MOVE(result); | 4765 | 208 | } |
_ZN3scn2v34impl16read_string_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcS9_EEEERNS1_27counted_width_iterator_impl22counted_width_iteratorIS9_S9_EEwEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_OT0_RNSH_12basic_stringIT1_NSH_11char_traitsISS_EENSH_9allocatorISS_EEEE Line | Count | Source | 4751 | 200 | { | 4752 | 200 | static_assert(ranges::forward_iterator<detail::remove_cvref_t<Iterator>>); | 4753 | | | 4754 | 200 | auto src = make_contiguous_buffer(ranges::subrange{range.begin(), result}); | 4755 | 200 | if (!validate_unicode(src.view())) { | 4756 | 46 | return unexpected_scan_error(scan_error::invalid_scanned_value, | 4757 | 46 | "Invalid encoding in scanned string"); | 4758 | 46 | } | 4759 | 154 | if (auto e = transcode_if_necessary(SCN_MOVE(src), value); | 4760 | 154 | SCN_UNLIKELY(!e)) { | 4761 | 0 | return unexpected(e); | 4762 | 0 | } | 4763 | | | 4764 | 154 | return SCN_MOVE(result); | 4765 | 154 | } |
_ZN3scn2v34impl16read_string_implINS0_6ranges6detail9subrange_8subrangeIPKcS8_EES8_wEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESD_OT0_RNSB_12basic_stringIT1_NSB_11char_traitsISM_EENSB_9allocatorISM_EEEE Line | Count | Source | 4751 | 950 | { | 4752 | 950 | static_assert(ranges::forward_iterator<detail::remove_cvref_t<Iterator>>); | 4753 | | | 4754 | 950 | auto src = make_contiguous_buffer(ranges::subrange{range.begin(), result}); | 4755 | 950 | if (!validate_unicode(src.view())) { | 4756 | 312 | return unexpected_scan_error(scan_error::invalid_scanned_value, | 4757 | 312 | "Invalid encoding in scanned string"); | 4758 | 312 | } | 4759 | 638 | if (auto e = transcode_if_necessary(SCN_MOVE(src), value); | 4760 | 638 | SCN_UNLIKELY(!e)) { | 4761 | 0 | return unexpected(e); | 4762 | 0 | } | 4763 | | | 4764 | 638 | return SCN_MOVE(result); | 4765 | 638 | } |
_ZN3scn2v34impl16read_string_implINS0_6ranges6detail9subrange_8subrangeIPKcS8_EERS8_wEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESE_OT0_RNSC_12basic_stringIT1_NSC_11char_traitsISN_EENSC_9allocatorISN_EEEE Line | Count | Source | 4751 | 1.10k | { | 4752 | 1.10k | static_assert(ranges::forward_iterator<detail::remove_cvref_t<Iterator>>); | 4753 | | | 4754 | 1.10k | auto src = make_contiguous_buffer(ranges::subrange{range.begin(), result}); | 4755 | 1.10k | if (!validate_unicode(src.view())) { | 4756 | 124 | return unexpected_scan_error(scan_error::invalid_scanned_value, | 4757 | 124 | "Invalid encoding in scanned string"); | 4758 | 124 | } | 4759 | 982 | if (auto e = transcode_if_necessary(SCN_MOVE(src), value); | 4760 | 982 | SCN_UNLIKELY(!e)) { | 4761 | 0 | return unexpected(e); | 4762 | 0 | } | 4763 | | | 4764 | 982 | return SCN_MOVE(result); | 4765 | 982 | } |
Unexecuted instantiation: _ZN3scn2v34impl16read_string_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS4_18default_sentinel_tEEEEENS1_27counted_width_iterator_impl22counted_width_iteratorISB_SC_EEcEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_OT0_RNSJ_12basic_stringIT1_NSJ_11char_traitsISU_EENSJ_9allocatorISU_EEEE Unexecuted instantiation: _ZN3scn2v34impl16read_string_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS4_18default_sentinel_tEEEEERNS1_27counted_width_iterator_impl22counted_width_iteratorISB_SC_EEcEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_OT0_RNSK_12basic_stringIT1_NSK_11char_traitsISV_EENSK_9allocatorISV_EEEE Unexecuted instantiation: _ZN3scn2v34impl16read_string_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEESA_cEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_OT0_RNSE_12basic_stringIT1_NSE_11char_traitsISP_EENSE_9allocatorISP_EEEE Unexecuted instantiation: _ZN3scn2v34impl16read_string_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEERSA_cEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_OT0_RNSF_12basic_stringIT1_NSF_11char_traitsISQ_EENSF_9allocatorISQ_EEEE _ZN3scn2v34impl16read_string_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwS9_EEEENS1_27counted_width_iterator_impl22counted_width_iteratorIS9_S9_EEcEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_OT0_RNSG_12basic_stringIT1_NSG_11char_traitsISR_EENSG_9allocatorISR_EEEE Line | Count | Source | 4751 | 146 | { | 4752 | 146 | static_assert(ranges::forward_iterator<detail::remove_cvref_t<Iterator>>); | 4753 | | | 4754 | 146 | auto src = make_contiguous_buffer(ranges::subrange{range.begin(), result}); | 4755 | 146 | if (!validate_unicode(src.view())) { | 4756 | 70 | return unexpected_scan_error(scan_error::invalid_scanned_value, | 4757 | 70 | "Invalid encoding in scanned string"); | 4758 | 70 | } | 4759 | 76 | if (auto e = transcode_if_necessary(SCN_MOVE(src), value); | 4760 | 76 | SCN_UNLIKELY(!e)) { | 4761 | 0 | return unexpected(e); | 4762 | 0 | } | 4763 | | | 4764 | 76 | return SCN_MOVE(result); | 4765 | 76 | } |
Unexecuted instantiation: _ZN3scn2v34impl16read_string_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwS9_EEEERNS1_27counted_width_iterator_impl22counted_width_iteratorIS9_S9_EEcEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_OT0_RNSH_12basic_stringIT1_NSH_11char_traitsISS_EENSH_9allocatorISS_EEEE _ZN3scn2v34impl16read_string_implINS0_6ranges6detail9subrange_8subrangeIPKwS8_EES8_cEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESD_OT0_RNSB_12basic_stringIT1_NSB_11char_traitsISM_EENSB_9allocatorISM_EEEE Line | Count | Source | 4751 | 10.3k | { | 4752 | 10.3k | static_assert(ranges::forward_iterator<detail::remove_cvref_t<Iterator>>); | 4753 | | | 4754 | 10.3k | auto src = make_contiguous_buffer(ranges::subrange{range.begin(), result}); | 4755 | 10.3k | if (!validate_unicode(src.view())) { | 4756 | 274 | return unexpected_scan_error(scan_error::invalid_scanned_value, | 4757 | 274 | "Invalid encoding in scanned string"); | 4758 | 274 | } | 4759 | 10.0k | if (auto e = transcode_if_necessary(SCN_MOVE(src), value); | 4760 | 10.0k | SCN_UNLIKELY(!e)) { | 4761 | 0 | return unexpected(e); | 4762 | 0 | } | 4763 | | | 4764 | 10.0k | return SCN_MOVE(result); | 4765 | 10.0k | } |
_ZN3scn2v34impl16read_string_implINS0_6ranges6detail9subrange_8subrangeIPKwS8_EERS8_cEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESE_OT0_RNSC_12basic_stringIT1_NSC_11char_traitsISN_EENSC_9allocatorISN_EEEE Line | Count | Source | 4751 | 372 | { | 4752 | 372 | static_assert(ranges::forward_iterator<detail::remove_cvref_t<Iterator>>); | 4753 | | | 4754 | 372 | auto src = make_contiguous_buffer(ranges::subrange{range.begin(), result}); | 4755 | 372 | if (!validate_unicode(src.view())) { | 4756 | 118 | return unexpected_scan_error(scan_error::invalid_scanned_value, | 4757 | 118 | "Invalid encoding in scanned string"); | 4758 | 118 | } | 4759 | 254 | if (auto e = transcode_if_necessary(SCN_MOVE(src), value); | 4760 | 254 | SCN_UNLIKELY(!e)) { | 4761 | 0 | return unexpected(e); | 4762 | 0 | } | 4763 | | | 4764 | 254 | return SCN_MOVE(result); | 4765 | 254 | } |
Unexecuted instantiation: _ZN3scn2v34impl16read_string_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS4_18default_sentinel_tEEEEENS1_27counted_width_iterator_impl22counted_width_iteratorISB_SC_EEwEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_OT0_RNSJ_12basic_stringIT1_NSJ_11char_traitsISU_EENSJ_9allocatorISU_EEEE Unexecuted instantiation: _ZN3scn2v34impl16read_string_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS4_18default_sentinel_tEEEEERNS1_27counted_width_iterator_impl22counted_width_iteratorISB_SC_EEwEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_OT0_RNSK_12basic_stringIT1_NSK_11char_traitsISV_EENSK_9allocatorISV_EEEE Unexecuted instantiation: _ZN3scn2v34impl16read_string_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEESA_wEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_OT0_RNSE_12basic_stringIT1_NSE_11char_traitsISP_EENSE_9allocatorISP_EEEE Unexecuted instantiation: _ZN3scn2v34impl16read_string_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEERSA_wEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_OT0_RNSF_12basic_stringIT1_NSF_11char_traitsISQ_EENSF_9allocatorISQ_EEEE _ZN3scn2v34impl16read_string_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwS9_EEEENS1_27counted_width_iterator_impl22counted_width_iteratorIS9_S9_EEwEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_OT0_RNSG_12basic_stringIT1_NSG_11char_traitsISR_EENSG_9allocatorISR_EEEE Line | Count | Source | 4751 | 146 | { | 4752 | 146 | static_assert(ranges::forward_iterator<detail::remove_cvref_t<Iterator>>); | 4753 | | | 4754 | 146 | auto src = make_contiguous_buffer(ranges::subrange{range.begin(), result}); | 4755 | 146 | if (!validate_unicode(src.view())) { | 4756 | 70 | return unexpected_scan_error(scan_error::invalid_scanned_value, | 4757 | 70 | "Invalid encoding in scanned string"); | 4758 | 70 | } | 4759 | 76 | if (auto e = transcode_if_necessary(SCN_MOVE(src), value); | 4760 | 76 | SCN_UNLIKELY(!e)) { | 4761 | 0 | return unexpected(e); | 4762 | 0 | } | 4763 | | | 4764 | 76 | return SCN_MOVE(result); | 4765 | 76 | } |
Unexecuted instantiation: _ZN3scn2v34impl16read_string_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwS9_EEEERNS1_27counted_width_iterator_impl22counted_width_iteratorIS9_S9_EEwEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_OT0_RNSH_12basic_stringIT1_NSH_11char_traitsISS_EENSH_9allocatorISS_EEEE _ZN3scn2v34impl16read_string_implINS0_6ranges6detail9subrange_8subrangeIPKwS8_EES8_wEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESD_OT0_RNSB_12basic_stringIT1_NSB_11char_traitsISM_EENSB_9allocatorISM_EEEE Line | Count | Source | 4751 | 10.3k | { | 4752 | 10.3k | static_assert(ranges::forward_iterator<detail::remove_cvref_t<Iterator>>); | 4753 | | | 4754 | 10.3k | auto src = make_contiguous_buffer(ranges::subrange{range.begin(), result}); | 4755 | 10.3k | if (!validate_unicode(src.view())) { | 4756 | 274 | return unexpected_scan_error(scan_error::invalid_scanned_value, | 4757 | 274 | "Invalid encoding in scanned string"); | 4758 | 274 | } | 4759 | 10.0k | if (auto e = transcode_if_necessary(SCN_MOVE(src), value); | 4760 | 10.0k | SCN_UNLIKELY(!e)) { | 4761 | 0 | return unexpected(e); | 4762 | 0 | } | 4763 | | | 4764 | 10.0k | return SCN_MOVE(result); | 4765 | 10.0k | } |
_ZN3scn2v34impl16read_string_implINS0_6ranges6detail9subrange_8subrangeIPKwS8_EERS8_wEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESE_OT0_RNSC_12basic_stringIT1_NSC_11char_traitsISN_EENSC_9allocatorISN_EEEE Line | Count | Source | 4751 | 372 | { | 4752 | 372 | static_assert(ranges::forward_iterator<detail::remove_cvref_t<Iterator>>); | 4753 | | | 4754 | 372 | auto src = make_contiguous_buffer(ranges::subrange{range.begin(), result}); | 4755 | 372 | if (!validate_unicode(src.view())) { | 4756 | 118 | return unexpected_scan_error(scan_error::invalid_scanned_value, | 4757 | 118 | "Invalid encoding in scanned string"); | 4758 | 118 | } | 4759 | 254 | if (auto e = transcode_if_necessary(SCN_MOVE(src), value); | 4760 | 254 | SCN_UNLIKELY(!e)) { | 4761 | 0 | return unexpected(e); | 4762 | 0 | } | 4763 | | | 4764 | 254 | return SCN_MOVE(result); | 4765 | 254 | } |
|
4766 | | |
4767 | | template <typename Range, typename Iterator, typename ValueCharT> |
4768 | | auto read_string_view_impl(Range range, |
4769 | | Iterator&& result, |
4770 | | std::basic_string_view<ValueCharT>& value) |
4771 | | -> scan_expected<ranges::const_iterator_t<Range>> |
4772 | 13.4k | { |
4773 | 13.4k | static_assert(ranges::forward_iterator<detail::remove_cvref_t<Iterator>>); |
4774 | | |
4775 | 13.4k | auto src = [&]() { |
4776 | 13.4k | if constexpr (detail::is_specialization_of_v<Range, take_width_view>) { |
4777 | 12.7k | return make_contiguous_buffer( |
4778 | 12.7k | ranges::subrange{range.begin().base(), result.base()}); |
4779 | 12.7k | } |
4780 | 12.7k | else { |
4781 | 12.7k | return make_contiguous_buffer( |
4782 | 12.7k | ranges::subrange{range.begin(), result}); |
4783 | 12.7k | } |
4784 | 13.4k | }(); Unexecuted instantiation: _ZZN3scn2v34impl21read_string_view_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS4_18default_sentinel_tEEEEENS1_27counted_width_iterator_impl22counted_width_iteratorISB_SC_EEcEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_OT0_RNSJ_17basic_string_viewIT1_NSJ_11char_traitsISU_EEEEENKUlvE_clEv Unexecuted instantiation: _ZZN3scn2v34impl21read_string_view_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS4_18default_sentinel_tEEEEERNS1_27counted_width_iterator_impl22counted_width_iteratorISB_SC_EEcEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_OT0_RNSK_17basic_string_viewIT1_NSK_11char_traitsISV_EEEEENKUlvE_clEv Unexecuted instantiation: _ZZN3scn2v34impl21read_string_view_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEESA_cEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_OT0_RNSE_17basic_string_viewIT1_NSE_11char_traitsISP_EEEEENKUlvE_clEv Unexecuted instantiation: _ZZN3scn2v34impl21read_string_view_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEERSA_cEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_OT0_RNSF_17basic_string_viewIT1_NSF_11char_traitsISQ_EEEEENKUlvE_clEv _ZZN3scn2v34impl21read_string_view_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcS9_EEEENS1_27counted_width_iterator_impl22counted_width_iteratorIS9_S9_EEcEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_OT0_RNSG_17basic_string_viewIT1_NSG_11char_traitsISR_EEEEENKUlvE_clEv Line | Count | Source | 4775 | 326 | auto src = [&]() { | 4776 | 326 | if constexpr (detail::is_specialization_of_v<Range, take_width_view>) { | 4777 | 326 | return make_contiguous_buffer( | 4778 | 326 | ranges::subrange{range.begin().base(), result.base()}); | 4779 | 326 | } | 4780 | 326 | else { | 4781 | 326 | return make_contiguous_buffer( | 4782 | 326 | ranges::subrange{range.begin(), result}); | 4783 | 326 | } | 4784 | 326 | }(); |
_ZZN3scn2v34impl21read_string_view_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcS9_EEEERNS1_27counted_width_iterator_impl22counted_width_iteratorIS9_S9_EEcEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_OT0_RNSH_17basic_string_viewIT1_NSH_11char_traitsISS_EEEEENKUlvE_clEv Line | Count | Source | 4775 | 200 | auto src = [&]() { | 4776 | 200 | if constexpr (detail::is_specialization_of_v<Range, take_width_view>) { | 4777 | 200 | return make_contiguous_buffer( | 4778 | 200 | ranges::subrange{range.begin().base(), result.base()}); | 4779 | 200 | } | 4780 | 200 | else { | 4781 | 200 | return make_contiguous_buffer( | 4782 | 200 | ranges::subrange{range.begin(), result}); | 4783 | 200 | } | 4784 | 200 | }(); |
_ZZN3scn2v34impl21read_string_view_implINS0_6ranges6detail9subrange_8subrangeIPKcS8_EES8_cEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESD_OT0_RNSB_17basic_string_viewIT1_NSB_11char_traitsISM_EEEEENKUlvE_clEv Line | Count | Source | 4775 | 950 | auto src = [&]() { | 4776 | 950 | if constexpr (detail::is_specialization_of_v<Range, take_width_view>) { | 4777 | 950 | return make_contiguous_buffer( | 4778 | 950 | ranges::subrange{range.begin().base(), result.base()}); | 4779 | 950 | } | 4780 | 950 | else { | 4781 | 950 | return make_contiguous_buffer( | 4782 | 950 | ranges::subrange{range.begin(), result}); | 4783 | 950 | } | 4784 | 950 | }(); |
_ZZN3scn2v34impl21read_string_view_implINS0_6ranges6detail9subrange_8subrangeIPKcS8_EERS8_cEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESE_OT0_RNSC_17basic_string_viewIT1_NSC_11char_traitsISN_EEEEENKUlvE_clEv Line | Count | Source | 4775 | 1.10k | auto src = [&]() { | 4776 | 1.10k | if constexpr (detail::is_specialization_of_v<Range, take_width_view>) { | 4777 | 1.10k | return make_contiguous_buffer( | 4778 | 1.10k | ranges::subrange{range.begin().base(), result.base()}); | 4779 | 1.10k | } | 4780 | 1.10k | else { | 4781 | 1.10k | return make_contiguous_buffer( | 4782 | 1.10k | ranges::subrange{range.begin(), result}); | 4783 | 1.10k | } | 4784 | 1.10k | }(); |
Unexecuted instantiation: _ZZN3scn2v34impl21read_string_view_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS4_18default_sentinel_tEEEEENS1_27counted_width_iterator_impl22counted_width_iteratorISB_SC_EEwEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_OT0_RNSJ_17basic_string_viewIT1_NSJ_11char_traitsISU_EEEEENKUlvE_clEv Unexecuted instantiation: _ZZN3scn2v34impl21read_string_view_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS4_18default_sentinel_tEEEEERNS1_27counted_width_iterator_impl22counted_width_iteratorISB_SC_EEwEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_OT0_RNSK_17basic_string_viewIT1_NSK_11char_traitsISV_EEEEENKUlvE_clEv Unexecuted instantiation: _ZZN3scn2v34impl21read_string_view_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEESA_wEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_OT0_RNSE_17basic_string_viewIT1_NSE_11char_traitsISP_EEEEENKUlvE_clEv Unexecuted instantiation: _ZZN3scn2v34impl21read_string_view_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEERSA_wEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_OT0_RNSF_17basic_string_viewIT1_NSF_11char_traitsISQ_EEEEENKUlvE_clEv Unexecuted instantiation: _ZZN3scn2v34impl21read_string_view_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcS9_EEEENS1_27counted_width_iterator_impl22counted_width_iteratorIS9_S9_EEwEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_OT0_RNSG_17basic_string_viewIT1_NSG_11char_traitsISR_EEEEENKUlvE_clEv Unexecuted instantiation: _ZZN3scn2v34impl21read_string_view_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcS9_EEEERNS1_27counted_width_iterator_impl22counted_width_iteratorIS9_S9_EEwEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_OT0_RNSH_17basic_string_viewIT1_NSH_11char_traitsISS_EEEEENKUlvE_clEv Unexecuted instantiation: _ZZN3scn2v34impl21read_string_view_implINS0_6ranges6detail9subrange_8subrangeIPKcS8_EES8_wEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESD_OT0_RNSB_17basic_string_viewIT1_NSB_11char_traitsISM_EEEEENKUlvE_clEv Unexecuted instantiation: _ZZN3scn2v34impl21read_string_view_implINS0_6ranges6detail9subrange_8subrangeIPKcS8_EERS8_wEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESE_OT0_RNSC_17basic_string_viewIT1_NSC_11char_traitsISN_EEEEENKUlvE_clEv Unexecuted instantiation: _ZZN3scn2v34impl21read_string_view_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS4_18default_sentinel_tEEEEENS1_27counted_width_iterator_impl22counted_width_iteratorISB_SC_EEcEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_OT0_RNSJ_17basic_string_viewIT1_NSJ_11char_traitsISU_EEEEENKUlvE_clEv Unexecuted instantiation: _ZZN3scn2v34impl21read_string_view_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS4_18default_sentinel_tEEEEERNS1_27counted_width_iterator_impl22counted_width_iteratorISB_SC_EEcEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_OT0_RNSK_17basic_string_viewIT1_NSK_11char_traitsISV_EEEEENKUlvE_clEv Unexecuted instantiation: _ZZN3scn2v34impl21read_string_view_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEESA_cEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_OT0_RNSE_17basic_string_viewIT1_NSE_11char_traitsISP_EEEEENKUlvE_clEv Unexecuted instantiation: _ZZN3scn2v34impl21read_string_view_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEERSA_cEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_OT0_RNSF_17basic_string_viewIT1_NSF_11char_traitsISQ_EEEEENKUlvE_clEv Unexecuted instantiation: _ZZN3scn2v34impl21read_string_view_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwS9_EEEENS1_27counted_width_iterator_impl22counted_width_iteratorIS9_S9_EEcEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_OT0_RNSG_17basic_string_viewIT1_NSG_11char_traitsISR_EEEEENKUlvE_clEv Unexecuted instantiation: _ZZN3scn2v34impl21read_string_view_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwS9_EEEERNS1_27counted_width_iterator_impl22counted_width_iteratorIS9_S9_EEcEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_OT0_RNSH_17basic_string_viewIT1_NSH_11char_traitsISS_EEEEENKUlvE_clEv Unexecuted instantiation: _ZZN3scn2v34impl21read_string_view_implINS0_6ranges6detail9subrange_8subrangeIPKwS8_EES8_cEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESD_OT0_RNSB_17basic_string_viewIT1_NSB_11char_traitsISM_EEEEENKUlvE_clEv Unexecuted instantiation: _ZZN3scn2v34impl21read_string_view_implINS0_6ranges6detail9subrange_8subrangeIPKwS8_EERS8_cEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESE_OT0_RNSC_17basic_string_viewIT1_NSC_11char_traitsISN_EEEEENKUlvE_clEv Unexecuted instantiation: _ZZN3scn2v34impl21read_string_view_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS4_18default_sentinel_tEEEEENS1_27counted_width_iterator_impl22counted_width_iteratorISB_SC_EEwEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_OT0_RNSJ_17basic_string_viewIT1_NSJ_11char_traitsISU_EEEEENKUlvE_clEv Unexecuted instantiation: _ZZN3scn2v34impl21read_string_view_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS4_18default_sentinel_tEEEEERNS1_27counted_width_iterator_impl22counted_width_iteratorISB_SC_EEwEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_OT0_RNSK_17basic_string_viewIT1_NSK_11char_traitsISV_EEEEENKUlvE_clEv Unexecuted instantiation: _ZZN3scn2v34impl21read_string_view_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEESA_wEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_OT0_RNSE_17basic_string_viewIT1_NSE_11char_traitsISP_EEEEENKUlvE_clEv Unexecuted instantiation: _ZZN3scn2v34impl21read_string_view_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEERSA_wEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_OT0_RNSF_17basic_string_viewIT1_NSF_11char_traitsISQ_EEEEENKUlvE_clEv _ZZN3scn2v34impl21read_string_view_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwS9_EEEENS1_27counted_width_iterator_impl22counted_width_iteratorIS9_S9_EEwEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_OT0_RNSG_17basic_string_viewIT1_NSG_11char_traitsISR_EEEEENKUlvE_clEv Line | Count | Source | 4775 | 146 | auto src = [&]() { | 4776 | 146 | if constexpr (detail::is_specialization_of_v<Range, take_width_view>) { | 4777 | 146 | return make_contiguous_buffer( | 4778 | 146 | ranges::subrange{range.begin().base(), result.base()}); | 4779 | 146 | } | 4780 | 146 | else { | 4781 | 146 | return make_contiguous_buffer( | 4782 | 146 | ranges::subrange{range.begin(), result}); | 4783 | 146 | } | 4784 | 146 | }(); |
Unexecuted instantiation: _ZZN3scn2v34impl21read_string_view_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwS9_EEEERNS1_27counted_width_iterator_impl22counted_width_iteratorIS9_S9_EEwEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_OT0_RNSH_17basic_string_viewIT1_NSH_11char_traitsISS_EEEEENKUlvE_clEv _ZZN3scn2v34impl21read_string_view_implINS0_6ranges6detail9subrange_8subrangeIPKwS8_EES8_wEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESD_OT0_RNSB_17basic_string_viewIT1_NSB_11char_traitsISM_EEEEENKUlvE_clEv Line | Count | Source | 4775 | 10.3k | auto src = [&]() { | 4776 | 10.3k | if constexpr (detail::is_specialization_of_v<Range, take_width_view>) { | 4777 | 10.3k | return make_contiguous_buffer( | 4778 | 10.3k | ranges::subrange{range.begin().base(), result.base()}); | 4779 | 10.3k | } | 4780 | 10.3k | else { | 4781 | 10.3k | return make_contiguous_buffer( | 4782 | 10.3k | ranges::subrange{range.begin(), result}); | 4783 | 10.3k | } | 4784 | 10.3k | }(); |
_ZZN3scn2v34impl21read_string_view_implINS0_6ranges6detail9subrange_8subrangeIPKwS8_EERS8_wEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESE_OT0_RNSC_17basic_string_viewIT1_NSC_11char_traitsISN_EEEEENKUlvE_clEv Line | Count | Source | 4775 | 372 | auto src = [&]() { | 4776 | 372 | if constexpr (detail::is_specialization_of_v<Range, take_width_view>) { | 4777 | 372 | return make_contiguous_buffer( | 4778 | 372 | ranges::subrange{range.begin().base(), result.base()}); | 4779 | 372 | } | 4780 | 372 | else { | 4781 | 372 | return make_contiguous_buffer( | 4782 | 372 | ranges::subrange{range.begin(), result}); | 4783 | 372 | } | 4784 | 372 | }(); |
|
4785 | 13.4k | using src_type = decltype(src); |
4786 | | |
4787 | 13.4k | if (src.stores_allocated_string()) { |
4788 | 0 | return unexpected_scan_error( |
4789 | 0 | scan_error::invalid_scanned_value, |
4790 | 0 | "Cannot read a string_view from this source range (not " |
4791 | 0 | "contiguous)"); |
4792 | 0 | } |
4793 | 13.4k | if constexpr (!std::is_same_v<typename src_type::char_type, ValueCharT>) { |
4794 | 13.4k | return unexpected_scan_error(scan_error::invalid_scanned_value, |
4795 | 13.4k | "Cannot read a string_view from " |
4796 | 13.4k | "this source range (would require " |
4797 | 13.4k | "transcoding)"); |
4798 | 13.4k | } |
4799 | 13.4k | else { |
4800 | 13.4k | const auto view = src.view(); |
4801 | 13.4k | value = std::basic_string_view<ValueCharT>(view.data(), view.size()); |
4802 | | |
4803 | 13.4k | if (!validate_unicode(value)) { |
4804 | 1.06k | return unexpected_scan_error( |
4805 | 1.06k | scan_error::invalid_scanned_value, |
4806 | 1.06k | "Invalid encoding in scanned string_view"); |
4807 | 1.06k | } |
4808 | | |
4809 | 12.3k | return SCN_MOVE(result); |
4810 | 13.4k | } |
4811 | 13.4k | } Unexecuted instantiation: _ZN3scn2v34impl21read_string_view_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS4_18default_sentinel_tEEEEENS1_27counted_width_iterator_impl22counted_width_iteratorISB_SC_EEcEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_OT0_RNSJ_17basic_string_viewIT1_NSJ_11char_traitsISU_EEEE Unexecuted instantiation: _ZN3scn2v34impl21read_string_view_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS4_18default_sentinel_tEEEEERNS1_27counted_width_iterator_impl22counted_width_iteratorISB_SC_EEcEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_OT0_RNSK_17basic_string_viewIT1_NSK_11char_traitsISV_EEEE Unexecuted instantiation: _ZN3scn2v34impl21read_string_view_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEESA_cEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_OT0_RNSE_17basic_string_viewIT1_NSE_11char_traitsISP_EEEE Unexecuted instantiation: _ZN3scn2v34impl21read_string_view_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEERSA_cEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_OT0_RNSF_17basic_string_viewIT1_NSF_11char_traitsISQ_EEEE _ZN3scn2v34impl21read_string_view_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcS9_EEEENS1_27counted_width_iterator_impl22counted_width_iteratorIS9_S9_EEcEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_OT0_RNSG_17basic_string_viewIT1_NSG_11char_traitsISR_EEEE Line | Count | Source | 4772 | 326 | { | 4773 | 326 | static_assert(ranges::forward_iterator<detail::remove_cvref_t<Iterator>>); | 4774 | | | 4775 | 326 | auto src = [&]() { | 4776 | 326 | if constexpr (detail::is_specialization_of_v<Range, take_width_view>) { | 4777 | 326 | return make_contiguous_buffer( | 4778 | 326 | ranges::subrange{range.begin().base(), result.base()}); | 4779 | 326 | } | 4780 | 326 | else { | 4781 | 326 | return make_contiguous_buffer( | 4782 | 326 | ranges::subrange{range.begin(), result}); | 4783 | 326 | } | 4784 | 326 | }(); | 4785 | 326 | using src_type = decltype(src); | 4786 | | | 4787 | 326 | if (src.stores_allocated_string()) { | 4788 | 0 | return unexpected_scan_error( | 4789 | 0 | scan_error::invalid_scanned_value, | 4790 | 0 | "Cannot read a string_view from this source range (not " | 4791 | 0 | "contiguous)"); | 4792 | 0 | } | 4793 | 326 | if constexpr (!std::is_same_v<typename src_type::char_type, ValueCharT>) { | 4794 | 326 | return unexpected_scan_error(scan_error::invalid_scanned_value, | 4795 | 326 | "Cannot read a string_view from " | 4796 | 326 | "this source range (would require " | 4797 | 326 | "transcoding)"); | 4798 | 326 | } | 4799 | 326 | else { | 4800 | 326 | const auto view = src.view(); | 4801 | 326 | value = std::basic_string_view<ValueCharT>(view.data(), view.size()); | 4802 | | | 4803 | 326 | if (!validate_unicode(value)) { | 4804 | 118 | return unexpected_scan_error( | 4805 | 118 | scan_error::invalid_scanned_value, | 4806 | 118 | "Invalid encoding in scanned string_view"); | 4807 | 118 | } | 4808 | | | 4809 | 208 | return SCN_MOVE(result); | 4810 | 326 | } | 4811 | 326 | } |
_ZN3scn2v34impl21read_string_view_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcS9_EEEERNS1_27counted_width_iterator_impl22counted_width_iteratorIS9_S9_EEcEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_OT0_RNSH_17basic_string_viewIT1_NSH_11char_traitsISS_EEEE Line | Count | Source | 4772 | 200 | { | 4773 | 200 | static_assert(ranges::forward_iterator<detail::remove_cvref_t<Iterator>>); | 4774 | | | 4775 | 200 | auto src = [&]() { | 4776 | 200 | if constexpr (detail::is_specialization_of_v<Range, take_width_view>) { | 4777 | 200 | return make_contiguous_buffer( | 4778 | 200 | ranges::subrange{range.begin().base(), result.base()}); | 4779 | 200 | } | 4780 | 200 | else { | 4781 | 200 | return make_contiguous_buffer( | 4782 | 200 | ranges::subrange{range.begin(), result}); | 4783 | 200 | } | 4784 | 200 | }(); | 4785 | 200 | using src_type = decltype(src); | 4786 | | | 4787 | 200 | if (src.stores_allocated_string()) { | 4788 | 0 | return unexpected_scan_error( | 4789 | 0 | scan_error::invalid_scanned_value, | 4790 | 0 | "Cannot read a string_view from this source range (not " | 4791 | 0 | "contiguous)"); | 4792 | 0 | } | 4793 | 200 | if constexpr (!std::is_same_v<typename src_type::char_type, ValueCharT>) { | 4794 | 200 | return unexpected_scan_error(scan_error::invalid_scanned_value, | 4795 | 200 | "Cannot read a string_view from " | 4796 | 200 | "this source range (would require " | 4797 | 200 | "transcoding)"); | 4798 | 200 | } | 4799 | 200 | else { | 4800 | 200 | const auto view = src.view(); | 4801 | 200 | value = std::basic_string_view<ValueCharT>(view.data(), view.size()); | 4802 | | | 4803 | 200 | if (!validate_unicode(value)) { | 4804 | 46 | return unexpected_scan_error( | 4805 | 46 | scan_error::invalid_scanned_value, | 4806 | 46 | "Invalid encoding in scanned string_view"); | 4807 | 46 | } | 4808 | | | 4809 | 154 | return SCN_MOVE(result); | 4810 | 200 | } | 4811 | 200 | } |
_ZN3scn2v34impl21read_string_view_implINS0_6ranges6detail9subrange_8subrangeIPKcS8_EES8_cEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESD_OT0_RNSB_17basic_string_viewIT1_NSB_11char_traitsISM_EEEE Line | Count | Source | 4772 | 950 | { | 4773 | 950 | static_assert(ranges::forward_iterator<detail::remove_cvref_t<Iterator>>); | 4774 | | | 4775 | 950 | auto src = [&]() { | 4776 | 950 | if constexpr (detail::is_specialization_of_v<Range, take_width_view>) { | 4777 | 950 | return make_contiguous_buffer( | 4778 | 950 | ranges::subrange{range.begin().base(), result.base()}); | 4779 | 950 | } | 4780 | 950 | else { | 4781 | 950 | return make_contiguous_buffer( | 4782 | 950 | ranges::subrange{range.begin(), result}); | 4783 | 950 | } | 4784 | 950 | }(); | 4785 | 950 | using src_type = decltype(src); | 4786 | | | 4787 | 950 | if (src.stores_allocated_string()) { | 4788 | 0 | return unexpected_scan_error( | 4789 | 0 | scan_error::invalid_scanned_value, | 4790 | 0 | "Cannot read a string_view from this source range (not " | 4791 | 0 | "contiguous)"); | 4792 | 0 | } | 4793 | 950 | if constexpr (!std::is_same_v<typename src_type::char_type, ValueCharT>) { | 4794 | 950 | return unexpected_scan_error(scan_error::invalid_scanned_value, | 4795 | 950 | "Cannot read a string_view from " | 4796 | 950 | "this source range (would require " | 4797 | 950 | "transcoding)"); | 4798 | 950 | } | 4799 | 950 | else { | 4800 | 950 | const auto view = src.view(); | 4801 | 950 | value = std::basic_string_view<ValueCharT>(view.data(), view.size()); | 4802 | | | 4803 | 950 | if (!validate_unicode(value)) { | 4804 | 312 | return unexpected_scan_error( | 4805 | 312 | scan_error::invalid_scanned_value, | 4806 | 312 | "Invalid encoding in scanned string_view"); | 4807 | 312 | } | 4808 | | | 4809 | 638 | return SCN_MOVE(result); | 4810 | 950 | } | 4811 | 950 | } |
_ZN3scn2v34impl21read_string_view_implINS0_6ranges6detail9subrange_8subrangeIPKcS8_EERS8_cEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESE_OT0_RNSC_17basic_string_viewIT1_NSC_11char_traitsISN_EEEE Line | Count | Source | 4772 | 1.10k | { | 4773 | 1.10k | static_assert(ranges::forward_iterator<detail::remove_cvref_t<Iterator>>); | 4774 | | | 4775 | 1.10k | auto src = [&]() { | 4776 | 1.10k | if constexpr (detail::is_specialization_of_v<Range, take_width_view>) { | 4777 | 1.10k | return make_contiguous_buffer( | 4778 | 1.10k | ranges::subrange{range.begin().base(), result.base()}); | 4779 | 1.10k | } | 4780 | 1.10k | else { | 4781 | 1.10k | return make_contiguous_buffer( | 4782 | 1.10k | ranges::subrange{range.begin(), result}); | 4783 | 1.10k | } | 4784 | 1.10k | }(); | 4785 | 1.10k | using src_type = decltype(src); | 4786 | | | 4787 | 1.10k | if (src.stores_allocated_string()) { | 4788 | 0 | return unexpected_scan_error( | 4789 | 0 | scan_error::invalid_scanned_value, | 4790 | 0 | "Cannot read a string_view from this source range (not " | 4791 | 0 | "contiguous)"); | 4792 | 0 | } | 4793 | 1.10k | if constexpr (!std::is_same_v<typename src_type::char_type, ValueCharT>) { | 4794 | 1.10k | return unexpected_scan_error(scan_error::invalid_scanned_value, | 4795 | 1.10k | "Cannot read a string_view from " | 4796 | 1.10k | "this source range (would require " | 4797 | 1.10k | "transcoding)"); | 4798 | 1.10k | } | 4799 | 1.10k | else { | 4800 | 1.10k | const auto view = src.view(); | 4801 | 1.10k | value = std::basic_string_view<ValueCharT>(view.data(), view.size()); | 4802 | | | 4803 | 1.10k | if (!validate_unicode(value)) { | 4804 | 124 | return unexpected_scan_error( | 4805 | 124 | scan_error::invalid_scanned_value, | 4806 | 124 | "Invalid encoding in scanned string_view"); | 4807 | 124 | } | 4808 | | | 4809 | 982 | return SCN_MOVE(result); | 4810 | 1.10k | } | 4811 | 1.10k | } |
Unexecuted instantiation: _ZN3scn2v34impl21read_string_view_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS4_18default_sentinel_tEEEEENS1_27counted_width_iterator_impl22counted_width_iteratorISB_SC_EEwEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_OT0_RNSJ_17basic_string_viewIT1_NSJ_11char_traitsISU_EEEE Unexecuted instantiation: _ZN3scn2v34impl21read_string_view_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS4_18default_sentinel_tEEEEERNS1_27counted_width_iterator_impl22counted_width_iteratorISB_SC_EEwEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_OT0_RNSK_17basic_string_viewIT1_NSK_11char_traitsISV_EEEE Unexecuted instantiation: _ZN3scn2v34impl21read_string_view_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEESA_wEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_OT0_RNSE_17basic_string_viewIT1_NSE_11char_traitsISP_EEEE Unexecuted instantiation: _ZN3scn2v34impl21read_string_view_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEERSA_wEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_OT0_RNSF_17basic_string_viewIT1_NSF_11char_traitsISQ_EEEE Unexecuted instantiation: _ZN3scn2v34impl21read_string_view_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcS9_EEEENS1_27counted_width_iterator_impl22counted_width_iteratorIS9_S9_EEwEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_OT0_RNSG_17basic_string_viewIT1_NSG_11char_traitsISR_EEEE Unexecuted instantiation: _ZN3scn2v34impl21read_string_view_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcS9_EEEERNS1_27counted_width_iterator_impl22counted_width_iteratorIS9_S9_EEwEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_OT0_RNSH_17basic_string_viewIT1_NSH_11char_traitsISS_EEEE Unexecuted instantiation: _ZN3scn2v34impl21read_string_view_implINS0_6ranges6detail9subrange_8subrangeIPKcS8_EES8_wEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESD_OT0_RNSB_17basic_string_viewIT1_NSB_11char_traitsISM_EEEE Unexecuted instantiation: _ZN3scn2v34impl21read_string_view_implINS0_6ranges6detail9subrange_8subrangeIPKcS8_EERS8_wEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESE_OT0_RNSC_17basic_string_viewIT1_NSC_11char_traitsISN_EEEE Unexecuted instantiation: _ZN3scn2v34impl21read_string_view_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS4_18default_sentinel_tEEEEENS1_27counted_width_iterator_impl22counted_width_iteratorISB_SC_EEcEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_OT0_RNSJ_17basic_string_viewIT1_NSJ_11char_traitsISU_EEEE Unexecuted instantiation: _ZN3scn2v34impl21read_string_view_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS4_18default_sentinel_tEEEEERNS1_27counted_width_iterator_impl22counted_width_iteratorISB_SC_EEcEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_OT0_RNSK_17basic_string_viewIT1_NSK_11char_traitsISV_EEEE Unexecuted instantiation: _ZN3scn2v34impl21read_string_view_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEESA_cEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_OT0_RNSE_17basic_string_viewIT1_NSE_11char_traitsISP_EEEE Unexecuted instantiation: _ZN3scn2v34impl21read_string_view_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEERSA_cEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_OT0_RNSF_17basic_string_viewIT1_NSF_11char_traitsISQ_EEEE Unexecuted instantiation: _ZN3scn2v34impl21read_string_view_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwS9_EEEENS1_27counted_width_iterator_impl22counted_width_iteratorIS9_S9_EEcEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_OT0_RNSG_17basic_string_viewIT1_NSG_11char_traitsISR_EEEE Unexecuted instantiation: _ZN3scn2v34impl21read_string_view_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwS9_EEEERNS1_27counted_width_iterator_impl22counted_width_iteratorIS9_S9_EEcEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_OT0_RNSH_17basic_string_viewIT1_NSH_11char_traitsISS_EEEE Unexecuted instantiation: _ZN3scn2v34impl21read_string_view_implINS0_6ranges6detail9subrange_8subrangeIPKwS8_EES8_cEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESD_OT0_RNSB_17basic_string_viewIT1_NSB_11char_traitsISM_EEEE Unexecuted instantiation: _ZN3scn2v34impl21read_string_view_implINS0_6ranges6detail9subrange_8subrangeIPKwS8_EERS8_cEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESE_OT0_RNSC_17basic_string_viewIT1_NSC_11char_traitsISN_EEEE Unexecuted instantiation: _ZN3scn2v34impl21read_string_view_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS4_18default_sentinel_tEEEEENS1_27counted_width_iterator_impl22counted_width_iteratorISB_SC_EEwEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_OT0_RNSJ_17basic_string_viewIT1_NSJ_11char_traitsISU_EEEE Unexecuted instantiation: _ZN3scn2v34impl21read_string_view_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS4_18default_sentinel_tEEEEERNS1_27counted_width_iterator_impl22counted_width_iteratorISB_SC_EEwEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESM_OT0_RNSK_17basic_string_viewIT1_NSK_11char_traitsISV_EEEE Unexecuted instantiation: _ZN3scn2v34impl21read_string_view_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEESA_wEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_OT0_RNSE_17basic_string_viewIT1_NSE_11char_traitsISP_EEEE Unexecuted instantiation: _ZN3scn2v34impl21read_string_view_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEERSA_wEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_OT0_RNSF_17basic_string_viewIT1_NSF_11char_traitsISQ_EEEE _ZN3scn2v34impl21read_string_view_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwS9_EEEENS1_27counted_width_iterator_impl22counted_width_iteratorIS9_S9_EEwEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_OT0_RNSG_17basic_string_viewIT1_NSG_11char_traitsISR_EEEE Line | Count | Source | 4772 | 146 | { | 4773 | 146 | static_assert(ranges::forward_iterator<detail::remove_cvref_t<Iterator>>); | 4774 | | | 4775 | 146 | auto src = [&]() { | 4776 | 146 | if constexpr (detail::is_specialization_of_v<Range, take_width_view>) { | 4777 | 146 | return make_contiguous_buffer( | 4778 | 146 | ranges::subrange{range.begin().base(), result.base()}); | 4779 | 146 | } | 4780 | 146 | else { | 4781 | 146 | return make_contiguous_buffer( | 4782 | 146 | ranges::subrange{range.begin(), result}); | 4783 | 146 | } | 4784 | 146 | }(); | 4785 | 146 | using src_type = decltype(src); | 4786 | | | 4787 | 146 | if (src.stores_allocated_string()) { | 4788 | 0 | return unexpected_scan_error( | 4789 | 0 | scan_error::invalid_scanned_value, | 4790 | 0 | "Cannot read a string_view from this source range (not " | 4791 | 0 | "contiguous)"); | 4792 | 0 | } | 4793 | 146 | if constexpr (!std::is_same_v<typename src_type::char_type, ValueCharT>) { | 4794 | 146 | return unexpected_scan_error(scan_error::invalid_scanned_value, | 4795 | 146 | "Cannot read a string_view from " | 4796 | 146 | "this source range (would require " | 4797 | 146 | "transcoding)"); | 4798 | 146 | } | 4799 | 146 | else { | 4800 | 146 | const auto view = src.view(); | 4801 | 146 | value = std::basic_string_view<ValueCharT>(view.data(), view.size()); | 4802 | | | 4803 | 146 | if (!validate_unicode(value)) { | 4804 | 70 | return unexpected_scan_error( | 4805 | 70 | scan_error::invalid_scanned_value, | 4806 | 70 | "Invalid encoding in scanned string_view"); | 4807 | 70 | } | 4808 | | | 4809 | 76 | return SCN_MOVE(result); | 4810 | 146 | } | 4811 | 146 | } |
Unexecuted instantiation: _ZN3scn2v34impl21read_string_view_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwS9_EEEERNS1_27counted_width_iterator_impl22counted_width_iteratorIS9_S9_EEwEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_OT0_RNSH_17basic_string_viewIT1_NSH_11char_traitsISS_EEEE _ZN3scn2v34impl21read_string_view_implINS0_6ranges6detail9subrange_8subrangeIPKwS8_EES8_wEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESD_OT0_RNSB_17basic_string_viewIT1_NSB_11char_traitsISM_EEEE Line | Count | Source | 4772 | 10.3k | { | 4773 | 10.3k | static_assert(ranges::forward_iterator<detail::remove_cvref_t<Iterator>>); | 4774 | | | 4775 | 10.3k | auto src = [&]() { | 4776 | 10.3k | if constexpr (detail::is_specialization_of_v<Range, take_width_view>) { | 4777 | 10.3k | return make_contiguous_buffer( | 4778 | 10.3k | ranges::subrange{range.begin().base(), result.base()}); | 4779 | 10.3k | } | 4780 | 10.3k | else { | 4781 | 10.3k | return make_contiguous_buffer( | 4782 | 10.3k | ranges::subrange{range.begin(), result}); | 4783 | 10.3k | } | 4784 | 10.3k | }(); | 4785 | 10.3k | using src_type = decltype(src); | 4786 | | | 4787 | 10.3k | if (src.stores_allocated_string()) { | 4788 | 0 | return unexpected_scan_error( | 4789 | 0 | scan_error::invalid_scanned_value, | 4790 | 0 | "Cannot read a string_view from this source range (not " | 4791 | 0 | "contiguous)"); | 4792 | 0 | } | 4793 | 10.3k | if constexpr (!std::is_same_v<typename src_type::char_type, ValueCharT>) { | 4794 | 10.3k | return unexpected_scan_error(scan_error::invalid_scanned_value, | 4795 | 10.3k | "Cannot read a string_view from " | 4796 | 10.3k | "this source range (would require " | 4797 | 10.3k | "transcoding)"); | 4798 | 10.3k | } | 4799 | 10.3k | else { | 4800 | 10.3k | const auto view = src.view(); | 4801 | 10.3k | value = std::basic_string_view<ValueCharT>(view.data(), view.size()); | 4802 | | | 4803 | 10.3k | if (!validate_unicode(value)) { | 4804 | 274 | return unexpected_scan_error( | 4805 | 274 | scan_error::invalid_scanned_value, | 4806 | 274 | "Invalid encoding in scanned string_view"); | 4807 | 274 | } | 4808 | | | 4809 | 10.0k | return SCN_MOVE(result); | 4810 | 10.3k | } | 4811 | 10.3k | } |
_ZN3scn2v34impl21read_string_view_implINS0_6ranges6detail9subrange_8subrangeIPKwS8_EERS8_wEENS0_13scan_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESE_OT0_RNSC_17basic_string_viewIT1_NSC_11char_traitsISN_EEEE Line | Count | Source | 4772 | 372 | { | 4773 | 372 | static_assert(ranges::forward_iterator<detail::remove_cvref_t<Iterator>>); | 4774 | | | 4775 | 372 | auto src = [&]() { | 4776 | 372 | if constexpr (detail::is_specialization_of_v<Range, take_width_view>) { | 4777 | 372 | return make_contiguous_buffer( | 4778 | 372 | ranges::subrange{range.begin().base(), result.base()}); | 4779 | 372 | } | 4780 | 372 | else { | 4781 | 372 | return make_contiguous_buffer( | 4782 | 372 | ranges::subrange{range.begin(), result}); | 4783 | 372 | } | 4784 | 372 | }(); | 4785 | 372 | using src_type = decltype(src); | 4786 | | | 4787 | 372 | if (src.stores_allocated_string()) { | 4788 | 0 | return unexpected_scan_error( | 4789 | 0 | scan_error::invalid_scanned_value, | 4790 | 0 | "Cannot read a string_view from this source range (not " | 4791 | 0 | "contiguous)"); | 4792 | 0 | } | 4793 | 372 | if constexpr (!std::is_same_v<typename src_type::char_type, ValueCharT>) { | 4794 | 372 | return unexpected_scan_error(scan_error::invalid_scanned_value, | 4795 | 372 | "Cannot read a string_view from " | 4796 | 372 | "this source range (would require " | 4797 | 372 | "transcoding)"); | 4798 | 372 | } | 4799 | 372 | else { | 4800 | 372 | const auto view = src.view(); | 4801 | 372 | value = std::basic_string_view<ValueCharT>(view.data(), view.size()); | 4802 | | | 4803 | 372 | if (!validate_unicode(value)) { | 4804 | 118 | return unexpected_scan_error( | 4805 | 118 | scan_error::invalid_scanned_value, | 4806 | 118 | "Invalid encoding in scanned string_view"); | 4807 | 118 | } | 4808 | | | 4809 | 254 | return SCN_MOVE(result); | 4810 | 372 | } | 4811 | 372 | } |
|
4812 | | |
4813 | | template <typename SourceCharT> |
4814 | | class word_reader_impl { |
4815 | | public: |
4816 | | template <typename Range, typename ValueCharT> |
4817 | | auto read(Range range, std::basic_string<ValueCharT>& value) |
4818 | | -> scan_expected<ranges::const_iterator_t<Range>> |
4819 | 23.1k | { |
4820 | 23.1k | return read_string_impl(range, read_until_classic_space(range), value); |
4821 | 23.1k | } Unexecuted instantiation: _ZN3scn2v34impl16word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RNSI_12basic_stringIT0_NSI_11char_traitsISR_EENSI_9allocatorISR_EEEE Unexecuted instantiation: _ZN3scn2v34impl16word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RNSG_12basic_stringIT0_NSG_11char_traitsISP_EENSG_9allocatorISP_EEEE _ZN3scn2v34impl16word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RNSF_12basic_stringIT0_NSF_11char_traitsISO_EENSF_9allocatorISO_EEEE Line | Count | Source | 4819 | 244 | { | 4820 | 244 | return read_string_impl(range, read_until_classic_space(range), value); | 4821 | 244 | } |
_ZN3scn2v34impl16word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RNSD_12basic_stringIT0_NSD_11char_traitsISM_EENSD_9allocatorISM_EEEE Line | Count | Source | 4819 | 906 | { | 4820 | 906 | return read_string_impl(range, read_until_classic_space(range), value); | 4821 | 906 | } |
Unexecuted instantiation: _ZN3scn2v34impl16word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RNSI_12basic_stringIT0_NSI_11char_traitsISR_EENSI_9allocatorISR_EEEE Unexecuted instantiation: _ZN3scn2v34impl16word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RNSG_12basic_stringIT0_NSG_11char_traitsISP_EENSG_9allocatorISP_EEEE _ZN3scn2v34impl16word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RNSF_12basic_stringIT0_NSF_11char_traitsISO_EENSF_9allocatorISO_EEEE Line | Count | Source | 4819 | 244 | { | 4820 | 244 | return read_string_impl(range, read_until_classic_space(range), value); | 4821 | 244 | } |
_ZN3scn2v34impl16word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RNSD_12basic_stringIT0_NSD_11char_traitsISM_EENSD_9allocatorISM_EEEE Line | Count | Source | 4819 | 906 | { | 4820 | 906 | return read_string_impl(range, read_until_classic_space(range), value); | 4821 | 906 | } |
Unexecuted instantiation: _ZN3scn2v34impl16word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RNSI_12basic_stringIT0_NSI_11char_traitsISR_EENSI_9allocatorISR_EEEE Unexecuted instantiation: _ZN3scn2v34impl16word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RNSG_12basic_stringIT0_NSG_11char_traitsISP_EENSG_9allocatorISP_EEEE _ZN3scn2v34impl16word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RNSF_12basic_stringIT0_NSF_11char_traitsISO_EENSF_9allocatorISO_EEEE Line | Count | Source | 4819 | 108 | { | 4820 | 108 | return read_string_impl(range, read_until_classic_space(range), value); | 4821 | 108 | } |
_ZN3scn2v34impl16word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RNSD_12basic_stringIT0_NSD_11char_traitsISM_EENSD_9allocatorISM_EEEE Line | Count | Source | 4819 | 10.3k | { | 4820 | 10.3k | return read_string_impl(range, read_until_classic_space(range), value); | 4821 | 10.3k | } |
Unexecuted instantiation: _ZN3scn2v34impl16word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RNSI_12basic_stringIT0_NSI_11char_traitsISR_EENSI_9allocatorISR_EEEE Unexecuted instantiation: _ZN3scn2v34impl16word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RNSG_12basic_stringIT0_NSG_11char_traitsISP_EENSG_9allocatorISP_EEEE _ZN3scn2v34impl16word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RNSF_12basic_stringIT0_NSF_11char_traitsISO_EENSF_9allocatorISO_EEEE Line | Count | Source | 4819 | 108 | { | 4820 | 108 | return read_string_impl(range, read_until_classic_space(range), value); | 4821 | 108 | } |
_ZN3scn2v34impl16word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RNSD_12basic_stringIT0_NSD_11char_traitsISM_EENSD_9allocatorISM_EEEE Line | Count | Source | 4819 | 10.3k | { | 4820 | 10.3k | return read_string_impl(range, read_until_classic_space(range), value); | 4821 | 10.3k | } |
|
4822 | | |
4823 | | template <typename Range, typename ValueCharT> |
4824 | | auto read(Range range, std::basic_string_view<ValueCharT>& value) |
4825 | | -> scan_expected<ranges::const_iterator_t<Range>> |
4826 | 11.5k | { |
4827 | 11.5k | return read_string_view_impl(range, read_until_classic_space(range), |
4828 | 11.5k | value); |
4829 | 11.5k | } Unexecuted instantiation: _ZN3scn2v34impl16word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RNSI_17basic_string_viewIT0_NSI_11char_traitsISR_EEEE Unexecuted instantiation: _ZN3scn2v34impl16word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RNSG_17basic_string_viewIT0_NSG_11char_traitsISP_EEEE _ZN3scn2v34impl16word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RNSF_17basic_string_viewIT0_NSF_11char_traitsISO_EEEE Line | Count | Source | 4826 | 244 | { | 4827 | 244 | return read_string_view_impl(range, read_until_classic_space(range), | 4828 | 244 | value); | 4829 | 244 | } |
_ZN3scn2v34impl16word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RNSD_17basic_string_viewIT0_NSD_11char_traitsISM_EEEE Line | Count | Source | 4826 | 906 | { | 4827 | 906 | return read_string_view_impl(range, read_until_classic_space(range), | 4828 | 906 | value); | 4829 | 906 | } |
Unexecuted instantiation: _ZN3scn2v34impl16word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RNSI_17basic_string_viewIT0_NSI_11char_traitsISR_EEEE Unexecuted instantiation: _ZN3scn2v34impl16word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RNSG_17basic_string_viewIT0_NSG_11char_traitsISP_EEEE Unexecuted instantiation: _ZN3scn2v34impl16word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RNSF_17basic_string_viewIT0_NSF_11char_traitsISO_EEEE Unexecuted instantiation: _ZN3scn2v34impl16word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RNSD_17basic_string_viewIT0_NSD_11char_traitsISM_EEEE Unexecuted instantiation: _ZN3scn2v34impl16word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RNSI_17basic_string_viewIT0_NSI_11char_traitsISR_EEEE Unexecuted instantiation: _ZN3scn2v34impl16word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RNSG_17basic_string_viewIT0_NSG_11char_traitsISP_EEEE Unexecuted instantiation: _ZN3scn2v34impl16word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RNSF_17basic_string_viewIT0_NSF_11char_traitsISO_EEEE Unexecuted instantiation: _ZN3scn2v34impl16word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RNSD_17basic_string_viewIT0_NSD_11char_traitsISM_EEEE Unexecuted instantiation: _ZN3scn2v34impl16word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RNSI_17basic_string_viewIT0_NSI_11char_traitsISR_EEEE Unexecuted instantiation: _ZN3scn2v34impl16word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RNSG_17basic_string_viewIT0_NSG_11char_traitsISP_EEEE _ZN3scn2v34impl16word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RNSF_17basic_string_viewIT0_NSF_11char_traitsISO_EEEE Line | Count | Source | 4826 | 108 | { | 4827 | 108 | return read_string_view_impl(range, read_until_classic_space(range), | 4828 | 108 | value); | 4829 | 108 | } |
_ZN3scn2v34impl16word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RNSD_17basic_string_viewIT0_NSD_11char_traitsISM_EEEE Line | Count | Source | 4826 | 10.3k | { | 4827 | 10.3k | return read_string_view_impl(range, read_until_classic_space(range), | 4828 | 10.3k | value); | 4829 | 10.3k | } |
|
4830 | | }; |
4831 | | |
4832 | | template <typename SourceCharT> |
4833 | | class custom_word_reader_impl { |
4834 | | public: |
4835 | | template <typename Range, typename ValueCharT> |
4836 | | auto read(Range range, |
4837 | | const detail::format_specs& specs, |
4838 | | std::basic_string<ValueCharT>& value) |
4839 | | -> scan_expected<ranges::const_iterator_t<Range>> |
4840 | 280 | { |
4841 | 280 | if (specs.fill.size() <= sizeof(SourceCharT)) { |
4842 | 216 | return read_string_impl( |
4843 | 216 | range, |
4844 | 216 | read_until_code_unit( |
4845 | 216 | range, |
4846 | 216 | [until = specs.fill.template get_code_unit<SourceCharT>()]( |
4847 | 3.71k | SourceCharT ch) { return ch == until; }),Unexecuted instantiation: _ZZN3scn2v34impl23custom_word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERNSI_12basic_stringIT0_NSI_11char_traitsISU_EENSI_9allocatorISU_EEEEENKUlcE_clEc Unexecuted instantiation: _ZZN3scn2v34impl23custom_word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERNSG_12basic_stringIT0_NSG_11char_traitsISS_EENSG_9allocatorISS_EEEEENKUlcE_clEc _ZZN3scn2v34impl23custom_word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERNSF_12basic_stringIT0_NSF_11char_traitsISS_EENSF_9allocatorISS_EEEEENKUlcE_clEc Line | Count | Source | 4847 | 654 | SourceCharT ch) { return ch == until; }), |
_ZZN3scn2v34impl23custom_word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERNSD_12basic_stringIT0_NSD_11char_traitsISQ_EENSD_9allocatorISQ_EEEEENKUlcE_clEc Line | Count | Source | 4847 | 442 | SourceCharT ch) { return ch == until; }), |
Unexecuted instantiation: _ZZN3scn2v34impl23custom_word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERNSI_12basic_stringIT0_NSI_11char_traitsISU_EENSI_9allocatorISU_EEEEENKUlcE_clEc Unexecuted instantiation: _ZZN3scn2v34impl23custom_word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERNSG_12basic_stringIT0_NSG_11char_traitsISS_EENSG_9allocatorISS_EEEEENKUlcE_clEc _ZZN3scn2v34impl23custom_word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERNSF_12basic_stringIT0_NSF_11char_traitsISS_EENSF_9allocatorISS_EEEEENKUlcE_clEc Line | Count | Source | 4847 | 654 | SourceCharT ch) { return ch == until; }), |
_ZZN3scn2v34impl23custom_word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERNSD_12basic_stringIT0_NSD_11char_traitsISQ_EENSD_9allocatorISQ_EEEEENKUlcE_clEc Line | Count | Source | 4847 | 442 | SourceCharT ch) { return ch == until; }), |
Unexecuted instantiation: _ZZN3scn2v34impl23custom_word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERNSI_12basic_stringIT0_NSI_11char_traitsISU_EENSI_9allocatorISU_EEEEENKUlwE_clEw Unexecuted instantiation: _ZZN3scn2v34impl23custom_word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERNSG_12basic_stringIT0_NSG_11char_traitsISS_EENSG_9allocatorISS_EEEEENKUlwE_clEw _ZZN3scn2v34impl23custom_word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERNSF_12basic_stringIT0_NSF_11char_traitsISS_EENSF_9allocatorISS_EEEEENKUlwE_clEw Line | Count | Source | 4847 | 350 | SourceCharT ch) { return ch == until; }), |
_ZZN3scn2v34impl23custom_word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERNSD_12basic_stringIT0_NSD_11char_traitsISQ_EENSD_9allocatorISQ_EEEEENKUlwE_clEw Line | Count | Source | 4847 | 410 | SourceCharT ch) { return ch == until; }), |
Unexecuted instantiation: _ZZN3scn2v34impl23custom_word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERNSI_12basic_stringIT0_NSI_11char_traitsISU_EENSI_9allocatorISU_EEEEENKUlwE_clEw Unexecuted instantiation: _ZZN3scn2v34impl23custom_word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERNSG_12basic_stringIT0_NSG_11char_traitsISS_EENSG_9allocatorISS_EEEEENKUlwE_clEw _ZZN3scn2v34impl23custom_word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERNSF_12basic_stringIT0_NSF_11char_traitsISS_EENSF_9allocatorISS_EEEEENKUlwE_clEw Line | Count | Source | 4847 | 350 | SourceCharT ch) { return ch == until; }), |
_ZZN3scn2v34impl23custom_word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERNSD_12basic_stringIT0_NSD_11char_traitsISQ_EENSD_9allocatorISQ_EEEEENKUlwE_clEw Line | Count | Source | 4847 | 410 | SourceCharT ch) { return ch == until; }), |
|
4848 | 216 | value); |
4849 | 216 | } |
4850 | 64 | return read_string_impl( |
4851 | 64 | range, |
4852 | 64 | read_until_code_units( |
4853 | 64 | range, specs.fill.template get_code_units<SourceCharT>()), |
4854 | 64 | value); |
4855 | 280 | } Unexecuted instantiation: _ZN3scn2v34impl23custom_word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERNSI_12basic_stringIT0_NSI_11char_traitsISU_EENSI_9allocatorISU_EEEE Unexecuted instantiation: _ZN3scn2v34impl23custom_word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERNSG_12basic_stringIT0_NSG_11char_traitsISS_EENSG_9allocatorISS_EEEE _ZN3scn2v34impl23custom_word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERNSF_12basic_stringIT0_NSF_11char_traitsISS_EENSF_9allocatorISS_EEEE Line | Count | Source | 4840 | 50 | { | 4841 | 50 | if (specs.fill.size() <= sizeof(SourceCharT)) { | 4842 | 32 | return read_string_impl( | 4843 | 32 | range, | 4844 | 32 | read_until_code_unit( | 4845 | 32 | range, | 4846 | 32 | [until = specs.fill.template get_code_unit<SourceCharT>()]( | 4847 | 32 | SourceCharT ch) { return ch == until; }), | 4848 | 32 | value); | 4849 | 32 | } | 4850 | 18 | return read_string_impl( | 4851 | 18 | range, | 4852 | 18 | read_until_code_units( | 4853 | 18 | range, specs.fill.template get_code_units<SourceCharT>()), | 4854 | 18 | value); | 4855 | 50 | } |
_ZN3scn2v34impl23custom_word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERNSD_12basic_stringIT0_NSD_11char_traitsISQ_EENSD_9allocatorISQ_EEEE Line | Count | Source | 4840 | 44 | { | 4841 | 44 | if (specs.fill.size() <= sizeof(SourceCharT)) { | 4842 | 30 | return read_string_impl( | 4843 | 30 | range, | 4844 | 30 | read_until_code_unit( | 4845 | 30 | range, | 4846 | 30 | [until = specs.fill.template get_code_unit<SourceCharT>()]( | 4847 | 30 | SourceCharT ch) { return ch == until; }), | 4848 | 30 | value); | 4849 | 30 | } | 4850 | 14 | return read_string_impl( | 4851 | 14 | range, | 4852 | 14 | read_until_code_units( | 4853 | 14 | range, specs.fill.template get_code_units<SourceCharT>()), | 4854 | 14 | value); | 4855 | 44 | } |
Unexecuted instantiation: _ZN3scn2v34impl23custom_word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERNSI_12basic_stringIT0_NSI_11char_traitsISU_EENSI_9allocatorISU_EEEE Unexecuted instantiation: _ZN3scn2v34impl23custom_word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERNSG_12basic_stringIT0_NSG_11char_traitsISS_EENSG_9allocatorISS_EEEE _ZN3scn2v34impl23custom_word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERNSF_12basic_stringIT0_NSF_11char_traitsISS_EENSF_9allocatorISS_EEEE Line | Count | Source | 4840 | 50 | { | 4841 | 50 | if (specs.fill.size() <= sizeof(SourceCharT)) { | 4842 | 32 | return read_string_impl( | 4843 | 32 | range, | 4844 | 32 | read_until_code_unit( | 4845 | 32 | range, | 4846 | 32 | [until = specs.fill.template get_code_unit<SourceCharT>()]( | 4847 | 32 | SourceCharT ch) { return ch == until; }), | 4848 | 32 | value); | 4849 | 32 | } | 4850 | 18 | return read_string_impl( | 4851 | 18 | range, | 4852 | 18 | read_until_code_units( | 4853 | 18 | range, specs.fill.template get_code_units<SourceCharT>()), | 4854 | 18 | value); | 4855 | 50 | } |
_ZN3scn2v34impl23custom_word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERNSD_12basic_stringIT0_NSD_11char_traitsISQ_EENSD_9allocatorISQ_EEEE Line | Count | Source | 4840 | 44 | { | 4841 | 44 | if (specs.fill.size() <= sizeof(SourceCharT)) { | 4842 | 30 | return read_string_impl( | 4843 | 30 | range, | 4844 | 30 | read_until_code_unit( | 4845 | 30 | range, | 4846 | 30 | [until = specs.fill.template get_code_unit<SourceCharT>()]( | 4847 | 30 | SourceCharT ch) { return ch == until; }), | 4848 | 30 | value); | 4849 | 30 | } | 4850 | 14 | return read_string_impl( | 4851 | 14 | range, | 4852 | 14 | read_until_code_units( | 4853 | 14 | range, specs.fill.template get_code_units<SourceCharT>()), | 4854 | 14 | value); | 4855 | 44 | } |
Unexecuted instantiation: _ZN3scn2v34impl23custom_word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERNSI_12basic_stringIT0_NSI_11char_traitsISU_EENSI_9allocatorISU_EEEE Unexecuted instantiation: _ZN3scn2v34impl23custom_word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERNSG_12basic_stringIT0_NSG_11char_traitsISS_EENSG_9allocatorISS_EEEE _ZN3scn2v34impl23custom_word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERNSF_12basic_stringIT0_NSF_11char_traitsISS_EENSF_9allocatorISS_EEEE Line | Count | Source | 4840 | 20 | { | 4841 | 20 | if (specs.fill.size() <= sizeof(SourceCharT)) { | 4842 | 20 | return read_string_impl( | 4843 | 20 | range, | 4844 | 20 | read_until_code_unit( | 4845 | 20 | range, | 4846 | 20 | [until = specs.fill.template get_code_unit<SourceCharT>()]( | 4847 | 20 | SourceCharT ch) { return ch == until; }), | 4848 | 20 | value); | 4849 | 20 | } | 4850 | 0 | return read_string_impl( | 4851 | 0 | range, | 4852 | 0 | read_until_code_units( | 4853 | 0 | range, specs.fill.template get_code_units<SourceCharT>()), | 4854 | 0 | value); | 4855 | 20 | } |
_ZN3scn2v34impl23custom_word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERNSD_12basic_stringIT0_NSD_11char_traitsISQ_EENSD_9allocatorISQ_EEEE Line | Count | Source | 4840 | 26 | { | 4841 | 26 | if (specs.fill.size() <= sizeof(SourceCharT)) { | 4842 | 26 | return read_string_impl( | 4843 | 26 | range, | 4844 | 26 | read_until_code_unit( | 4845 | 26 | range, | 4846 | 26 | [until = specs.fill.template get_code_unit<SourceCharT>()]( | 4847 | 26 | SourceCharT ch) { return ch == until; }), | 4848 | 26 | value); | 4849 | 26 | } | 4850 | 0 | return read_string_impl( | 4851 | 0 | range, | 4852 | 0 | read_until_code_units( | 4853 | 0 | range, specs.fill.template get_code_units<SourceCharT>()), | 4854 | 0 | value); | 4855 | 26 | } |
Unexecuted instantiation: _ZN3scn2v34impl23custom_word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERNSI_12basic_stringIT0_NSI_11char_traitsISU_EENSI_9allocatorISU_EEEE Unexecuted instantiation: _ZN3scn2v34impl23custom_word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERNSG_12basic_stringIT0_NSG_11char_traitsISS_EENSG_9allocatorISS_EEEE _ZN3scn2v34impl23custom_word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERNSF_12basic_stringIT0_NSF_11char_traitsISS_EENSF_9allocatorISS_EEEE Line | Count | Source | 4840 | 20 | { | 4841 | 20 | if (specs.fill.size() <= sizeof(SourceCharT)) { | 4842 | 20 | return read_string_impl( | 4843 | 20 | range, | 4844 | 20 | read_until_code_unit( | 4845 | 20 | range, | 4846 | 20 | [until = specs.fill.template get_code_unit<SourceCharT>()]( | 4847 | 20 | SourceCharT ch) { return ch == until; }), | 4848 | 20 | value); | 4849 | 20 | } | 4850 | 0 | return read_string_impl( | 4851 | 0 | range, | 4852 | 0 | read_until_code_units( | 4853 | 0 | range, specs.fill.template get_code_units<SourceCharT>()), | 4854 | 0 | value); | 4855 | 20 | } |
_ZN3scn2v34impl23custom_word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERNSD_12basic_stringIT0_NSD_11char_traitsISQ_EENSD_9allocatorISQ_EEEE Line | Count | Source | 4840 | 26 | { | 4841 | 26 | if (specs.fill.size() <= sizeof(SourceCharT)) { | 4842 | 26 | return read_string_impl( | 4843 | 26 | range, | 4844 | 26 | read_until_code_unit( | 4845 | 26 | range, | 4846 | 26 | [until = specs.fill.template get_code_unit<SourceCharT>()]( | 4847 | 26 | SourceCharT ch) { return ch == until; }), | 4848 | 26 | value); | 4849 | 26 | } | 4850 | 0 | return read_string_impl( | 4851 | 0 | range, | 4852 | 0 | read_until_code_units( | 4853 | 0 | range, specs.fill.template get_code_units<SourceCharT>()), | 4854 | 0 | value); | 4855 | 26 | } |
|
4856 | | |
4857 | | template <typename Range, typename ValueCharT> |
4858 | | auto read(Range range, |
4859 | | const detail::format_specs& specs, |
4860 | | std::basic_string_view<ValueCharT>& value) |
4861 | | -> scan_expected<ranges::const_iterator_t<Range>> |
4862 | 140 | { |
4863 | 140 | if (specs.fill.size() <= sizeof(SourceCharT)) { |
4864 | 108 | return read_string_view_impl( |
4865 | 108 | range, |
4866 | 108 | read_until_code_unit( |
4867 | 108 | range, |
4868 | 108 | [until = specs.fill.template get_code_unit<SourceCharT>()]( |
4869 | 1.85k | SourceCharT ch) { return ch == until; }),Unexecuted instantiation: _ZZN3scn2v34impl23custom_word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERNSI_17basic_string_viewIT0_NSI_11char_traitsISU_EEEEENKUlcE_clEc Unexecuted instantiation: _ZZN3scn2v34impl23custom_word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERNSG_17basic_string_viewIT0_NSG_11char_traitsISS_EEEEENKUlcE_clEc _ZZN3scn2v34impl23custom_word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERNSF_17basic_string_viewIT0_NSF_11char_traitsISS_EEEEENKUlcE_clEc Line | Count | Source | 4869 | 654 | SourceCharT ch) { return ch == until; }), |
_ZZN3scn2v34impl23custom_word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERNSD_17basic_string_viewIT0_NSD_11char_traitsISQ_EEEEENKUlcE_clEc Line | Count | Source | 4869 | 442 | SourceCharT ch) { return ch == until; }), |
Unexecuted instantiation: _ZZN3scn2v34impl23custom_word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERNSI_17basic_string_viewIT0_NSI_11char_traitsISU_EEEEENKUlcE_clEc Unexecuted instantiation: _ZZN3scn2v34impl23custom_word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERNSG_17basic_string_viewIT0_NSG_11char_traitsISS_EEEEENKUlcE_clEc Unexecuted instantiation: _ZZN3scn2v34impl23custom_word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERNSF_17basic_string_viewIT0_NSF_11char_traitsISS_EEEEENKUlcE_clEc Unexecuted instantiation: _ZZN3scn2v34impl23custom_word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERNSD_17basic_string_viewIT0_NSD_11char_traitsISQ_EEEEENKUlcE_clEc Unexecuted instantiation: _ZZN3scn2v34impl23custom_word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERNSI_17basic_string_viewIT0_NSI_11char_traitsISU_EEEEENKUlwE_clEw Unexecuted instantiation: _ZZN3scn2v34impl23custom_word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERNSG_17basic_string_viewIT0_NSG_11char_traitsISS_EEEEENKUlwE_clEw Unexecuted instantiation: _ZZN3scn2v34impl23custom_word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERNSF_17basic_string_viewIT0_NSF_11char_traitsISS_EEEEENKUlwE_clEw Unexecuted instantiation: _ZZN3scn2v34impl23custom_word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERNSD_17basic_string_viewIT0_NSD_11char_traitsISQ_EEEEENKUlwE_clEw Unexecuted instantiation: _ZZN3scn2v34impl23custom_word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERNSI_17basic_string_viewIT0_NSI_11char_traitsISU_EEEEENKUlwE_clEw Unexecuted instantiation: _ZZN3scn2v34impl23custom_word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERNSG_17basic_string_viewIT0_NSG_11char_traitsISS_EEEEENKUlwE_clEw _ZZN3scn2v34impl23custom_word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERNSF_17basic_string_viewIT0_NSF_11char_traitsISS_EEEEENKUlwE_clEw Line | Count | Source | 4869 | 350 | SourceCharT ch) { return ch == until; }), |
_ZZN3scn2v34impl23custom_word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERNSD_17basic_string_viewIT0_NSD_11char_traitsISQ_EEEEENKUlwE_clEw Line | Count | Source | 4869 | 410 | SourceCharT ch) { return ch == until; }), |
|
4870 | 108 | value); |
4871 | 108 | } |
4872 | 32 | return read_string_view_impl( |
4873 | 32 | range, |
4874 | 32 | read_until_code_units( |
4875 | 32 | range, specs.fill.template get_code_units<SourceCharT>()), |
4876 | 32 | value); |
4877 | 140 | } Unexecuted instantiation: _ZN3scn2v34impl23custom_word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERNSI_17basic_string_viewIT0_NSI_11char_traitsISU_EEEE Unexecuted instantiation: _ZN3scn2v34impl23custom_word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERNSG_17basic_string_viewIT0_NSG_11char_traitsISS_EEEE _ZN3scn2v34impl23custom_word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERNSF_17basic_string_viewIT0_NSF_11char_traitsISS_EEEE Line | Count | Source | 4862 | 50 | { | 4863 | 50 | if (specs.fill.size() <= sizeof(SourceCharT)) { | 4864 | 32 | return read_string_view_impl( | 4865 | 32 | range, | 4866 | 32 | read_until_code_unit( | 4867 | 32 | range, | 4868 | 32 | [until = specs.fill.template get_code_unit<SourceCharT>()]( | 4869 | 32 | SourceCharT ch) { return ch == until; }), | 4870 | 32 | value); | 4871 | 32 | } | 4872 | 18 | return read_string_view_impl( | 4873 | 18 | range, | 4874 | 18 | read_until_code_units( | 4875 | 18 | range, specs.fill.template get_code_units<SourceCharT>()), | 4876 | 18 | value); | 4877 | 50 | } |
_ZN3scn2v34impl23custom_word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERNSD_17basic_string_viewIT0_NSD_11char_traitsISQ_EEEE Line | Count | Source | 4862 | 44 | { | 4863 | 44 | if (specs.fill.size() <= sizeof(SourceCharT)) { | 4864 | 30 | return read_string_view_impl( | 4865 | 30 | range, | 4866 | 30 | read_until_code_unit( | 4867 | 30 | range, | 4868 | 30 | [until = specs.fill.template get_code_unit<SourceCharT>()]( | 4869 | 30 | SourceCharT ch) { return ch == until; }), | 4870 | 30 | value); | 4871 | 30 | } | 4872 | 14 | return read_string_view_impl( | 4873 | 14 | range, | 4874 | 14 | read_until_code_units( | 4875 | 14 | range, specs.fill.template get_code_units<SourceCharT>()), | 4876 | 14 | value); | 4877 | 44 | } |
Unexecuted instantiation: _ZN3scn2v34impl23custom_word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERNSI_17basic_string_viewIT0_NSI_11char_traitsISU_EEEE Unexecuted instantiation: _ZN3scn2v34impl23custom_word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERNSG_17basic_string_viewIT0_NSG_11char_traitsISS_EEEE Unexecuted instantiation: _ZN3scn2v34impl23custom_word_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERNSF_17basic_string_viewIT0_NSF_11char_traitsISS_EEEE Unexecuted instantiation: _ZN3scn2v34impl23custom_word_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERNSD_17basic_string_viewIT0_NSD_11char_traitsISQ_EEEE Unexecuted instantiation: _ZN3scn2v34impl23custom_word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERNSI_17basic_string_viewIT0_NSI_11char_traitsISU_EEEE Unexecuted instantiation: _ZN3scn2v34impl23custom_word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERNSG_17basic_string_viewIT0_NSG_11char_traitsISS_EEEE Unexecuted instantiation: _ZN3scn2v34impl23custom_word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERNSF_17basic_string_viewIT0_NSF_11char_traitsISS_EEEE Unexecuted instantiation: _ZN3scn2v34impl23custom_word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERNSD_17basic_string_viewIT0_NSD_11char_traitsISQ_EEEE Unexecuted instantiation: _ZN3scn2v34impl23custom_word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERNSI_17basic_string_viewIT0_NSI_11char_traitsISU_EEEE Unexecuted instantiation: _ZN3scn2v34impl23custom_word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERNSG_17basic_string_viewIT0_NSG_11char_traitsISS_EEEE _ZN3scn2v34impl23custom_word_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERNSF_17basic_string_viewIT0_NSF_11char_traitsISS_EEEE Line | Count | Source | 4862 | 20 | { | 4863 | 20 | if (specs.fill.size() <= sizeof(SourceCharT)) { | 4864 | 20 | return read_string_view_impl( | 4865 | 20 | range, | 4866 | 20 | read_until_code_unit( | 4867 | 20 | range, | 4868 | 20 | [until = specs.fill.template get_code_unit<SourceCharT>()]( | 4869 | 20 | SourceCharT ch) { return ch == until; }), | 4870 | 20 | value); | 4871 | 20 | } | 4872 | 0 | return read_string_view_impl( | 4873 | 0 | range, | 4874 | 0 | read_until_code_units( | 4875 | 0 | range, specs.fill.template get_code_units<SourceCharT>()), | 4876 | 0 | value); | 4877 | 20 | } |
_ZN3scn2v34impl23custom_word_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERNSD_17basic_string_viewIT0_NSD_11char_traitsISQ_EEEE Line | Count | Source | 4862 | 26 | { | 4863 | 26 | if (specs.fill.size() <= sizeof(SourceCharT)) { | 4864 | 26 | return read_string_view_impl( | 4865 | 26 | range, | 4866 | 26 | read_until_code_unit( | 4867 | 26 | range, | 4868 | 26 | [until = specs.fill.template get_code_unit<SourceCharT>()]( | 4869 | 26 | SourceCharT ch) { return ch == until; }), | 4870 | 26 | value); | 4871 | 26 | } | 4872 | 0 | return read_string_view_impl( | 4873 | 0 | range, | 4874 | 0 | read_until_code_units( | 4875 | 0 | range, specs.fill.template get_code_units<SourceCharT>()), | 4876 | 0 | value); | 4877 | 26 | } |
|
4878 | | }; |
4879 | | |
4880 | | #if !SCN_DISABLE_REGEX |
4881 | | template <typename SourceCharT> |
4882 | | class regex_string_reader_impl { |
4883 | | public: |
4884 | | template <typename Range, typename ValueCharT> |
4885 | | auto read(Range range, |
4886 | | std::basic_string_view<SourceCharT> pattern, |
4887 | | detail::regex_flags flags, |
4888 | | std::basic_string<ValueCharT>& value) |
4889 | | -> scan_expected<ranges::const_iterator_t<Range>> |
4890 | 9.88k | { |
4891 | 9.88k | SCN_TRY(it, impl(range, pattern, flags)); |
4892 | 1.66k | return read_string_impl(range, it, value); |
4893 | 9.88k | } Unexecuted instantiation: _ZN3scn2v34impl24regex_string_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_NSI_17basic_string_viewIcNSI_11char_traitsIcEEEENSA_11regex_flagsERNSI_12basic_stringIT0_NSR_ISW_EENSI_9allocatorISW_EEEE Unexecuted instantiation: _ZN3scn2v34impl24regex_string_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_NSG_17basic_string_viewIcNSG_11char_traitsIcEEEENS9_11regex_flagsERNSG_12basic_stringIT0_NSP_ISU_EENSG_9allocatorISU_EEEE _ZN3scn2v34impl24regex_string_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_NSF_17basic_string_viewIcNSF_11char_traitsIcEEEENS0_6detail11regex_flagsERNSF_12basic_stringIT0_NSO_ISU_EENSF_9allocatorISU_EEEE Line | Count | Source | 4890 | 104 | { | 4891 | 104 | SCN_TRY(it, impl(range, pattern, flags)); | 4892 | 0 | return read_string_impl(range, it, value); | 4893 | 104 | } |
_ZN3scn2v34impl24regex_string_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_NSD_17basic_string_viewIcNSD_11char_traitsIcEEEENS0_6detail11regex_flagsERNSD_12basic_stringIT0_NSM_ISS_EENSD_9allocatorISS_EEEE Line | Count | Source | 4890 | 3.10k | { | 4891 | 3.10k | SCN_TRY(it, impl(range, pattern, flags)); | 4892 | 552 | return read_string_impl(range, it, value); | 4893 | 3.10k | } |
Unexecuted instantiation: _ZN3scn2v34impl24regex_string_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_NSI_17basic_string_viewIcNSI_11char_traitsIcEEEENSA_11regex_flagsERNSI_12basic_stringIT0_NSR_ISW_EENSI_9allocatorISW_EEEE Unexecuted instantiation: _ZN3scn2v34impl24regex_string_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_NSG_17basic_string_viewIcNSG_11char_traitsIcEEEENS9_11regex_flagsERNSG_12basic_stringIT0_NSP_ISU_EENSG_9allocatorISU_EEEE _ZN3scn2v34impl24regex_string_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_NSF_17basic_string_viewIcNSF_11char_traitsIcEEEENS0_6detail11regex_flagsERNSF_12basic_stringIT0_NSO_ISU_EENSF_9allocatorISU_EEEE Line | Count | Source | 4890 | 104 | { | 4891 | 104 | SCN_TRY(it, impl(range, pattern, flags)); | 4892 | 0 | return read_string_impl(range, it, value); | 4893 | 104 | } |
_ZN3scn2v34impl24regex_string_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_NSD_17basic_string_viewIcNSD_11char_traitsIcEEEENS0_6detail11regex_flagsERNSD_12basic_stringIT0_NSM_ISS_EENSD_9allocatorISS_EEEE Line | Count | Source | 4890 | 3.10k | { | 4891 | 3.10k | SCN_TRY(it, impl(range, pattern, flags)); | 4892 | 552 | return read_string_impl(range, it, value); | 4893 | 3.10k | } |
Unexecuted instantiation: _ZN3scn2v34impl24regex_string_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_NSI_17basic_string_viewIwNSI_11char_traitsIwEEEENSA_11regex_flagsERNSI_12basic_stringIT0_NSR_ISW_EENSI_9allocatorISW_EEEE Unexecuted instantiation: _ZN3scn2v34impl24regex_string_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_NSG_17basic_string_viewIwNSG_11char_traitsIwEEEENS9_11regex_flagsERNSG_12basic_stringIT0_NSP_ISU_EENSG_9allocatorISU_EEEE _ZN3scn2v34impl24regex_string_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_NSF_17basic_string_viewIwNSF_11char_traitsIwEEEENS0_6detail11regex_flagsERNSF_12basic_stringIT0_NSO_ISU_EENSF_9allocatorISU_EEEE Line | Count | Source | 4890 | 6 | { | 4891 | 6 | SCN_TRY(it, impl(range, pattern, flags)); | 4892 | 0 | return read_string_impl(range, it, value); | 4893 | 6 | } |
_ZN3scn2v34impl24regex_string_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_NSD_17basic_string_viewIwNSD_11char_traitsIwEEEENS0_6detail11regex_flagsERNSD_12basic_stringIT0_NSM_ISS_EENSD_9allocatorISS_EEEE Line | Count | Source | 4890 | 1.72k | { | 4891 | 1.72k | SCN_TRY(it, impl(range, pattern, flags)); | 4892 | 280 | return read_string_impl(range, it, value); | 4893 | 1.72k | } |
Unexecuted instantiation: _ZN3scn2v34impl24regex_string_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_NSI_17basic_string_viewIwNSI_11char_traitsIwEEEENSA_11regex_flagsERNSI_12basic_stringIT0_NSR_ISW_EENSI_9allocatorISW_EEEE Unexecuted instantiation: _ZN3scn2v34impl24regex_string_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_NSG_17basic_string_viewIwNSG_11char_traitsIwEEEENS9_11regex_flagsERNSG_12basic_stringIT0_NSP_ISU_EENSG_9allocatorISU_EEEE _ZN3scn2v34impl24regex_string_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_NSF_17basic_string_viewIwNSF_11char_traitsIwEEEENS0_6detail11regex_flagsERNSF_12basic_stringIT0_NSO_ISU_EENSF_9allocatorISU_EEEE Line | Count | Source | 4890 | 6 | { | 4891 | 6 | SCN_TRY(it, impl(range, pattern, flags)); | 4892 | 0 | return read_string_impl(range, it, value); | 4893 | 6 | } |
_ZN3scn2v34impl24regex_string_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_NSD_17basic_string_viewIwNSD_11char_traitsIwEEEENS0_6detail11regex_flagsERNSD_12basic_stringIT0_NSM_ISS_EENSD_9allocatorISS_EEEE Line | Count | Source | 4890 | 1.72k | { | 4891 | 1.72k | SCN_TRY(it, impl(range, pattern, flags)); | 4892 | 280 | return read_string_impl(range, it, value); | 4893 | 1.72k | } |
|
4894 | | |
4895 | | template <typename Range, typename ValueCharT> |
4896 | | auto read(Range range, |
4897 | | std::basic_string_view<SourceCharT> pattern, |
4898 | | detail::regex_flags flags, |
4899 | | std::basic_string_view<ValueCharT>& value) |
4900 | | -> scan_expected<ranges::const_iterator_t<Range>> |
4901 | 4.94k | { |
4902 | 4.94k | SCN_TRY(it, impl(range, pattern, flags)); |
4903 | 832 | return read_string_view_impl(range, it, value); |
4904 | 4.94k | } Unexecuted instantiation: _ZN3scn2v34impl24regex_string_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_NSI_17basic_string_viewIcNSI_11char_traitsIcEEEENSA_11regex_flagsERNSQ_IT0_NSR_ISV_EEEE Unexecuted instantiation: _ZN3scn2v34impl24regex_string_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_NSG_17basic_string_viewIcNSG_11char_traitsIcEEEENS9_11regex_flagsERNSO_IT0_NSP_IST_EEEE _ZN3scn2v34impl24regex_string_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_NSF_17basic_string_viewIcNSF_11char_traitsIcEEEENS0_6detail11regex_flagsERNSN_IT0_NSO_IST_EEEE Line | Count | Source | 4901 | 104 | { | 4902 | 104 | SCN_TRY(it, impl(range, pattern, flags)); | 4903 | 0 | return read_string_view_impl(range, it, value); | 4904 | 104 | } |
_ZN3scn2v34impl24regex_string_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_NSD_17basic_string_viewIcNSD_11char_traitsIcEEEENS0_6detail11regex_flagsERNSL_IT0_NSM_ISR_EEEE Line | Count | Source | 4901 | 3.10k | { | 4902 | 3.10k | SCN_TRY(it, impl(range, pattern, flags)); | 4903 | 552 | return read_string_view_impl(range, it, value); | 4904 | 3.10k | } |
Unexecuted instantiation: _ZN3scn2v34impl24regex_string_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_NSI_17basic_string_viewIcNSI_11char_traitsIcEEEENSA_11regex_flagsERNSQ_IT0_NSR_ISV_EEEE Unexecuted instantiation: _ZN3scn2v34impl24regex_string_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_NSG_17basic_string_viewIcNSG_11char_traitsIcEEEENS9_11regex_flagsERNSO_IT0_NSP_IST_EEEE Unexecuted instantiation: _ZN3scn2v34impl24regex_string_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_NSF_17basic_string_viewIcNSF_11char_traitsIcEEEENS0_6detail11regex_flagsERNSN_IT0_NSO_IST_EEEE Unexecuted instantiation: _ZN3scn2v34impl24regex_string_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_NSD_17basic_string_viewIcNSD_11char_traitsIcEEEENS0_6detail11regex_flagsERNSL_IT0_NSM_ISR_EEEE Unexecuted instantiation: _ZN3scn2v34impl24regex_string_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_NSI_17basic_string_viewIwNSI_11char_traitsIwEEEENSA_11regex_flagsERNSQ_IT0_NSR_ISV_EEEE Unexecuted instantiation: _ZN3scn2v34impl24regex_string_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_NSG_17basic_string_viewIwNSG_11char_traitsIwEEEENS9_11regex_flagsERNSO_IT0_NSP_IST_EEEE Unexecuted instantiation: _ZN3scn2v34impl24regex_string_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_NSF_17basic_string_viewIwNSF_11char_traitsIwEEEENS0_6detail11regex_flagsERNSN_IT0_NSO_IST_EEEE Unexecuted instantiation: _ZN3scn2v34impl24regex_string_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_NSD_17basic_string_viewIwNSD_11char_traitsIwEEEENS0_6detail11regex_flagsERNSL_IT0_NSM_ISR_EEEE Unexecuted instantiation: _ZN3scn2v34impl24regex_string_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_NSI_17basic_string_viewIwNSI_11char_traitsIwEEEENSA_11regex_flagsERNSQ_IT0_NSR_ISV_EEEE Unexecuted instantiation: _ZN3scn2v34impl24regex_string_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_NSG_17basic_string_viewIwNSG_11char_traitsIwEEEENS9_11regex_flagsERNSO_IT0_NSP_IST_EEEE _ZN3scn2v34impl24regex_string_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_NSF_17basic_string_viewIwNSF_11char_traitsIwEEEENS0_6detail11regex_flagsERNSN_IT0_NSO_IST_EEEE Line | Count | Source | 4901 | 6 | { | 4902 | 6 | SCN_TRY(it, impl(range, pattern, flags)); | 4903 | 0 | return read_string_view_impl(range, it, value); | 4904 | 6 | } |
_ZN3scn2v34impl24regex_string_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_NSD_17basic_string_viewIwNSD_11char_traitsIwEEEENS0_6detail11regex_flagsERNSL_IT0_NSM_ISR_EEEE Line | Count | Source | 4901 | 1.72k | { | 4902 | 1.72k | SCN_TRY(it, impl(range, pattern, flags)); | 4903 | 280 | return read_string_view_impl(range, it, value); | 4904 | 1.72k | } |
|
4905 | | |
4906 | | private: |
4907 | | template <typename Range> |
4908 | | auto impl(Range range, |
4909 | | std::basic_string_view<SourceCharT> pattern, |
4910 | | detail::regex_flags flags) |
4911 | | -> scan_expected<ranges::const_iterator_t<Range>> |
4912 | 14.8k | { |
4913 | 14.8k | if constexpr (!SCN_REGEX_SUPPORTS_WIDE_STRINGS && |
4914 | 14.8k | !std::is_same_v<SourceCharT, char>) { |
4915 | 14.8k | return unexpected_scan_error( |
4916 | 14.8k | scan_error::invalid_scanned_value, |
4917 | 14.8k | "Regex backend doesn't support wide strings as input"); |
4918 | 14.8k | } |
4919 | 14.8k | else { |
4920 | 14.8k | if (!is_entire_source_contiguous(range)) { |
4921 | 330 | return unexpected_scan_error( |
4922 | 330 | scan_error::invalid_scanned_value, |
4923 | 330 | "Cannot use regex with a non-contiguous source " |
4924 | 330 | "range"); |
4925 | 330 | } |
4926 | | |
4927 | 14.5k | auto input = get_as_contiguous(range); |
4928 | 14.5k | SCN_TRY(it, |
4929 | 2.49k | read_regex_string_impl<SourceCharT>(pattern, flags, input)); |
4930 | 2.49k | return ranges::next(range.begin(), |
4931 | 2.49k | ranges::distance(input.begin(), it)); |
4932 | 14.5k | } |
4933 | 14.8k | } Unexecuted instantiation: _ZN3scn2v34impl24regex_string_reader_implIcE4implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_NSI_17basic_string_viewIcNSI_11char_traitsIcEEEENSA_11regex_flagsE Unexecuted instantiation: _ZN3scn2v34impl24regex_string_reader_implIcE4implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_NSG_17basic_string_viewIcNSG_11char_traitsIcEEEENS9_11regex_flagsE _ZN3scn2v34impl24regex_string_reader_implIcE4implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_NSF_17basic_string_viewIcNSF_11char_traitsIcEEEENS0_6detail11regex_flagsE Line | Count | Source | 4912 | 312 | { | 4913 | 312 | if constexpr (!SCN_REGEX_SUPPORTS_WIDE_STRINGS && | 4914 | 312 | !std::is_same_v<SourceCharT, char>) { | 4915 | 312 | return unexpected_scan_error( | 4916 | 312 | scan_error::invalid_scanned_value, | 4917 | 312 | "Regex backend doesn't support wide strings as input"); | 4918 | 312 | } | 4919 | 312 | else { | 4920 | 312 | if (!is_entire_source_contiguous(range)) { | 4921 | 312 | return unexpected_scan_error( | 4922 | 312 | scan_error::invalid_scanned_value, | 4923 | 312 | "Cannot use regex with a non-contiguous source " | 4924 | 312 | "range"); | 4925 | 312 | } | 4926 | | | 4927 | 0 | auto input = get_as_contiguous(range); | 4928 | 0 | SCN_TRY(it, | 4929 | 0 | read_regex_string_impl<SourceCharT>(pattern, flags, input)); | 4930 | 0 | return ranges::next(range.begin(), | 4931 | 0 | ranges::distance(input.begin(), it)); | 4932 | 0 | } | 4933 | 312 | } |
_ZN3scn2v34impl24regex_string_reader_implIcE4implINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_NSD_17basic_string_viewIcNSD_11char_traitsIcEEEENS0_6detail11regex_flagsE Line | Count | Source | 4912 | 9.32k | { | 4913 | 9.32k | if constexpr (!SCN_REGEX_SUPPORTS_WIDE_STRINGS && | 4914 | 9.32k | !std::is_same_v<SourceCharT, char>) { | 4915 | 9.32k | return unexpected_scan_error( | 4916 | 9.32k | scan_error::invalid_scanned_value, | 4917 | 9.32k | "Regex backend doesn't support wide strings as input"); | 4918 | 9.32k | } | 4919 | 9.32k | else { | 4920 | 9.32k | if (!is_entire_source_contiguous(range)) { | 4921 | 0 | return unexpected_scan_error( | 4922 | 0 | scan_error::invalid_scanned_value, | 4923 | 0 | "Cannot use regex with a non-contiguous source " | 4924 | 0 | "range"); | 4925 | 0 | } | 4926 | | | 4927 | 9.32k | auto input = get_as_contiguous(range); | 4928 | 9.32k | SCN_TRY(it, | 4929 | 1.65k | read_regex_string_impl<SourceCharT>(pattern, flags, input)); | 4930 | 1.65k | return ranges::next(range.begin(), | 4931 | 1.65k | ranges::distance(input.begin(), it)); | 4932 | 9.32k | } | 4933 | 9.32k | } |
Unexecuted instantiation: _ZN3scn2v34impl24regex_string_reader_implIwE4implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_NSI_17basic_string_viewIwNSI_11char_traitsIwEEEENSA_11regex_flagsE Unexecuted instantiation: _ZN3scn2v34impl24regex_string_reader_implIwE4implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_NSG_17basic_string_viewIwNSG_11char_traitsIwEEEENS9_11regex_flagsE _ZN3scn2v34impl24regex_string_reader_implIwE4implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_NSF_17basic_string_viewIwNSF_11char_traitsIwEEEENS0_6detail11regex_flagsE Line | Count | Source | 4912 | 18 | { | 4913 | 18 | if constexpr (!SCN_REGEX_SUPPORTS_WIDE_STRINGS && | 4914 | 18 | !std::is_same_v<SourceCharT, char>) { | 4915 | 18 | return unexpected_scan_error( | 4916 | 18 | scan_error::invalid_scanned_value, | 4917 | 18 | "Regex backend doesn't support wide strings as input"); | 4918 | 18 | } | 4919 | 18 | else { | 4920 | 18 | if (!is_entire_source_contiguous(range)) { | 4921 | 18 | return unexpected_scan_error( | 4922 | 18 | scan_error::invalid_scanned_value, | 4923 | 18 | "Cannot use regex with a non-contiguous source " | 4924 | 18 | "range"); | 4925 | 18 | } | 4926 | | | 4927 | 0 | auto input = get_as_contiguous(range); | 4928 | 0 | SCN_TRY(it, | 4929 | 0 | read_regex_string_impl<SourceCharT>(pattern, flags, input)); | 4930 | 0 | return ranges::next(range.begin(), | 4931 | 0 | ranges::distance(input.begin(), it)); | 4932 | 0 | } | 4933 | 18 | } |
_ZN3scn2v34impl24regex_string_reader_implIwE4implINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_NSD_17basic_string_viewIwNSD_11char_traitsIwEEEENS0_6detail11regex_flagsE Line | Count | Source | 4912 | 5.17k | { | 4913 | 5.17k | if constexpr (!SCN_REGEX_SUPPORTS_WIDE_STRINGS && | 4914 | 5.17k | !std::is_same_v<SourceCharT, char>) { | 4915 | 5.17k | return unexpected_scan_error( | 4916 | 5.17k | scan_error::invalid_scanned_value, | 4917 | 5.17k | "Regex backend doesn't support wide strings as input"); | 4918 | 5.17k | } | 4919 | 5.17k | else { | 4920 | 5.17k | if (!is_entire_source_contiguous(range)) { | 4921 | 0 | return unexpected_scan_error( | 4922 | 0 | scan_error::invalid_scanned_value, | 4923 | 0 | "Cannot use regex with a non-contiguous source " | 4924 | 0 | "range"); | 4925 | 0 | } | 4926 | | | 4927 | 5.17k | auto input = get_as_contiguous(range); | 4928 | 5.17k | SCN_TRY(it, | 4929 | 840 | read_regex_string_impl<SourceCharT>(pattern, flags, input)); | 4930 | 840 | return ranges::next(range.begin(), | 4931 | 840 | ranges::distance(input.begin(), it)); | 4932 | 5.17k | } | 4933 | 5.17k | } |
|
4934 | | }; |
4935 | | #endif |
4936 | | |
4937 | | template <typename SourceCharT> |
4938 | | class character_reader_impl { |
4939 | | public: |
4940 | | // Note: no localized version, |
4941 | | // since it's equivalent in behavior |
4942 | | |
4943 | | template <typename Range, typename ValueCharT> |
4944 | | auto read(Range range, std::basic_string<ValueCharT>& value) |
4945 | | -> scan_expected<ranges::const_iterator_t<Range>> |
4946 | 100 | { |
4947 | 100 | return read_impl( |
4948 | 100 | range, |
4949 | 100 | [&](const auto& rng) { |
4950 | 100 | return read_string_impl(rng, read_all(rng), value); |
4951 | 100 | }, Unexecuted instantiation: _ZZN3scn2v34impl21character_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RNSI_12basic_stringIT0_NSI_11char_traitsISR_EENSI_9allocatorISR_EEEEENKUlRKSK_E_clISG_EEDaSZ_ _ZZN3scn2v34impl21character_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RNSF_12basic_stringIT0_NSF_11char_traitsISO_EENSF_9allocatorISO_EEEEENKUlRKSH_E_clISD_EEDaSW_ Line | Count | Source | 4949 | 32 | [&](const auto& rng) { | 4950 | 32 | return read_string_impl(rng, read_all(rng), value); | 4951 | 32 | }, |
Unexecuted instantiation: _ZZN3scn2v34impl21character_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RNSI_12basic_stringIT0_NSI_11char_traitsISR_EENSI_9allocatorISR_EEEEENKUlRKSK_E_clISG_EEDaSZ_ _ZZN3scn2v34impl21character_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RNSF_12basic_stringIT0_NSF_11char_traitsISO_EENSF_9allocatorISO_EEEEENKUlRKSH_E_clISD_EEDaSW_ Line | Count | Source | 4949 | 32 | [&](const auto& rng) { | 4950 | 32 | return read_string_impl(rng, read_all(rng), value); | 4951 | 32 | }, |
Unexecuted instantiation: _ZZN3scn2v34impl21character_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RNSI_12basic_stringIT0_NSI_11char_traitsISR_EENSI_9allocatorISR_EEEEENKUlRKSK_E_clISG_EEDaSZ_ _ZZN3scn2v34impl21character_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RNSF_12basic_stringIT0_NSF_11char_traitsISO_EENSF_9allocatorISO_EEEEENKUlRKSH_E_clISD_EEDaSW_ Line | Count | Source | 4949 | 18 | [&](const auto& rng) { | 4950 | 18 | return read_string_impl(rng, read_all(rng), value); | 4951 | 18 | }, |
Unexecuted instantiation: _ZZN3scn2v34impl21character_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RNSI_12basic_stringIT0_NSI_11char_traitsISR_EENSI_9allocatorISR_EEEEENKUlRKSK_E_clISG_EEDaSZ_ _ZZN3scn2v34impl21character_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RNSF_12basic_stringIT0_NSF_11char_traitsISO_EENSF_9allocatorISO_EEEEENKUlRKSH_E_clISD_EEDaSW_ Line | Count | Source | 4949 | 18 | [&](const auto& rng) { | 4950 | 18 | return read_string_impl(rng, read_all(rng), value); | 4951 | 18 | }, |
|
4952 | 100 | detail::priority_tag<1>{}); |
4953 | 100 | } Unexecuted instantiation: _ZN3scn2v34impl21character_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RNSI_12basic_stringIT0_NSI_11char_traitsISR_EENSI_9allocatorISR_EEEE Unexecuted instantiation: _ZN3scn2v34impl21character_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RNSG_12basic_stringIT0_NSG_11char_traitsISP_EENSG_9allocatorISP_EEEE _ZN3scn2v34impl21character_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RNSF_12basic_stringIT0_NSF_11char_traitsISO_EENSF_9allocatorISO_EEEE Line | Count | Source | 4946 | 32 | { | 4947 | 32 | return read_impl( | 4948 | 32 | range, | 4949 | 32 | [&](const auto& rng) { | 4950 | 32 | return read_string_impl(rng, read_all(rng), value); | 4951 | 32 | }, | 4952 | 32 | detail::priority_tag<1>{}); | 4953 | 32 | } |
Unexecuted instantiation: _ZN3scn2v34impl21character_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RNSD_12basic_stringIT0_NSD_11char_traitsISM_EENSD_9allocatorISM_EEEE Unexecuted instantiation: _ZN3scn2v34impl21character_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RNSI_12basic_stringIT0_NSI_11char_traitsISR_EENSI_9allocatorISR_EEEE Unexecuted instantiation: _ZN3scn2v34impl21character_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RNSG_12basic_stringIT0_NSG_11char_traitsISP_EENSG_9allocatorISP_EEEE _ZN3scn2v34impl21character_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RNSF_12basic_stringIT0_NSF_11char_traitsISO_EENSF_9allocatorISO_EEEE Line | Count | Source | 4946 | 32 | { | 4947 | 32 | return read_impl( | 4948 | 32 | range, | 4949 | 32 | [&](const auto& rng) { | 4950 | 32 | return read_string_impl(rng, read_all(rng), value); | 4951 | 32 | }, | 4952 | 32 | detail::priority_tag<1>{}); | 4953 | 32 | } |
Unexecuted instantiation: _ZN3scn2v34impl21character_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RNSD_12basic_stringIT0_NSD_11char_traitsISM_EENSD_9allocatorISM_EEEE Unexecuted instantiation: _ZN3scn2v34impl21character_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RNSI_12basic_stringIT0_NSI_11char_traitsISR_EENSI_9allocatorISR_EEEE Unexecuted instantiation: _ZN3scn2v34impl21character_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RNSG_12basic_stringIT0_NSG_11char_traitsISP_EENSG_9allocatorISP_EEEE _ZN3scn2v34impl21character_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RNSF_12basic_stringIT0_NSF_11char_traitsISO_EENSF_9allocatorISO_EEEE Line | Count | Source | 4946 | 18 | { | 4947 | 18 | return read_impl( | 4948 | 18 | range, | 4949 | 18 | [&](const auto& rng) { | 4950 | 18 | return read_string_impl(rng, read_all(rng), value); | 4951 | 18 | }, | 4952 | 18 | detail::priority_tag<1>{}); | 4953 | 18 | } |
Unexecuted instantiation: _ZN3scn2v34impl21character_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RNSD_12basic_stringIT0_NSD_11char_traitsISM_EENSD_9allocatorISM_EEEE Unexecuted instantiation: _ZN3scn2v34impl21character_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RNSI_12basic_stringIT0_NSI_11char_traitsISR_EENSI_9allocatorISR_EEEE Unexecuted instantiation: _ZN3scn2v34impl21character_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RNSG_12basic_stringIT0_NSG_11char_traitsISP_EENSG_9allocatorISP_EEEE _ZN3scn2v34impl21character_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RNSF_12basic_stringIT0_NSF_11char_traitsISO_EENSF_9allocatorISO_EEEE Line | Count | Source | 4946 | 18 | { | 4947 | 18 | return read_impl( | 4948 | 18 | range, | 4949 | 18 | [&](const auto& rng) { | 4950 | 18 | return read_string_impl(rng, read_all(rng), value); | 4951 | 18 | }, | 4952 | 18 | detail::priority_tag<1>{}); | 4953 | 18 | } |
Unexecuted instantiation: _ZN3scn2v34impl21character_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RNSD_12basic_stringIT0_NSD_11char_traitsISM_EENSD_9allocatorISM_EEEE |
4954 | | |
4955 | | template <typename Range, typename ValueCharT> |
4956 | | auto read(Range range, std::basic_string_view<ValueCharT>& value) |
4957 | | -> scan_expected<ranges::const_iterator_t<Range>> |
4958 | 50 | { |
4959 | 50 | return read_impl( |
4960 | 50 | range, |
4961 | 50 | [&](const auto& rng) { |
4962 | 50 | return read_string_view_impl(rng, read_all(rng), value); |
4963 | 50 | }, Unexecuted instantiation: _ZZN3scn2v34impl21character_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RNSI_17basic_string_viewIT0_NSI_11char_traitsISR_EEEEENKUlRKSK_E_clISG_EEDaSX_ _ZZN3scn2v34impl21character_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RNSF_17basic_string_viewIT0_NSF_11char_traitsISO_EEEEENKUlRKSH_E_clISD_EEDaSU_ Line | Count | Source | 4961 | 32 | [&](const auto& rng) { | 4962 | 32 | return read_string_view_impl(rng, read_all(rng), value); | 4963 | 32 | }, |
Unexecuted instantiation: _ZZN3scn2v34impl21character_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RNSI_17basic_string_viewIT0_NSI_11char_traitsISR_EEEEENKUlRKSK_E_clISG_EEDaSX_ Unexecuted instantiation: _ZZN3scn2v34impl21character_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RNSF_17basic_string_viewIT0_NSF_11char_traitsISO_EEEEENKUlRKSH_E_clISD_EEDaSU_ Unexecuted instantiation: _ZZN3scn2v34impl21character_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RNSI_17basic_string_viewIT0_NSI_11char_traitsISR_EEEEENKUlRKSK_E_clISG_EEDaSX_ Unexecuted instantiation: _ZZN3scn2v34impl21character_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RNSF_17basic_string_viewIT0_NSF_11char_traitsISO_EEEEENKUlRKSH_E_clISD_EEDaSU_ Unexecuted instantiation: _ZZN3scn2v34impl21character_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RNSI_17basic_string_viewIT0_NSI_11char_traitsISR_EEEEENKUlRKSK_E_clISG_EEDaSX_ _ZZN3scn2v34impl21character_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RNSF_17basic_string_viewIT0_NSF_11char_traitsISO_EEEEENKUlRKSH_E_clISD_EEDaSU_ Line | Count | Source | 4961 | 18 | [&](const auto& rng) { | 4962 | 18 | return read_string_view_impl(rng, read_all(rng), value); | 4963 | 18 | }, |
|
4964 | 50 | detail::priority_tag<1>{}); |
4965 | 50 | } Unexecuted instantiation: _ZN3scn2v34impl21character_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RNSI_17basic_string_viewIT0_NSI_11char_traitsISR_EEEE Unexecuted instantiation: _ZN3scn2v34impl21character_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RNSG_17basic_string_viewIT0_NSG_11char_traitsISP_EEEE _ZN3scn2v34impl21character_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RNSF_17basic_string_viewIT0_NSF_11char_traitsISO_EEEE Line | Count | Source | 4958 | 32 | { | 4959 | 32 | return read_impl( | 4960 | 32 | range, | 4961 | 32 | [&](const auto& rng) { | 4962 | 32 | return read_string_view_impl(rng, read_all(rng), value); | 4963 | 32 | }, | 4964 | 32 | detail::priority_tag<1>{}); | 4965 | 32 | } |
Unexecuted instantiation: _ZN3scn2v34impl21character_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RNSD_17basic_string_viewIT0_NSD_11char_traitsISM_EEEE Unexecuted instantiation: _ZN3scn2v34impl21character_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RNSI_17basic_string_viewIT0_NSI_11char_traitsISR_EEEE Unexecuted instantiation: _ZN3scn2v34impl21character_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RNSG_17basic_string_viewIT0_NSG_11char_traitsISP_EEEE Unexecuted instantiation: _ZN3scn2v34impl21character_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RNSF_17basic_string_viewIT0_NSF_11char_traitsISO_EEEE Unexecuted instantiation: _ZN3scn2v34impl21character_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RNSD_17basic_string_viewIT0_NSD_11char_traitsISM_EEEE Unexecuted instantiation: _ZN3scn2v34impl21character_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RNSI_17basic_string_viewIT0_NSI_11char_traitsISR_EEEE Unexecuted instantiation: _ZN3scn2v34impl21character_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RNSG_17basic_string_viewIT0_NSG_11char_traitsISP_EEEE Unexecuted instantiation: _ZN3scn2v34impl21character_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RNSF_17basic_string_viewIT0_NSF_11char_traitsISO_EEEE Unexecuted instantiation: _ZN3scn2v34impl21character_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RNSD_17basic_string_viewIT0_NSD_11char_traitsISM_EEEE Unexecuted instantiation: _ZN3scn2v34impl21character_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RNSI_17basic_string_viewIT0_NSI_11char_traitsISR_EEEE Unexecuted instantiation: _ZN3scn2v34impl21character_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RNSG_17basic_string_viewIT0_NSG_11char_traitsISP_EEEE _ZN3scn2v34impl21character_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RNSF_17basic_string_viewIT0_NSF_11char_traitsISO_EEEE Line | Count | Source | 4958 | 18 | { | 4959 | 18 | return read_impl( | 4960 | 18 | range, | 4961 | 18 | [&](const auto& rng) { | 4962 | 18 | return read_string_view_impl(rng, read_all(rng), value); | 4963 | 18 | }, | 4964 | 18 | detail::priority_tag<1>{}); | 4965 | 18 | } |
Unexecuted instantiation: _ZN3scn2v34impl21character_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RNSD_17basic_string_viewIT0_NSD_11char_traitsISM_EEEE |
4966 | | |
4967 | | private: |
4968 | | template <typename View, typename ReadCb> |
4969 | | static auto read_impl(const take_width_view<View>& range, |
4970 | | ReadCb&& read_cb, |
4971 | | detail::priority_tag<1>) |
4972 | | -> scan_expected<ranges::const_iterator_t<take_width_view<View>&>> |
4973 | 150 | { |
4974 | 150 | return read_cb(range); |
4975 | 150 | } Unexecuted instantiation: _ZN3scn2v34impl21character_reader_implIcE9read_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEZNS3_4readINS1_15take_width_viewISE_EEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RNSJ_12basic_stringIT0_NSJ_11char_traitsISS_EENSJ_9allocatorISS_EEEEEUlRKSL_E_EENSI_IDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSK_IRNSG_ISL_EEE4typeEEEEEEERKS12_OSS_NS9_12priority_tagILm1EEE _ZN3scn2v34impl21character_reader_implIcE9read_implINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEZNS3_4readINS1_15take_width_viewISB_EEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RNSG_12basic_stringIT0_NSG_11char_traitsISP_EENSG_9allocatorISP_EEEEEUlRKSI_E_EENSF_IDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSH_IRNSD_ISI_EEE4typeEEEEEEERKSZ_OSP_NS0_6detail12priority_tagILm1EEE Line | Count | Source | 4973 | 32 | { | 4974 | 32 | return read_cb(range); | 4975 | 32 | } |
Unexecuted instantiation: _ZN3scn2v34impl21character_reader_implIcE9read_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEZNS3_4readINS1_15take_width_viewISE_EEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RNSJ_12basic_stringIT0_NSJ_11char_traitsISS_EENSJ_9allocatorISS_EEEEEUlRKSL_E_EENSI_IDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSK_IRNSG_ISL_EEE4typeEEEEEEERKS12_OSS_NS9_12priority_tagILm1EEE _ZN3scn2v34impl21character_reader_implIcE9read_implINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEZNS3_4readINS1_15take_width_viewISB_EEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RNSG_12basic_stringIT0_NSG_11char_traitsISP_EENSG_9allocatorISP_EEEEEUlRKSI_E_EENSF_IDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSH_IRNSD_ISI_EEE4typeEEEEEEERKSZ_OSP_NS0_6detail12priority_tagILm1EEE Line | Count | Source | 4973 | 32 | { | 4974 | 32 | return read_cb(range); | 4975 | 32 | } |
Unexecuted instantiation: _ZN3scn2v34impl21character_reader_implIcE9read_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEZNS3_4readINS1_15take_width_viewISE_EEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RNSJ_17basic_string_viewIT0_NSJ_11char_traitsISS_EEEEEUlRKSL_E_EENSI_IDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSK_IRNSG_ISL_EEE4typeEEEEEEERKS10_OSS_NS9_12priority_tagILm1EEE _ZN3scn2v34impl21character_reader_implIcE9read_implINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEZNS3_4readINS1_15take_width_viewISB_EEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RNSG_17basic_string_viewIT0_NSG_11char_traitsISP_EEEEEUlRKSI_E_EENSF_IDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSH_IRNSD_ISI_EEE4typeEEEEEEERKSX_OSP_NS0_6detail12priority_tagILm1EEE Line | Count | Source | 4973 | 32 | { | 4974 | 32 | return read_cb(range); | 4975 | 32 | } |
Unexecuted instantiation: _ZN3scn2v34impl21character_reader_implIcE9read_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEZNS3_4readINS1_15take_width_viewISE_EEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RNSJ_17basic_string_viewIT0_NSJ_11char_traitsISS_EEEEEUlRKSL_E_EENSI_IDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSK_IRNSG_ISL_EEE4typeEEEEEEERKS10_OSS_NS9_12priority_tagILm1EEE Unexecuted instantiation: _ZN3scn2v34impl21character_reader_implIcE9read_implINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEZNS3_4readINS1_15take_width_viewISB_EEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RNSG_17basic_string_viewIT0_NSG_11char_traitsISP_EEEEEUlRKSI_E_EENSF_IDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSH_IRNSD_ISI_EEE4typeEEEEEEERKSX_OSP_NS0_6detail12priority_tagILm1EEE Unexecuted instantiation: _ZN3scn2v34impl21character_reader_implIwE9read_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEZNS3_4readINS1_15take_width_viewISE_EEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RNSJ_12basic_stringIT0_NSJ_11char_traitsISS_EENSJ_9allocatorISS_EEEEEUlRKSL_E_EENSI_IDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSK_IRNSG_ISL_EEE4typeEEEEEEERKS12_OSS_NS9_12priority_tagILm1EEE _ZN3scn2v34impl21character_reader_implIwE9read_implINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEZNS3_4readINS1_15take_width_viewISB_EEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RNSG_12basic_stringIT0_NSG_11char_traitsISP_EENSG_9allocatorISP_EEEEEUlRKSI_E_EENSF_IDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSH_IRNSD_ISI_EEE4typeEEEEEEERKSZ_OSP_NS0_6detail12priority_tagILm1EEE Line | Count | Source | 4973 | 18 | { | 4974 | 18 | return read_cb(range); | 4975 | 18 | } |
Unexecuted instantiation: _ZN3scn2v34impl21character_reader_implIwE9read_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEZNS3_4readINS1_15take_width_viewISE_EEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RNSJ_12basic_stringIT0_NSJ_11char_traitsISS_EENSJ_9allocatorISS_EEEEEUlRKSL_E_EENSI_IDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSK_IRNSG_ISL_EEE4typeEEEEEEERKS12_OSS_NS9_12priority_tagILm1EEE _ZN3scn2v34impl21character_reader_implIwE9read_implINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEZNS3_4readINS1_15take_width_viewISB_EEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RNSG_12basic_stringIT0_NSG_11char_traitsISP_EENSG_9allocatorISP_EEEEEUlRKSI_E_EENSF_IDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSH_IRNSD_ISI_EEE4typeEEEEEEERKSZ_OSP_NS0_6detail12priority_tagILm1EEE Line | Count | Source | 4973 | 18 | { | 4974 | 18 | return read_cb(range); | 4975 | 18 | } |
Unexecuted instantiation: _ZN3scn2v34impl21character_reader_implIwE9read_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEZNS3_4readINS1_15take_width_viewISE_EEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RNSJ_17basic_string_viewIT0_NSJ_11char_traitsISS_EEEEEUlRKSL_E_EENSI_IDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSK_IRNSG_ISL_EEE4typeEEEEEEERKS10_OSS_NS9_12priority_tagILm1EEE Unexecuted instantiation: _ZN3scn2v34impl21character_reader_implIwE9read_implINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEZNS3_4readINS1_15take_width_viewISB_EEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RNSG_17basic_string_viewIT0_NSG_11char_traitsISP_EEEEEUlRKSI_E_EENSF_IDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSH_IRNSD_ISI_EEE4typeEEEEEEERKSX_OSP_NS0_6detail12priority_tagILm1EEE Unexecuted instantiation: _ZN3scn2v34impl21character_reader_implIwE9read_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEZNS3_4readINS1_15take_width_viewISE_EEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESL_RNSJ_17basic_string_viewIT0_NSJ_11char_traitsISS_EEEEEUlRKSL_E_EENSI_IDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSK_IRNSG_ISL_EEE4typeEEEEEEERKS10_OSS_NS9_12priority_tagILm1EEE _ZN3scn2v34impl21character_reader_implIwE9read_implINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEZNS3_4readINS1_15take_width_viewISB_EEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RNSG_17basic_string_viewIT0_NSG_11char_traitsISP_EEEEEUlRKSI_E_EENSF_IDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSH_IRNSD_ISI_EEE4typeEEEEEEERKSX_OSP_NS0_6detail12priority_tagILm1EEE Line | Count | Source | 4973 | 18 | { | 4974 | 18 | return read_cb(range); | 4975 | 18 | } |
|
4976 | | |
4977 | | template <typename Range, typename ReadCb> |
4978 | | static auto read_impl(Range, ReadCb&&, detail::priority_tag<0>) |
4979 | | -> scan_expected<ranges::const_iterator_t<Range>> |
4980 | 0 | { |
4981 | 0 | return unexpected_scan_error( |
4982 | 0 | scan_error::invalid_scanned_value, |
4983 | 0 | "character_reader requires take_width_view"); |
4984 | 0 | } Unexecuted instantiation: _ZN3scn2v34impl21character_reader_implIcE9read_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEZNS3_4readISE_cEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_RNSH_12basic_stringIT0_NSH_11char_traitsISQ_EENSH_9allocatorISQ_EEEEEUlRKSJ_E_EESO_SJ_OSQ_NS9_12priority_tagILm0EEE Unexecuted instantiation: _ZN3scn2v34impl21character_reader_implIcE9read_implINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEZNS3_4readISB_cEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_RNSE_12basic_stringIT0_NSE_11char_traitsISN_EENSE_9allocatorISN_EEEEEUlRKSG_E_EESL_SG_OSN_NS0_6detail12priority_tagILm0EEE Unexecuted instantiation: _ZN3scn2v34impl21character_reader_implIcE9read_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEZNS3_4readISE_wEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_RNSH_12basic_stringIT0_NSH_11char_traitsISQ_EENSH_9allocatorISQ_EEEEEUlRKSJ_E_EESO_SJ_OSQ_NS9_12priority_tagILm0EEE Unexecuted instantiation: _ZN3scn2v34impl21character_reader_implIcE9read_implINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEZNS3_4readISB_wEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_RNSE_12basic_stringIT0_NSE_11char_traitsISN_EENSE_9allocatorISN_EEEEEUlRKSG_E_EESL_SG_OSN_NS0_6detail12priority_tagILm0EEE Unexecuted instantiation: _ZN3scn2v34impl21character_reader_implIcE9read_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEZNS3_4readISE_cEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_RNSH_17basic_string_viewIT0_NSH_11char_traitsISQ_EEEEEUlRKSJ_E_EESO_SJ_OSQ_NS9_12priority_tagILm0EEE Unexecuted instantiation: _ZN3scn2v34impl21character_reader_implIcE9read_implINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEZNS3_4readISB_cEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_RNSE_17basic_string_viewIT0_NSE_11char_traitsISN_EEEEEUlRKSG_E_EESL_SG_OSN_NS0_6detail12priority_tagILm0EEE Unexecuted instantiation: _ZN3scn2v34impl21character_reader_implIcE9read_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEZNS3_4readISE_wEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_RNSH_17basic_string_viewIT0_NSH_11char_traitsISQ_EEEEEUlRKSJ_E_EESO_SJ_OSQ_NS9_12priority_tagILm0EEE Unexecuted instantiation: _ZN3scn2v34impl21character_reader_implIcE9read_implINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEZNS3_4readISB_wEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_RNSE_17basic_string_viewIT0_NSE_11char_traitsISN_EEEEEUlRKSG_E_EESL_SG_OSN_NS0_6detail12priority_tagILm0EEE Unexecuted instantiation: _ZN3scn2v34impl21character_reader_implIwE9read_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEZNS3_4readISE_cEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_RNSH_12basic_stringIT0_NSH_11char_traitsISQ_EENSH_9allocatorISQ_EEEEEUlRKSJ_E_EESO_SJ_OSQ_NS9_12priority_tagILm0EEE Unexecuted instantiation: _ZN3scn2v34impl21character_reader_implIwE9read_implINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEZNS3_4readISB_cEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_RNSE_12basic_stringIT0_NSE_11char_traitsISN_EENSE_9allocatorISN_EEEEEUlRKSG_E_EESL_SG_OSN_NS0_6detail12priority_tagILm0EEE Unexecuted instantiation: _ZN3scn2v34impl21character_reader_implIwE9read_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEZNS3_4readISE_wEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_RNSH_12basic_stringIT0_NSH_11char_traitsISQ_EENSH_9allocatorISQ_EEEEEUlRKSJ_E_EESO_SJ_OSQ_NS9_12priority_tagILm0EEE Unexecuted instantiation: _ZN3scn2v34impl21character_reader_implIwE9read_implINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEZNS3_4readISB_wEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_RNSE_12basic_stringIT0_NSE_11char_traitsISN_EENSE_9allocatorISN_EEEEEUlRKSG_E_EESL_SG_OSN_NS0_6detail12priority_tagILm0EEE Unexecuted instantiation: _ZN3scn2v34impl21character_reader_implIwE9read_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEZNS3_4readISE_cEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_RNSH_17basic_string_viewIT0_NSH_11char_traitsISQ_EEEEEUlRKSJ_E_EESO_SJ_OSQ_NS9_12priority_tagILm0EEE Unexecuted instantiation: _ZN3scn2v34impl21character_reader_implIwE9read_implINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEZNS3_4readISB_cEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_RNSE_17basic_string_viewIT0_NSE_11char_traitsISN_EEEEEUlRKSG_E_EESL_SG_OSN_NS0_6detail12priority_tagILm0EEE Unexecuted instantiation: _ZN3scn2v34impl21character_reader_implIwE9read_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEZNS3_4readISE_wEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_RNSH_17basic_string_viewIT0_NSH_11char_traitsISQ_EEEEEUlRKSJ_E_EESO_SJ_OSQ_NS9_12priority_tagILm0EEE Unexecuted instantiation: _ZN3scn2v34impl21character_reader_implIwE9read_implINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEZNS3_4readISB_wEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_RNSE_17basic_string_viewIT0_NSE_11char_traitsISN_EEEEEUlRKSG_E_EESL_SG_OSN_NS0_6detail12priority_tagILm0EEE |
4985 | | }; |
4986 | | |
4987 | | struct nonascii_specs_handler { |
4988 | | void on_charset_single(char32_t cp) |
4989 | 393k | { |
4990 | 393k | on_charset_range(cp, cp + 1); |
4991 | 393k | } |
4992 | | |
4993 | | void on_charset_range(char32_t begin, char32_t end) |
4994 | 396k | { |
4995 | 396k | if (end <= 127) { |
4996 | 212k | return; |
4997 | 212k | } |
4998 | | |
4999 | 32.3M | for (auto& elem : extra_ranges) { |
5000 | | // TODO: check for overlap |
5001 | 32.3M | if (elem.first == end) { |
5002 | 552 | elem.first = begin; |
5003 | 552 | return; |
5004 | 552 | } |
5005 | | |
5006 | 32.3M | if (elem.second == begin) { |
5007 | 1.18k | elem.second = end; |
5008 | 1.18k | return; |
5009 | 1.18k | } |
5010 | 32.3M | } |
5011 | | |
5012 | 183k | extra_ranges.push_back(std::make_pair(begin, end)); |
5013 | 183k | } |
5014 | | |
5015 | | constexpr void on_charset_inverted() const |
5016 | 402 | { |
5017 | | // no-op |
5018 | 402 | } |
5019 | | |
5020 | | constexpr void on_error(const char* msg) |
5021 | 0 | { |
5022 | 0 | on_error(scan_error{scan_error::invalid_format_string, msg}); |
5023 | 0 | } |
5024 | | constexpr void on_error(scan_error e) |
5025 | 0 | { |
5026 | 0 | SCN_UNLIKELY_ATTR |
5027 | 0 | err = e; |
5028 | 0 | } |
5029 | | |
5030 | | constexpr explicit operator bool() const |
5031 | 402k | { |
5032 | 402k | return static_cast<bool>(err); |
5033 | 402k | } |
5034 | | |
5035 | | std::vector<std::pair<char32_t, char32_t>> extra_ranges; |
5036 | | scan_error err; |
5037 | | }; |
5038 | | |
5039 | | template <typename SourceCharT> |
5040 | | class character_set_reader_impl { |
5041 | | public: |
5042 | | template <typename Range, typename ValueCharT> |
5043 | | auto read(Range range, |
5044 | | const detail::format_specs& specs, |
5045 | | std::basic_string<ValueCharT>& value) |
5046 | | -> scan_expected<ranges::const_iterator_t<Range>> |
5047 | 2.39k | { |
5048 | 2.39k | auto it = read_source_impl(range, {specs}); |
5049 | 2.39k | if (SCN_UNLIKELY(!it)) { |
5050 | 704 | return unexpected(it.error()); |
5051 | 704 | } |
5052 | | |
5053 | 1.69k | return read_string_impl(range, *it, value); |
5054 | 2.39k | } Unexecuted instantiation: _ZN3scn2v34impl25character_set_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERNSI_12basic_stringIT0_NSI_11char_traitsISU_EENSI_9allocatorISU_EEEE Unexecuted instantiation: _ZN3scn2v34impl25character_set_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERNSG_12basic_stringIT0_NSG_11char_traitsISS_EENSG_9allocatorISS_EEEE _ZN3scn2v34impl25character_set_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERNSF_12basic_stringIT0_NSF_11char_traitsISS_EENSF_9allocatorISS_EEEE Line | Count | Source | 5047 | 212 | { | 5048 | 212 | auto it = read_source_impl(range, {specs}); | 5049 | 212 | if (SCN_UNLIKELY(!it)) { | 5050 | 12 | return unexpected(it.error()); | 5051 | 12 | } | 5052 | | | 5053 | 200 | return read_string_impl(range, *it, value); | 5054 | 212 | } |
_ZN3scn2v34impl25character_set_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERNSD_12basic_stringIT0_NSD_11char_traitsISQ_EENSD_9allocatorISQ_EEEE Line | Count | Source | 5047 | 872 | { | 5048 | 872 | auto it = read_source_impl(range, {specs}); | 5049 | 872 | if (SCN_UNLIKELY(!it)) { | 5050 | 318 | return unexpected(it.error()); | 5051 | 318 | } | 5052 | | | 5053 | 554 | return read_string_impl(range, *it, value); | 5054 | 872 | } |
Unexecuted instantiation: _ZN3scn2v34impl25character_set_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERNSI_12basic_stringIT0_NSI_11char_traitsISU_EENSI_9allocatorISU_EEEE Unexecuted instantiation: _ZN3scn2v34impl25character_set_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERNSG_12basic_stringIT0_NSG_11char_traitsISS_EENSG_9allocatorISS_EEEE _ZN3scn2v34impl25character_set_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERNSF_12basic_stringIT0_NSF_11char_traitsISS_EENSF_9allocatorISS_EEEE Line | Count | Source | 5047 | 212 | { | 5048 | 212 | auto it = read_source_impl(range, {specs}); | 5049 | 212 | if (SCN_UNLIKELY(!it)) { | 5050 | 12 | return unexpected(it.error()); | 5051 | 12 | } | 5052 | | | 5053 | 200 | return read_string_impl(range, *it, value); | 5054 | 212 | } |
_ZN3scn2v34impl25character_set_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERNSD_12basic_stringIT0_NSD_11char_traitsISQ_EENSD_9allocatorISQ_EEEE Line | Count | Source | 5047 | 872 | { | 5048 | 872 | auto it = read_source_impl(range, {specs}); | 5049 | 872 | if (SCN_UNLIKELY(!it)) { | 5050 | 318 | return unexpected(it.error()); | 5051 | 318 | } | 5052 | | | 5053 | 554 | return read_string_impl(range, *it, value); | 5054 | 872 | } |
Unexecuted instantiation: _ZN3scn2v34impl25character_set_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERNSI_12basic_stringIT0_NSI_11char_traitsISU_EENSI_9allocatorISU_EEEE Unexecuted instantiation: _ZN3scn2v34impl25character_set_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERNSG_12basic_stringIT0_NSG_11char_traitsISS_EENSG_9allocatorISS_EEEE Unexecuted instantiation: _ZN3scn2v34impl25character_set_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERNSF_12basic_stringIT0_NSF_11char_traitsISS_EENSF_9allocatorISS_EEEE _ZN3scn2v34impl25character_set_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERNSD_12basic_stringIT0_NSD_11char_traitsISQ_EENSD_9allocatorISQ_EEEE Line | Count | Source | 5047 | 114 | { | 5048 | 114 | auto it = read_source_impl(range, {specs}); | 5049 | 114 | if (SCN_UNLIKELY(!it)) { | 5050 | 22 | return unexpected(it.error()); | 5051 | 22 | } | 5052 | | | 5053 | 92 | return read_string_impl(range, *it, value); | 5054 | 114 | } |
Unexecuted instantiation: _ZN3scn2v34impl25character_set_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERNSI_12basic_stringIT0_NSI_11char_traitsISU_EENSI_9allocatorISU_EEEE Unexecuted instantiation: _ZN3scn2v34impl25character_set_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERNSG_12basic_stringIT0_NSG_11char_traitsISS_EENSG_9allocatorISS_EEEE Unexecuted instantiation: _ZN3scn2v34impl25character_set_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERNSF_12basic_stringIT0_NSF_11char_traitsISS_EENSF_9allocatorISS_EEEE _ZN3scn2v34impl25character_set_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERNSD_12basic_stringIT0_NSD_11char_traitsISQ_EENSD_9allocatorISQ_EEEE Line | Count | Source | 5047 | 114 | { | 5048 | 114 | auto it = read_source_impl(range, {specs}); | 5049 | 114 | if (SCN_UNLIKELY(!it)) { | 5050 | 22 | return unexpected(it.error()); | 5051 | 22 | } | 5052 | | | 5053 | 92 | return read_string_impl(range, *it, value); | 5054 | 114 | } |
|
5055 | | |
5056 | | template <typename Range, typename ValueCharT> |
5057 | | auto read(Range range, |
5058 | | const detail::format_specs& specs, |
5059 | | std::basic_string_view<ValueCharT>& value) |
5060 | | -> scan_expected<ranges::const_iterator_t<Range>> |
5061 | 1.19k | { |
5062 | 1.19k | auto it = read_source_impl(range, {specs}); |
5063 | 1.19k | if (SCN_UNLIKELY(!it)) { |
5064 | 352 | return unexpected(it.error()); |
5065 | 352 | } |
5066 | | |
5067 | 846 | return read_string_view_impl(range, *it, value); |
5068 | 1.19k | } Unexecuted instantiation: _ZN3scn2v34impl25character_set_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERNSI_17basic_string_viewIT0_NSI_11char_traitsISU_EEEE Unexecuted instantiation: _ZN3scn2v34impl25character_set_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERNSG_17basic_string_viewIT0_NSG_11char_traitsISS_EEEE _ZN3scn2v34impl25character_set_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERNSF_17basic_string_viewIT0_NSF_11char_traitsISS_EEEE Line | Count | Source | 5061 | 212 | { | 5062 | 212 | auto it = read_source_impl(range, {specs}); | 5063 | 212 | if (SCN_UNLIKELY(!it)) { | 5064 | 12 | return unexpected(it.error()); | 5065 | 12 | } | 5066 | | | 5067 | 200 | return read_string_view_impl(range, *it, value); | 5068 | 212 | } |
_ZN3scn2v34impl25character_set_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERNSD_17basic_string_viewIT0_NSD_11char_traitsISQ_EEEE Line | Count | Source | 5061 | 872 | { | 5062 | 872 | auto it = read_source_impl(range, {specs}); | 5063 | 872 | if (SCN_UNLIKELY(!it)) { | 5064 | 318 | return unexpected(it.error()); | 5065 | 318 | } | 5066 | | | 5067 | 554 | return read_string_view_impl(range, *it, value); | 5068 | 872 | } |
Unexecuted instantiation: _ZN3scn2v34impl25character_set_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERNSI_17basic_string_viewIT0_NSI_11char_traitsISU_EEEE Unexecuted instantiation: _ZN3scn2v34impl25character_set_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERNSG_17basic_string_viewIT0_NSG_11char_traitsISS_EEEE Unexecuted instantiation: _ZN3scn2v34impl25character_set_reader_implIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERNSF_17basic_string_viewIT0_NSF_11char_traitsISS_EEEE Unexecuted instantiation: _ZN3scn2v34impl25character_set_reader_implIcE4readINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERNSD_17basic_string_viewIT0_NSD_11char_traitsISQ_EEEE Unexecuted instantiation: _ZN3scn2v34impl25character_set_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERNSI_17basic_string_viewIT0_NSI_11char_traitsISU_EEEE Unexecuted instantiation: _ZN3scn2v34impl25character_set_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERNSG_17basic_string_viewIT0_NSG_11char_traitsISS_EEEE Unexecuted instantiation: _ZN3scn2v34impl25character_set_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEcEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERNSF_17basic_string_viewIT0_NSF_11char_traitsISS_EEEE Unexecuted instantiation: _ZN3scn2v34impl25character_set_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEcEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERNSD_17basic_string_viewIT0_NSD_11char_traitsISQ_EEEE Unexecuted instantiation: _ZN3scn2v34impl25character_set_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERNSI_17basic_string_viewIT0_NSI_11char_traitsISU_EEEE Unexecuted instantiation: _ZN3scn2v34impl25character_set_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERNSG_17basic_string_viewIT0_NSG_11char_traitsISS_EEEE Unexecuted instantiation: _ZN3scn2v34impl25character_set_reader_implIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEwEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERNSF_17basic_string_viewIT0_NSF_11char_traitsISS_EEEE _ZN3scn2v34impl25character_set_reader_implIwE4readINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEwEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERNSD_17basic_string_viewIT0_NSD_11char_traitsISQ_EEEE Line | Count | Source | 5061 | 114 | { | 5062 | 114 | auto it = read_source_impl(range, {specs}); | 5063 | 114 | if (SCN_UNLIKELY(!it)) { | 5064 | 22 | return unexpected(it.error()); | 5065 | 22 | } | 5066 | | | 5067 | 92 | return read_string_view_impl(range, *it, value); | 5068 | 114 | } |
|
5069 | | |
5070 | | private: |
5071 | | struct specs_helper { |
5072 | 3.59k | constexpr specs_helper(const detail::format_specs& s) : specs(s) {}scn::v3::impl::character_set_reader_impl<char>::specs_helper::specs_helper(scn::v3::detail::format_specs const&) Line | Count | Source | 5072 | 3.25k | constexpr specs_helper(const detail::format_specs& s) : specs(s) {} |
scn::v3::impl::character_set_reader_impl<wchar_t>::specs_helper::specs_helper(scn::v3::detail::format_specs const&) Line | Count | Source | 5072 | 342 | constexpr specs_helper(const detail::format_specs& s) : specs(s) {} |
|
5073 | | |
5074 | | constexpr bool is_char_set_in_literals(char ch) const |
5075 | 276k | { |
5076 | 276k | SCN_EXPECT(is_ascii_char(ch)); |
5077 | 276k | const auto val = |
5078 | 276k | static_cast<unsigned>(static_cast<unsigned char>(ch)); |
5079 | 276k | return (static_cast<unsigned>(specs.charset_literals[val / 8]) >> |
5080 | 276k | (val % 8)) & |
5081 | 276k | 1u; |
5082 | 276k | } scn::v3::impl::character_set_reader_impl<char>::specs_helper::is_char_set_in_literals(char) const Line | Count | Source | 5075 | 272k | { | 5076 | 272k | SCN_EXPECT(is_ascii_char(ch)); | 5077 | 272k | const auto val = | 5078 | 272k | static_cast<unsigned>(static_cast<unsigned char>(ch)); | 5079 | 272k | return (static_cast<unsigned>(specs.charset_literals[val / 8]) >> | 5080 | 272k | (val % 8)) & | 5081 | 272k | 1u; | 5082 | 272k | } |
scn::v3::impl::character_set_reader_impl<wchar_t>::specs_helper::is_char_set_in_literals(char) const Line | Count | Source | 5075 | 3.85k | { | 5076 | 3.85k | SCN_EXPECT(is_ascii_char(ch)); | 5077 | 3.85k | const auto val = | 5078 | 3.85k | static_cast<unsigned>(static_cast<unsigned char>(ch)); | 5079 | 3.85k | return (static_cast<unsigned>(specs.charset_literals[val / 8]) >> | 5080 | 3.85k | (val % 8)) & | 5081 | 3.85k | 1u; | 5082 | 3.85k | } |
|
5083 | | |
5084 | | bool is_char_set_in_extra_literals(char32_t cp) const |
5085 | 38.5k | { |
5086 | | // TODO: binary search? |
5087 | 38.5k | if (nonascii.extra_ranges.empty()) { |
5088 | 0 | return false; |
5089 | 0 | } |
5090 | | |
5091 | 38.5k | const auto cp_val = static_cast<uint32_t>(cp); |
5092 | 38.5k | return std::find_if( |
5093 | 38.5k | nonascii.extra_ranges.begin(), |
5094 | 38.5k | nonascii.extra_ranges.end(), |
5095 | 7.20M | [cp_val](const auto& pair) noexcept { |
5096 | 7.20M | return static_cast<uint32_t>(pair.first) <= cp_val && |
5097 | 7.20M | static_cast<uint32_t>(pair.second) > cp_val; |
5098 | 7.20M | }) != nonascii.extra_ranges.end(); auto scn::v3::impl::character_set_reader_impl<char>::specs_helper::is_char_set_in_extra_literals(char32_t) const::{lambda(auto:1 const&)#1}::operator()<std::__1::pair<char32_t, char32_t> >(std::__1::pair<char32_t, char32_t> const&) constLine | Count | Source | 5095 | 7.19M | [cp_val](const auto& pair) noexcept { | 5096 | 7.19M | return static_cast<uint32_t>(pair.first) <= cp_val && | 5097 | 7.19M | static_cast<uint32_t>(pair.second) > cp_val; | 5098 | 7.19M | }) != nonascii.extra_ranges.end(); |
auto scn::v3::impl::character_set_reader_impl<wchar_t>::specs_helper::is_char_set_in_extra_literals(char32_t) const::{lambda(auto:1 const&)#1}::operator()<std::__1::pair<char32_t, char32_t> >(std::__1::pair<char32_t, char32_t> const&) constLine | Count | Source | 5095 | 5.34k | [cp_val](const auto& pair) noexcept { | 5096 | 5.34k | return static_cast<uint32_t>(pair.first) <= cp_val && | 5097 | 5.34k | static_cast<uint32_t>(pair.second) > cp_val; | 5098 | 5.34k | }) != nonascii.extra_ranges.end(); |
|
5099 | 38.5k | } scn::v3::impl::character_set_reader_impl<char>::specs_helper::is_char_set_in_extra_literals(char32_t) const Line | Count | Source | 5085 | 37.6k | { | 5086 | | // TODO: binary search? | 5087 | 37.6k | if (nonascii.extra_ranges.empty()) { | 5088 | 0 | return false; | 5089 | 0 | } | 5090 | | | 5091 | 37.6k | const auto cp_val = static_cast<uint32_t>(cp); | 5092 | 37.6k | return std::find_if( | 5093 | 37.6k | nonascii.extra_ranges.begin(), | 5094 | 37.6k | nonascii.extra_ranges.end(), | 5095 | 37.6k | [cp_val](const auto& pair) noexcept { | 5096 | 37.6k | return static_cast<uint32_t>(pair.first) <= cp_val && | 5097 | 37.6k | static_cast<uint32_t>(pair.second) > cp_val; | 5098 | 37.6k | }) != nonascii.extra_ranges.end(); | 5099 | 37.6k | } |
scn::v3::impl::character_set_reader_impl<wchar_t>::specs_helper::is_char_set_in_extra_literals(char32_t) const Line | Count | Source | 5085 | 900 | { | 5086 | | // TODO: binary search? | 5087 | 900 | if (nonascii.extra_ranges.empty()) { | 5088 | 0 | return false; | 5089 | 0 | } | 5090 | | | 5091 | 900 | const auto cp_val = static_cast<uint32_t>(cp); | 5092 | 900 | return std::find_if( | 5093 | 900 | nonascii.extra_ranges.begin(), | 5094 | 900 | nonascii.extra_ranges.end(), | 5095 | 900 | [cp_val](const auto& pair) noexcept { | 5096 | 900 | return static_cast<uint32_t>(pair.first) <= cp_val && | 5097 | 900 | static_cast<uint32_t>(pair.second) > cp_val; | 5098 | 900 | }) != nonascii.extra_ranges.end(); | 5099 | 900 | } |
|
5100 | | |
5101 | | scan_error handle_nonascii() |
5102 | 3.59k | { |
5103 | 3.59k | if (!specs.charset_has_nonascii) { |
5104 | 678 | return {}; |
5105 | 678 | } |
5106 | | |
5107 | 2.91k | auto charset_string = specs.charset_string<SourceCharT>(); |
5108 | 2.91k | auto it = detail::to_address(charset_string.begin()); |
5109 | 2.91k | auto set = detail::parse_presentation_set( |
5110 | 2.91k | it, detail::to_address(charset_string.end()), nonascii); |
5111 | 2.91k | if (SCN_UNLIKELY(!nonascii)) { |
5112 | 0 | return nonascii.err; |
5113 | 0 | } |
5114 | 2.91k | SCN_ENSURE(it == detail::to_address(charset_string.end())); |
5115 | 2.91k | SCN_ENSURE(set == charset_string); |
5116 | | |
5117 | 2.91k | std::sort(nonascii.extra_ranges.begin(), |
5118 | 2.91k | nonascii.extra_ranges.end()); |
5119 | 2.91k | return {}; |
5120 | 2.91k | } scn::v3::impl::character_set_reader_impl<char>::specs_helper::handle_nonascii() Line | Count | Source | 5102 | 3.25k | { | 5103 | 3.25k | if (!specs.charset_has_nonascii) { | 5104 | 594 | return {}; | 5105 | 594 | } | 5106 | | | 5107 | 2.65k | auto charset_string = specs.charset_string<SourceCharT>(); | 5108 | 2.65k | auto it = detail::to_address(charset_string.begin()); | 5109 | 2.65k | auto set = detail::parse_presentation_set( | 5110 | 2.65k | it, detail::to_address(charset_string.end()), nonascii); | 5111 | 2.65k | if (SCN_UNLIKELY(!nonascii)) { | 5112 | 0 | return nonascii.err; | 5113 | 0 | } | 5114 | 2.65k | SCN_ENSURE(it == detail::to_address(charset_string.end())); | 5115 | 2.65k | SCN_ENSURE(set == charset_string); | 5116 | | | 5117 | 2.65k | std::sort(nonascii.extra_ranges.begin(), | 5118 | 2.65k | nonascii.extra_ranges.end()); | 5119 | 2.65k | return {}; | 5120 | 2.65k | } |
scn::v3::impl::character_set_reader_impl<wchar_t>::specs_helper::handle_nonascii() Line | Count | Source | 5102 | 342 | { | 5103 | 342 | if (!specs.charset_has_nonascii) { | 5104 | 84 | return {}; | 5105 | 84 | } | 5106 | | | 5107 | 258 | auto charset_string = specs.charset_string<SourceCharT>(); | 5108 | 258 | auto it = detail::to_address(charset_string.begin()); | 5109 | 258 | auto set = detail::parse_presentation_set( | 5110 | 258 | it, detail::to_address(charset_string.end()), nonascii); | 5111 | 258 | if (SCN_UNLIKELY(!nonascii)) { | 5112 | 0 | return nonascii.err; | 5113 | 0 | } | 5114 | 258 | SCN_ENSURE(it == detail::to_address(charset_string.end())); | 5115 | 258 | SCN_ENSURE(set == charset_string); | 5116 | | | 5117 | 258 | std::sort(nonascii.extra_ranges.begin(), | 5118 | 258 | nonascii.extra_ranges.end()); | 5119 | 258 | return {}; | 5120 | 258 | } |
|
5121 | | |
5122 | | const detail::format_specs& specs; |
5123 | | nonascii_specs_handler nonascii; |
5124 | | }; |
5125 | | |
5126 | | struct read_source_callback { |
5127 | | SCN_NODISCARD bool on_ascii_only(SourceCharT ch) const |
5128 | 10.8k | { |
5129 | 10.8k | if (!is_ascii_char(ch)) { |
5130 | 2.20k | return false; |
5131 | 2.20k | } |
5132 | | |
5133 | 8.68k | return helper.is_char_set_in_literals(static_cast<char>(ch)); |
5134 | 10.8k | } scn::v3::impl::character_set_reader_impl<char>::read_source_callback::on_ascii_only(char) const Line | Count | Source | 5128 | 9.70k | { | 5129 | 9.70k | if (!is_ascii_char(ch)) { | 5130 | 2.19k | return false; | 5131 | 2.19k | } | 5132 | | | 5133 | 7.50k | return helper.is_char_set_in_literals(static_cast<char>(ch)); | 5134 | 9.70k | } |
scn::v3::impl::character_set_reader_impl<wchar_t>::read_source_callback::on_ascii_only(wchar_t) const Line | Count | Source | 5128 | 1.18k | { | 5129 | 1.18k | if (!is_ascii_char(ch)) { | 5130 | 12 | return false; | 5131 | 12 | } | 5132 | | | 5133 | 1.17k | return helper.is_char_set_in_literals(static_cast<char>(ch)); | 5134 | 1.18k | } |
|
5135 | | |
5136 | | SCN_NODISCARD bool on_classic_with_extra_ranges(char32_t cp) const |
5137 | 306k | { |
5138 | 306k | if (!is_ascii_char(cp)) { |
5139 | 38.5k | return helper.is_char_set_in_extra_literals(cp); |
5140 | 38.5k | } |
5141 | | |
5142 | 267k | return helper.is_char_set_in_literals(static_cast<char>(cp)); |
5143 | 306k | } scn::v3::impl::character_set_reader_impl<char>::read_source_callback::on_classic_with_extra_ranges(char32_t) const Line | Count | Source | 5137 | 302k | { | 5138 | 302k | if (!is_ascii_char(cp)) { | 5139 | 37.6k | return helper.is_char_set_in_extra_literals(cp); | 5140 | 37.6k | } | 5141 | | | 5142 | 265k | return helper.is_char_set_in_literals(static_cast<char>(cp)); | 5143 | 302k | } |
scn::v3::impl::character_set_reader_impl<wchar_t>::read_source_callback::on_classic_with_extra_ranges(char32_t) const Line | Count | Source | 5137 | 3.57k | { | 5138 | 3.57k | if (!is_ascii_char(cp)) { | 5139 | 900 | return helper.is_char_set_in_extra_literals(cp); | 5140 | 900 | } | 5141 | | | 5142 | 2.67k | return helper.is_char_set_in_literals(static_cast<char>(cp)); | 5143 | 3.57k | } |
|
5144 | | |
5145 | | const specs_helper& helper; |
5146 | | detail::locale_ref loc{}; |
5147 | | }; |
5148 | | |
5149 | | template <typename Range> |
5150 | | auto read_source_impl(Range range, specs_helper helper) const |
5151 | | -> scan_expected<ranges::const_iterator_t<Range>> |
5152 | 3.59k | { |
5153 | 3.59k | const bool is_inverted = helper.specs.charset_is_inverted; |
5154 | 3.59k | const bool accepts_nonascii = helper.specs.charset_has_nonascii; |
5155 | | |
5156 | 3.59k | if (auto e = helper.handle_nonascii(); SCN_UNLIKELY(!e)) { |
5157 | 0 | return unexpected(e); |
5158 | 0 | } |
5159 | | |
5160 | 3.59k | read_source_callback cb_wrapper{helper}; |
5161 | | |
5162 | 3.59k | if (accepts_nonascii) { |
5163 | 306k | const auto cb = [&](char32_t cp) { |
5164 | 306k | return cb_wrapper.on_classic_with_extra_ranges(cp); |
5165 | 306k | }; Unexecuted instantiation: _ZZNK3scn2v34impl25character_set_reader_implIcE16read_source_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_NS3_12specs_helperEENKUlDiE_clEDi Unexecuted instantiation: _ZZNK3scn2v34impl25character_set_reader_implIcE16read_source_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_NS3_12specs_helperEENKUlDiE_clEDi _ZZNK3scn2v34impl25character_set_reader_implIcE16read_source_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_NS3_12specs_helperEENKUlDiE_clEDi Line | Count | Source | 5163 | 19.4k | const auto cb = [&](char32_t cp) { | 5164 | 19.4k | return cb_wrapper.on_classic_with_extra_ranges(cp); | 5165 | 19.4k | }; |
_ZZNK3scn2v34impl25character_set_reader_implIcE16read_source_implINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_NS3_12specs_helperEENKUlDiE_clEDi Line | Count | Source | 5163 | 283k | const auto cb = [&](char32_t cp) { | 5164 | 283k | return cb_wrapper.on_classic_with_extra_ranges(cp); | 5165 | 283k | }; |
Unexecuted instantiation: _ZZNK3scn2v34impl25character_set_reader_implIwE16read_source_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_NS3_12specs_helperEENKUlDiE_clEDi Unexecuted instantiation: _ZZNK3scn2v34impl25character_set_reader_implIwE16read_source_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_NS3_12specs_helperEENKUlDiE_clEDi Unexecuted instantiation: _ZZNK3scn2v34impl25character_set_reader_implIwE16read_source_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_NS3_12specs_helperEENKUlDiE_clEDi _ZZNK3scn2v34impl25character_set_reader_implIwE16read_source_implINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_NS3_12specs_helperEENKUlDiE_clEDi Line | Count | Source | 5163 | 3.57k | const auto cb = [&](char32_t cp) { | 5164 | 3.57k | return cb_wrapper.on_classic_with_extra_ranges(cp); | 5165 | 3.57k | }; |
|
5166 | | |
5167 | 2.91k | if (is_inverted) { |
5168 | 402 | auto it = read_until_code_point(range, cb); |
5169 | 402 | return check_nonempty(it, range); |
5170 | 402 | } |
5171 | 2.51k | auto it = read_while_code_point(range, cb); |
5172 | 2.51k | return check_nonempty(it, range); |
5173 | 2.91k | } |
5174 | | |
5175 | 10.8k | const auto cb = [&](SourceCharT ch) { |
5176 | 10.8k | return cb_wrapper.on_ascii_only(ch); |
5177 | 10.8k | }; Unexecuted instantiation: _ZZNK3scn2v34impl25character_set_reader_implIcE16read_source_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_NS3_12specs_helperEENKUlcE_clEc Unexecuted instantiation: _ZZNK3scn2v34impl25character_set_reader_implIcE16read_source_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_NS3_12specs_helperEENKUlcE_clEc _ZZNK3scn2v34impl25character_set_reader_implIcE16read_source_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_NS3_12specs_helperEENKUlcE_clEc Line | Count | Source | 5175 | 6.15k | const auto cb = [&](SourceCharT ch) { | 5176 | 6.15k | return cb_wrapper.on_ascii_only(ch); | 5177 | 6.15k | }; |
_ZZNK3scn2v34impl25character_set_reader_implIcE16read_source_implINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_NS3_12specs_helperEENKUlcE_clEc Line | Count | Source | 5175 | 3.55k | const auto cb = [&](SourceCharT ch) { | 5176 | 3.55k | return cb_wrapper.on_ascii_only(ch); | 5177 | 3.55k | }; |
Unexecuted instantiation: _ZZNK3scn2v34impl25character_set_reader_implIwE16read_source_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_NS3_12specs_helperEENKUlwE_clEw Unexecuted instantiation: _ZZNK3scn2v34impl25character_set_reader_implIwE16read_source_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_NS3_12specs_helperEENKUlwE_clEw Unexecuted instantiation: _ZZNK3scn2v34impl25character_set_reader_implIwE16read_source_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_NS3_12specs_helperEENKUlwE_clEw _ZZNK3scn2v34impl25character_set_reader_implIwE16read_source_implINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_NS3_12specs_helperEENKUlwE_clEw Line | Count | Source | 5175 | 1.18k | const auto cb = [&](SourceCharT ch) { | 5176 | 1.18k | return cb_wrapper.on_ascii_only(ch); | 5177 | 1.18k | }; |
|
5178 | | |
5179 | 678 | if (is_inverted) { |
5180 | 312 | auto it = read_until_code_unit(range, cb); |
5181 | 312 | return check_nonempty(it, range); |
5182 | 312 | } |
5183 | 366 | auto it = read_while_code_unit(range, cb); |
5184 | 366 | return check_nonempty(it, range); |
5185 | 678 | } Unexecuted instantiation: _ZNK3scn2v34impl25character_set_reader_implIcE16read_source_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_NS3_12specs_helperE Unexecuted instantiation: _ZNK3scn2v34impl25character_set_reader_implIcE16read_source_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_NS3_12specs_helperE _ZNK3scn2v34impl25character_set_reader_implIcE16read_source_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_NS3_12specs_helperE Line | Count | Source | 5152 | 636 | { | 5153 | 636 | const bool is_inverted = helper.specs.charset_is_inverted; | 5154 | 636 | const bool accepts_nonascii = helper.specs.charset_has_nonascii; | 5155 | | | 5156 | 636 | if (auto e = helper.handle_nonascii(); SCN_UNLIKELY(!e)) { | 5157 | 0 | return unexpected(e); | 5158 | 0 | } | 5159 | | | 5160 | 636 | read_source_callback cb_wrapper{helper}; | 5161 | | | 5162 | 636 | if (accepts_nonascii) { | 5163 | 336 | const auto cb = [&](char32_t cp) { | 5164 | 336 | return cb_wrapper.on_classic_with_extra_ranges(cp); | 5165 | 336 | }; | 5166 | | | 5167 | 336 | if (is_inverted) { | 5168 | 126 | auto it = read_until_code_point(range, cb); | 5169 | 126 | return check_nonempty(it, range); | 5170 | 126 | } | 5171 | 210 | auto it = read_while_code_point(range, cb); | 5172 | 210 | return check_nonempty(it, range); | 5173 | 336 | } | 5174 | | | 5175 | 300 | const auto cb = [&](SourceCharT ch) { | 5176 | 300 | return cb_wrapper.on_ascii_only(ch); | 5177 | 300 | }; | 5178 | | | 5179 | 300 | if (is_inverted) { | 5180 | 144 | auto it = read_until_code_unit(range, cb); | 5181 | 144 | return check_nonempty(it, range); | 5182 | 144 | } | 5183 | 156 | auto it = read_while_code_unit(range, cb); | 5184 | 156 | return check_nonempty(it, range); | 5185 | 300 | } |
_ZNK3scn2v34impl25character_set_reader_implIcE16read_source_implINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_NS3_12specs_helperE Line | Count | Source | 5152 | 2.61k | { | 5153 | 2.61k | const bool is_inverted = helper.specs.charset_is_inverted; | 5154 | 2.61k | const bool accepts_nonascii = helper.specs.charset_has_nonascii; | 5155 | | | 5156 | 2.61k | if (auto e = helper.handle_nonascii(); SCN_UNLIKELY(!e)) { | 5157 | 0 | return unexpected(e); | 5158 | 0 | } | 5159 | | | 5160 | 2.61k | read_source_callback cb_wrapper{helper}; | 5161 | | | 5162 | 2.61k | if (accepts_nonascii) { | 5163 | 2.32k | const auto cb = [&](char32_t cp) { | 5164 | 2.32k | return cb_wrapper.on_classic_with_extra_ranges(cp); | 5165 | 2.32k | }; | 5166 | | | 5167 | 2.32k | if (is_inverted) { | 5168 | 198 | auto it = read_until_code_point(range, cb); | 5169 | 198 | return check_nonempty(it, range); | 5170 | 198 | } | 5171 | 2.12k | auto it = read_while_code_point(range, cb); | 5172 | 2.12k | return check_nonempty(it, range); | 5173 | 2.32k | } | 5174 | | | 5175 | 294 | const auto cb = [&](SourceCharT ch) { | 5176 | 294 | return cb_wrapper.on_ascii_only(ch); | 5177 | 294 | }; | 5178 | | | 5179 | 294 | if (is_inverted) { | 5180 | 138 | auto it = read_until_code_unit(range, cb); | 5181 | 138 | return check_nonempty(it, range); | 5182 | 138 | } | 5183 | 156 | auto it = read_while_code_unit(range, cb); | 5184 | 156 | return check_nonempty(it, range); | 5185 | 294 | } |
Unexecuted instantiation: _ZNK3scn2v34impl25character_set_reader_implIwE16read_source_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_NS3_12specs_helperE Unexecuted instantiation: _ZNK3scn2v34impl25character_set_reader_implIwE16read_source_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_NS3_12specs_helperE Unexecuted instantiation: _ZNK3scn2v34impl25character_set_reader_implIwE16read_source_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_NS3_12specs_helperE _ZNK3scn2v34impl25character_set_reader_implIwE16read_source_implINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_NS3_12specs_helperE Line | Count | Source | 5152 | 342 | { | 5153 | 342 | const bool is_inverted = helper.specs.charset_is_inverted; | 5154 | 342 | const bool accepts_nonascii = helper.specs.charset_has_nonascii; | 5155 | | | 5156 | 342 | if (auto e = helper.handle_nonascii(); SCN_UNLIKELY(!e)) { | 5157 | 0 | return unexpected(e); | 5158 | 0 | } | 5159 | | | 5160 | 342 | read_source_callback cb_wrapper{helper}; | 5161 | | | 5162 | 342 | if (accepts_nonascii) { | 5163 | 258 | const auto cb = [&](char32_t cp) { | 5164 | 258 | return cb_wrapper.on_classic_with_extra_ranges(cp); | 5165 | 258 | }; | 5166 | | | 5167 | 258 | if (is_inverted) { | 5168 | 78 | auto it = read_until_code_point(range, cb); | 5169 | 78 | return check_nonempty(it, range); | 5170 | 78 | } | 5171 | 180 | auto it = read_while_code_point(range, cb); | 5172 | 180 | return check_nonempty(it, range); | 5173 | 258 | } | 5174 | | | 5175 | 84 | const auto cb = [&](SourceCharT ch) { | 5176 | 84 | return cb_wrapper.on_ascii_only(ch); | 5177 | 84 | }; | 5178 | | | 5179 | 84 | if (is_inverted) { | 5180 | 30 | auto it = read_until_code_unit(range, cb); | 5181 | 30 | return check_nonempty(it, range); | 5182 | 30 | } | 5183 | 54 | auto it = read_while_code_unit(range, cb); | 5184 | 54 | return check_nonempty(it, range); | 5185 | 84 | } |
|
5186 | | |
5187 | | template <typename Iterator, typename Range> |
5188 | | static scan_expected<Iterator> check_nonempty(const Iterator& it, |
5189 | | Range range) |
5190 | 3.59k | { |
5191 | 3.59k | if (it == range.begin()) { |
5192 | 1.05k | return unexpected_scan_error( |
5193 | 1.05k | scan_error::invalid_scanned_value, |
5194 | 1.05k | "No characters matched in [character set]"); |
5195 | 1.05k | } |
5196 | | |
5197 | 2.53k | return it; |
5198 | 3.59k | } Unexecuted instantiation: scn::v3::scan_expected<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> > scn::v3::impl::character_set_reader_impl<char>::check_nonempty<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> const&, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::character_set_reader_impl<char>::check_nonempty<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t> >(scn::v3::detail::basic_scan_buffer<char>::forward_iterator const&, scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<char>::forward_iterator, scn::v3::ranges::default_sentinel_t>) scn::v3::scan_expected<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> > scn::v3::impl::character_set_reader_impl<char>::check_nonempty<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> > >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<char const*, char const*> const&, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >) Line | Count | Source | 5190 | 636 | { | 5191 | 636 | if (it == range.begin()) { | 5192 | 36 | return unexpected_scan_error( | 5193 | 36 | scan_error::invalid_scanned_value, | 5194 | 36 | "No characters matched in [character set]"); | 5195 | 36 | } | 5196 | | | 5197 | 600 | return it; | 5198 | 636 | } |
scn::v3::scan_expected<char const*> scn::v3::impl::character_set_reader_impl<char>::check_nonempty<char const*, scn::v3::ranges::detail::subrange_::subrange<char const*, char const*> >(char const* const&, scn::v3::ranges::detail::subrange_::subrange<char const*, char const*>) Line | Count | Source | 5190 | 2.61k | { | 5191 | 2.61k | if (it == range.begin()) { | 5192 | 954 | return unexpected_scan_error( | 5193 | 954 | scan_error::invalid_scanned_value, | 5194 | 954 | "No characters matched in [character set]"); | 5195 | 954 | } | 5196 | | | 5197 | 1.66k | return it; | 5198 | 2.61k | } |
Unexecuted instantiation: scn::v3::scan_expected<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> > scn::v3::impl::character_set_reader_impl<wchar_t>::check_nonempty<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> > >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> const&, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::character_set_reader_impl<wchar_t>::check_nonempty<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t> >(scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator const&, scn::v3::ranges::detail::subrange_::subrange<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator, scn::v3::ranges::default_sentinel_t>) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> > scn::v3::impl::character_set_reader_impl<wchar_t>::check_nonempty<scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*>, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> > >(scn::v3::impl::counted_width_iterator_impl::counted_width_iterator<wchar_t const*, wchar_t const*> const&, scn::v3::impl::take_width_view<scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >) scn::v3::scan_expected<wchar_t const*> scn::v3::impl::character_set_reader_impl<wchar_t>::check_nonempty<wchar_t const*, scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*> >(wchar_t const* const&, scn::v3::ranges::detail::subrange_::subrange<wchar_t const*, wchar_t const*>) Line | Count | Source | 5190 | 342 | { | 5191 | 342 | if (it == range.begin()) { | 5192 | 66 | return unexpected_scan_error( | 5193 | 66 | scan_error::invalid_scanned_value, | 5194 | 66 | "No characters matched in [character set]"); | 5195 | 66 | } | 5196 | | | 5197 | 276 | return it; | 5198 | 342 | } |
|
5199 | | }; |
5200 | | |
5201 | | template <typename SourceCharT> |
5202 | | class string_reader |
5203 | | : public reader_base<string_reader<SourceCharT>, SourceCharT> { |
5204 | | public: |
5205 | 54.4k | constexpr string_reader() = default; scn::v3::impl::string_reader<char>::string_reader() Line | Count | Source | 5205 | 17.1k | constexpr string_reader() = default; |
scn::v3::impl::string_reader<wchar_t>::string_reader() Line | Count | Source | 5205 | 37.2k | constexpr string_reader() = default; |
|
5206 | | |
5207 | | void check_specs_impl(const detail::format_specs& specs, |
5208 | | reader_error_handler& eh) |
5209 | 22.5k | { |
5210 | 22.5k | detail::check_string_type_specs(specs, eh); |
5211 | | |
5212 | 22.5k | SCN_GCC_PUSH |
5213 | 22.5k | SCN_GCC_IGNORE("-Wswitch") |
5214 | 22.5k | SCN_GCC_IGNORE("-Wswitch-default") |
5215 | | |
5216 | 22.5k | SCN_CLANG_PUSH |
5217 | 22.5k | SCN_CLANG_IGNORE("-Wswitch") |
5218 | 22.5k | SCN_CLANG_IGNORE("-Wcovered-switch-default") |
5219 | | |
5220 | 22.5k | switch (specs.type) { |
5221 | 2.62k | case detail::presentation_type::none: |
5222 | 2.62k | m_type = reader_type::word; |
5223 | 2.62k | break; |
5224 | | |
5225 | 702 | case detail::presentation_type::string: { |
5226 | 702 | if (specs.align == detail::align_type::left || |
5227 | 702 | specs.align == detail::align_type::center) { |
5228 | 426 | m_type = reader_type::custom_word; |
5229 | 426 | } |
5230 | 276 | else { |
5231 | 276 | m_type = reader_type::word; |
5232 | 276 | } |
5233 | 702 | break; |
5234 | 0 | } |
5235 | | |
5236 | 162 | case detail::presentation_type::character: |
5237 | 162 | m_type = reader_type::character; |
5238 | 162 | break; |
5239 | | |
5240 | 3.60k | case detail::presentation_type::string_set: |
5241 | 3.60k | m_type = reader_type::character_set; |
5242 | 3.60k | break; |
5243 | | |
5244 | 13.6k | case detail::presentation_type::regex: |
5245 | 13.6k | m_type = reader_type::regex; |
5246 | 13.6k | break; |
5247 | | |
5248 | 1.14k | case detail::presentation_type::regex_escaped: |
5249 | 1.14k | m_type = reader_type::regex_escaped; |
5250 | 1.14k | break; |
5251 | 22.5k | } |
5252 | | |
5253 | | SCN_CLANG_POP // -Wswitch-enum, -Wcovered-switch-default |
5254 | | SCN_GCC_POP // -Wswitch-enum, -Wswitch-default |
5255 | 22.5k | } scn::v3::impl::string_reader<char>::check_specs_impl(scn::v3::detail::format_specs const&, scn::v3::impl::reader_error_handler&) Line | Count | Source | 5209 | 15.2k | { | 5210 | 15.2k | detail::check_string_type_specs(specs, eh); | 5211 | | | 5212 | 15.2k | SCN_GCC_PUSH | 5213 | 15.2k | SCN_GCC_IGNORE("-Wswitch") | 5214 | 15.2k | SCN_GCC_IGNORE("-Wswitch-default") | 5215 | | | 5216 | 15.2k | SCN_CLANG_PUSH | 5217 | 15.2k | SCN_CLANG_IGNORE("-Wswitch") | 5218 | 15.2k | SCN_CLANG_IGNORE("-Wcovered-switch-default") | 5219 | | | 5220 | 15.2k | switch (specs.type) { | 5221 | 1.40k | case detail::presentation_type::none: | 5222 | 1.40k | m_type = reader_type::word; | 5223 | 1.40k | break; | 5224 | | | 5225 | 504 | case detail::presentation_type::string: { | 5226 | 504 | if (specs.align == detail::align_type::left || | 5227 | 504 | specs.align == detail::align_type::center) { | 5228 | 282 | m_type = reader_type::custom_word; | 5229 | 282 | } | 5230 | 222 | else { | 5231 | 222 | m_type = reader_type::word; | 5232 | 222 | } | 5233 | 504 | break; | 5234 | 0 | } | 5235 | | | 5236 | 102 | case detail::presentation_type::character: | 5237 | 102 | m_type = reader_type::character; | 5238 | 102 | break; | 5239 | | | 5240 | 3.25k | case detail::presentation_type::string_set: | 5241 | 3.25k | m_type = reader_type::character_set; | 5242 | 3.25k | break; | 5243 | | | 5244 | 8.67k | case detail::presentation_type::regex: | 5245 | 8.67k | m_type = reader_type::regex; | 5246 | 8.67k | break; | 5247 | | | 5248 | 960 | case detail::presentation_type::regex_escaped: | 5249 | 960 | m_type = reader_type::regex_escaped; | 5250 | 960 | break; | 5251 | 15.2k | } | 5252 | | | 5253 | | SCN_CLANG_POP // -Wswitch-enum, -Wcovered-switch-default | 5254 | | SCN_GCC_POP // -Wswitch-enum, -Wswitch-default | 5255 | 15.2k | } |
scn::v3::impl::string_reader<wchar_t>::check_specs_impl(scn::v3::detail::format_specs const&, scn::v3::impl::reader_error_handler&) Line | Count | Source | 5209 | 7.26k | { | 5210 | 7.26k | detail::check_string_type_specs(specs, eh); | 5211 | | | 5212 | 7.26k | SCN_GCC_PUSH | 5213 | 7.26k | SCN_GCC_IGNORE("-Wswitch") | 5214 | 7.26k | SCN_GCC_IGNORE("-Wswitch-default") | 5215 | | | 5216 | 7.26k | SCN_CLANG_PUSH | 5217 | 7.26k | SCN_CLANG_IGNORE("-Wswitch") | 5218 | 7.26k | SCN_CLANG_IGNORE("-Wcovered-switch-default") | 5219 | | | 5220 | 7.26k | switch (specs.type) { | 5221 | 1.22k | case detail::presentation_type::none: | 5222 | 1.22k | m_type = reader_type::word; | 5223 | 1.22k | break; | 5224 | | | 5225 | 198 | case detail::presentation_type::string: { | 5226 | 198 | if (specs.align == detail::align_type::left || | 5227 | 198 | specs.align == detail::align_type::center) { | 5228 | 144 | m_type = reader_type::custom_word; | 5229 | 144 | } | 5230 | 54 | else { | 5231 | 54 | m_type = reader_type::word; | 5232 | 54 | } | 5233 | 198 | break; | 5234 | 0 | } | 5235 | | | 5236 | 60 | case detail::presentation_type::character: | 5237 | 60 | m_type = reader_type::character; | 5238 | 60 | break; | 5239 | | | 5240 | 342 | case detail::presentation_type::string_set: | 5241 | 342 | m_type = reader_type::character_set; | 5242 | 342 | break; | 5243 | | | 5244 | 5.02k | case detail::presentation_type::regex: | 5245 | 5.02k | m_type = reader_type::regex; | 5246 | 5.02k | break; | 5247 | | | 5248 | 180 | case detail::presentation_type::regex_escaped: | 5249 | 180 | m_type = reader_type::regex_escaped; | 5250 | 180 | break; | 5251 | 7.26k | } | 5252 | | | 5253 | | SCN_CLANG_POP // -Wswitch-enum, -Wcovered-switch-default | 5254 | | SCN_GCC_POP // -Wswitch-enum, -Wswitch-default | 5255 | 7.26k | } |
|
5256 | | |
5257 | | bool skip_ws_before_read() const |
5258 | 58.5k | { |
5259 | 58.5k | return m_type == reader_type::word; |
5260 | 58.5k | } scn::v3::impl::string_reader<char>::skip_ws_before_read() const Line | Count | Source | 5258 | 20.4k | { | 5259 | 20.4k | return m_type == reader_type::word; | 5260 | 20.4k | } |
scn::v3::impl::string_reader<wchar_t>::skip_ws_before_read() const Line | Count | Source | 5258 | 38.1k | { | 5259 | 38.1k | return m_type == reader_type::word; | 5260 | 38.1k | } |
|
5261 | | |
5262 | | template <typename Range, typename Value> |
5263 | | auto read_default(Range range, Value& value, detail::locale_ref loc) |
5264 | | -> scan_expected<ranges::const_iterator_t<Range>> |
5265 | 31.9k | { |
5266 | 31.9k | SCN_UNUSED(loc); |
5267 | 31.9k | return word_reader_impl<SourceCharT>{}.read(range, value); |
5268 | 31.9k | } _ZN3scn2v34impl13string_readerIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKcSA_EENSt3__117basic_string_viewIcNSC_11char_traitsIcEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSC_9add_constIT_E4typeEEEEEEESJ_RT0_NS0_6detail10locale_refE Line | Count | Source | 5265 | 628 | { | 5266 | 628 | SCN_UNUSED(loc); | 5267 | 628 | return word_reader_impl<SourceCharT>{}.read(range, value); | 5268 | 628 | } |
_ZN3scn2v34impl13string_readerIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKcSA_EENSt3__112basic_stringIcNSC_11char_traitsIcEENSC_9allocatorIcEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSC_9add_constIT_E4typeEEEEEEESL_RT0_NS0_6detail10locale_refE Line | Count | Source | 5265 | 628 | { | 5266 | 628 | SCN_UNUSED(loc); | 5267 | 628 | return word_reader_impl<SourceCharT>{}.read(range, value); | 5268 | 628 | } |
Unexecuted instantiation: _ZN3scn2v34impl13string_readerIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKcSA_EENSt3__117basic_string_viewIwNSC_11char_traitsIwEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSC_9add_constIT_E4typeEEEEEEESJ_RT0_NS0_6detail10locale_refE _ZN3scn2v34impl13string_readerIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKcSA_EENSt3__112basic_stringIwNSC_11char_traitsIwEENSC_9allocatorIwEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSC_9add_constIT_E4typeEEEEEEESL_RT0_NS0_6detail10locale_refE Line | Count | Source | 5265 | 628 | { | 5266 | 628 | SCN_UNUSED(loc); | 5267 | 628 | return word_reader_impl<SourceCharT>{}.read(range, value); | 5268 | 628 | } |
Unexecuted instantiation: _ZN3scn2v34impl13string_readerIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEENSt3__117basic_string_viewIcNSF_11char_traitsIcEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSF_9add_constIT_E4typeEEEEEEESM_RT0_NS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl13string_readerIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEENSt3__112basic_stringIcNSF_11char_traitsIcEENSF_9allocatorIcEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSF_9add_constIT_E4typeEEEEEEESO_RT0_NS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl13string_readerIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEENSt3__117basic_string_viewIwNSF_11char_traitsIwEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSF_9add_constIT_E4typeEEEEEEESM_RT0_NS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl13string_readerIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEENSt3__112basic_stringIwNSF_11char_traitsIwEENSF_9allocatorIwEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSF_9add_constIT_E4typeEEEEEEESO_RT0_NS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl13string_readerIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKwSA_EENSt3__117basic_string_viewIcNSC_11char_traitsIcEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSC_9add_constIT_E4typeEEEEEEESJ_RT0_NS0_6detail10locale_refE _ZN3scn2v34impl13string_readerIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKwSA_EENSt3__112basic_stringIcNSC_11char_traitsIcEENSC_9allocatorIcEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSC_9add_constIT_E4typeEEEEEEESL_RT0_NS0_6detail10locale_refE Line | Count | Source | 5265 | 10.0k | { | 5266 | 10.0k | SCN_UNUSED(loc); | 5267 | 10.0k | return word_reader_impl<SourceCharT>{}.read(range, value); | 5268 | 10.0k | } |
_ZN3scn2v34impl13string_readerIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKwSA_EENSt3__117basic_string_viewIwNSC_11char_traitsIwEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSC_9add_constIT_E4typeEEEEEEESJ_RT0_NS0_6detail10locale_refE Line | Count | Source | 5265 | 10.0k | { | 5266 | 10.0k | SCN_UNUSED(loc); | 5267 | 10.0k | return word_reader_impl<SourceCharT>{}.read(range, value); | 5268 | 10.0k | } |
_ZN3scn2v34impl13string_readerIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKwSA_EENSt3__112basic_stringIwNSC_11char_traitsIwEENSC_9allocatorIwEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSC_9add_constIT_E4typeEEEEEEESL_RT0_NS0_6detail10locale_refE Line | Count | Source | 5265 | 10.0k | { | 5266 | 10.0k | SCN_UNUSED(loc); | 5267 | 10.0k | return word_reader_impl<SourceCharT>{}.read(range, value); | 5268 | 10.0k | } |
Unexecuted instantiation: _ZN3scn2v34impl13string_readerIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEENSt3__117basic_string_viewIcNSF_11char_traitsIcEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSF_9add_constIT_E4typeEEEEEEESM_RT0_NS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl13string_readerIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEENSt3__112basic_stringIcNSF_11char_traitsIcEENSF_9allocatorIcEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSF_9add_constIT_E4typeEEEEEEESO_RT0_NS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl13string_readerIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEENSt3__117basic_string_viewIwNSF_11char_traitsIwEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSF_9add_constIT_E4typeEEEEEEESM_RT0_NS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl13string_readerIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEENSt3__112basic_stringIwNSF_11char_traitsIwEENSF_9allocatorIwEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSF_9add_constIT_E4typeEEEEEEESO_RT0_NS9_10locale_refE |
5269 | | |
5270 | | template <typename Range, typename Value> |
5271 | | auto read_specs(Range range, |
5272 | | const detail::format_specs& specs, |
5273 | | Value& value, |
5274 | | detail::locale_ref loc) |
5275 | | -> scan_expected<ranges::const_iterator_t<Range>> |
5276 | 21.8k | { |
5277 | 21.8k | SCN_UNUSED(loc); |
5278 | 21.8k | return read_impl(range, specs, value); |
5279 | 21.8k | } Unexecuted instantiation: _ZN3scn2v34impl13string_readerIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEENSt3__112basic_stringIcNSH_11char_traitsIcEENSH_9allocatorIcEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSH_9add_constIT_E4typeEEEEEEESQ_RKNSA_12format_specsERT0_NSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl13string_readerIcE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEENSt3__112basic_stringIcNSF_11char_traitsIcEENSF_9allocatorIcEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSF_9add_constIT_E4typeEEEEEEESO_RKNS9_12format_specsERT0_NS9_10locale_refE _ZN3scn2v34impl13string_readerIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEENSt3__112basic_stringIcNSE_11char_traitsIcEENSE_9allocatorIcEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSE_9add_constIT_E4typeEEEEEEESN_RKNS0_6detail12format_specsERT0_NST_10locale_refE Line | Count | Source | 5276 | 642 | { | 5277 | 642 | SCN_UNUSED(loc); | 5278 | 642 | return read_impl(range, specs, value); | 5279 | 642 | } |
_ZN3scn2v34impl13string_readerIcE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKcSA_EENSt3__112basic_stringIcNSC_11char_traitsIcEENSC_9allocatorIcEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSC_9add_constIT_E4typeEEEEEEESL_RKNS0_6detail12format_specsERT0_NSR_10locale_refE Line | Count | Source | 5276 | 4.30k | { | 5277 | 4.30k | SCN_UNUSED(loc); | 5278 | 4.30k | return read_impl(range, specs, value); | 5279 | 4.30k | } |
Unexecuted instantiation: _ZN3scn2v34impl13string_readerIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEENSt3__112basic_stringIwNSH_11char_traitsIwEENSH_9allocatorIwEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSH_9add_constIT_E4typeEEEEEEESQ_RKNSA_12format_specsERT0_NSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl13string_readerIcE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEENSt3__112basic_stringIwNSF_11char_traitsIwEENSF_9allocatorIwEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSF_9add_constIT_E4typeEEEEEEESO_RKNS9_12format_specsERT0_NS9_10locale_refE _ZN3scn2v34impl13string_readerIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEENSt3__112basic_stringIwNSE_11char_traitsIwEENSE_9allocatorIwEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSE_9add_constIT_E4typeEEEEEEESN_RKNS0_6detail12format_specsERT0_NST_10locale_refE Line | Count | Source | 5276 | 642 | { | 5277 | 642 | SCN_UNUSED(loc); | 5278 | 642 | return read_impl(range, specs, value); | 5279 | 642 | } |
_ZN3scn2v34impl13string_readerIcE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKcSA_EENSt3__112basic_stringIwNSC_11char_traitsIwEENSC_9allocatorIwEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSC_9add_constIT_E4typeEEEEEEESL_RKNS0_6detail12format_specsERT0_NSR_10locale_refE Line | Count | Source | 5276 | 4.30k | { | 5277 | 4.30k | SCN_UNUSED(loc); | 5278 | 4.30k | return read_impl(range, specs, value); | 5279 | 4.30k | } |
Unexecuted instantiation: _ZN3scn2v34impl13string_readerIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEENSt3__117basic_string_viewIcNSH_11char_traitsIcEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSH_9add_constIT_E4typeEEEEEEESO_RKNSA_12format_specsERT0_NSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl13string_readerIcE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEENSt3__117basic_string_viewIcNSF_11char_traitsIcEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSF_9add_constIT_E4typeEEEEEEESM_RKNS9_12format_specsERT0_NS9_10locale_refE _ZN3scn2v34impl13string_readerIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEENSt3__117basic_string_viewIcNSE_11char_traitsIcEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSE_9add_constIT_E4typeEEEEEEESL_RKNS0_6detail12format_specsERT0_NSR_10locale_refE Line | Count | Source | 5276 | 642 | { | 5277 | 642 | SCN_UNUSED(loc); | 5278 | 642 | return read_impl(range, specs, value); | 5279 | 642 | } |
_ZN3scn2v34impl13string_readerIcE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKcSA_EENSt3__117basic_string_viewIcNSC_11char_traitsIcEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSC_9add_constIT_E4typeEEEEEEESJ_RKNS0_6detail12format_specsERT0_NSP_10locale_refE Line | Count | Source | 5276 | 4.30k | { | 5277 | 4.30k | SCN_UNUSED(loc); | 5278 | 4.30k | return read_impl(range, specs, value); | 5279 | 4.30k | } |
Unexecuted instantiation: _ZN3scn2v34impl13string_readerIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEENSt3__117basic_string_viewIwNSH_11char_traitsIwEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSH_9add_constIT_E4typeEEEEEEESO_RKNSA_12format_specsERT0_NSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl13string_readerIcE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEENSt3__117basic_string_viewIwNSF_11char_traitsIwEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSF_9add_constIT_E4typeEEEEEEESM_RKNS9_12format_specsERT0_NS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl13string_readerIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEENSt3__117basic_string_viewIwNSE_11char_traitsIwEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSE_9add_constIT_E4typeEEEEEEESL_RKNS0_6detail12format_specsERT0_NSR_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl13string_readerIcE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKcSA_EENSt3__117basic_string_viewIwNSC_11char_traitsIwEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSC_9add_constIT_E4typeEEEEEEESJ_RKNS0_6detail12format_specsERT0_NSP_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl13string_readerIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEENSt3__112basic_stringIcNSH_11char_traitsIcEENSH_9allocatorIcEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSH_9add_constIT_E4typeEEEEEEESQ_RKNSA_12format_specsERT0_NSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl13string_readerIwE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEENSt3__112basic_stringIcNSF_11char_traitsIcEENSF_9allocatorIcEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSF_9add_constIT_E4typeEEEEEEESO_RKNS9_12format_specsERT0_NS9_10locale_refE _ZN3scn2v34impl13string_readerIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEENSt3__112basic_stringIcNSE_11char_traitsIcEENSE_9allocatorIcEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSE_9add_constIT_E4typeEEEEEEESN_RKNS0_6detail12format_specsERT0_NST_10locale_refE Line | Count | Source | 5276 | 152 | { | 5277 | 152 | SCN_UNUSED(loc); | 5278 | 152 | return read_impl(range, specs, value); | 5279 | 152 | } |
_ZN3scn2v34impl13string_readerIwE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKwSA_EENSt3__112basic_stringIcNSC_11char_traitsIcEENSC_9allocatorIcEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSC_9add_constIT_E4typeEEEEEEESL_RKNS0_6detail12format_specsERT0_NSR_10locale_refE Line | Count | Source | 5276 | 2.18k | { | 5277 | 2.18k | SCN_UNUSED(loc); | 5278 | 2.18k | return read_impl(range, specs, value); | 5279 | 2.18k | } |
Unexecuted instantiation: _ZN3scn2v34impl13string_readerIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEENSt3__112basic_stringIwNSH_11char_traitsIwEENSH_9allocatorIwEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSH_9add_constIT_E4typeEEEEEEESQ_RKNSA_12format_specsERT0_NSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl13string_readerIwE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEENSt3__112basic_stringIwNSF_11char_traitsIwEENSF_9allocatorIwEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSF_9add_constIT_E4typeEEEEEEESO_RKNS9_12format_specsERT0_NS9_10locale_refE _ZN3scn2v34impl13string_readerIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEENSt3__112basic_stringIwNSE_11char_traitsIwEENSE_9allocatorIwEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSE_9add_constIT_E4typeEEEEEEESN_RKNS0_6detail12format_specsERT0_NST_10locale_refE Line | Count | Source | 5276 | 152 | { | 5277 | 152 | SCN_UNUSED(loc); | 5278 | 152 | return read_impl(range, specs, value); | 5279 | 152 | } |
_ZN3scn2v34impl13string_readerIwE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKwSA_EENSt3__112basic_stringIwNSC_11char_traitsIwEENSC_9allocatorIwEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSC_9add_constIT_E4typeEEEEEEESL_RKNS0_6detail12format_specsERT0_NSR_10locale_refE Line | Count | Source | 5276 | 2.18k | { | 5277 | 2.18k | SCN_UNUSED(loc); | 5278 | 2.18k | return read_impl(range, specs, value); | 5279 | 2.18k | } |
Unexecuted instantiation: _ZN3scn2v34impl13string_readerIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEENSt3__117basic_string_viewIcNSH_11char_traitsIcEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSH_9add_constIT_E4typeEEEEEEESO_RKNSA_12format_specsERT0_NSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl13string_readerIwE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEENSt3__117basic_string_viewIcNSF_11char_traitsIcEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSF_9add_constIT_E4typeEEEEEEESM_RKNS9_12format_specsERT0_NS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl13string_readerIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEENSt3__117basic_string_viewIcNSE_11char_traitsIcEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSE_9add_constIT_E4typeEEEEEEESL_RKNS0_6detail12format_specsERT0_NSR_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl13string_readerIwE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKwSA_EENSt3__117basic_string_viewIcNSC_11char_traitsIcEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSC_9add_constIT_E4typeEEEEEEESJ_RKNS0_6detail12format_specsERT0_NSP_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl13string_readerIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEENSt3__117basic_string_viewIwNSH_11char_traitsIwEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSH_9add_constIT_E4typeEEEEEEESO_RKNSA_12format_specsERT0_NSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl13string_readerIwE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEENSt3__117basic_string_viewIwNSF_11char_traitsIwEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSF_9add_constIT_E4typeEEEEEEESM_RKNS9_12format_specsERT0_NS9_10locale_refE _ZN3scn2v34impl13string_readerIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEENSt3__117basic_string_viewIwNSE_11char_traitsIwEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSE_9add_constIT_E4typeEEEEEEESL_RKNS0_6detail12format_specsERT0_NSR_10locale_refE Line | Count | Source | 5276 | 152 | { | 5277 | 152 | SCN_UNUSED(loc); | 5278 | 152 | return read_impl(range, specs, value); | 5279 | 152 | } |
_ZN3scn2v34impl13string_readerIwE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKwSA_EENSt3__117basic_string_viewIwNSC_11char_traitsIwEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSC_9add_constIT_E4typeEEEEEEESJ_RKNS0_6detail12format_specsERT0_NSP_10locale_refE Line | Count | Source | 5276 | 2.18k | { | 5277 | 2.18k | SCN_UNUSED(loc); | 5278 | 2.18k | return read_impl(range, specs, value); | 5279 | 2.18k | } |
|
5280 | | |
5281 | | protected: |
5282 | | enum class reader_type { |
5283 | | word, |
5284 | | custom_word, |
5285 | | character, |
5286 | | character_set, |
5287 | | regex, |
5288 | | regex_escaped, |
5289 | | }; |
5290 | | |
5291 | | template <typename Range, typename Value> |
5292 | | auto read_impl(Range range, const detail::format_specs& specs, Value& value) |
5293 | | -> scan_expected<ranges::const_iterator_t<Range>> |
5294 | 21.8k | { |
5295 | 21.8k | SCN_CLANG_PUSH |
5296 | 21.8k | SCN_CLANG_IGNORE("-Wcovered-switch-default") |
5297 | | |
5298 | 21.8k | switch (m_type) { |
5299 | 2.83k | case reader_type::word: |
5300 | 2.83k | return word_reader_impl<SourceCharT>{}.read(range, value); |
5301 | | |
5302 | 420 | case reader_type::custom_word: |
5303 | 420 | return custom_word_reader_impl<SourceCharT>{}.read(range, specs, |
5304 | 420 | value); |
5305 | | |
5306 | 150 | case reader_type::character: |
5307 | 150 | return character_reader_impl<SourceCharT>{}.read(range, value); |
5308 | | |
5309 | 3.59k | case reader_type::character_set: |
5310 | 3.59k | return character_set_reader_impl<SourceCharT>{}.read( |
5311 | 3.59k | range, specs, value); |
5312 | | |
5313 | 0 | #if !SCN_DISABLE_REGEX |
5314 | 13.6k | case reader_type::regex: |
5315 | 13.6k | return regex_string_reader_impl<SourceCharT>{}.read( |
5316 | 13.6k | range, specs.charset_string<SourceCharT>(), |
5317 | 13.6k | specs.regexp_flags, value); |
5318 | | |
5319 | 1.14k | case reader_type::regex_escaped: |
5320 | 1.14k | return regex_string_reader_impl<SourceCharT>{}.read( |
5321 | 1.14k | range, |
5322 | 1.14k | get_unescaped_regex_pattern( |
5323 | 1.14k | specs.charset_string<SourceCharT>()), |
5324 | 1.14k | specs.regexp_flags, value); |
5325 | 0 | #endif |
5326 | | |
5327 | 0 | default: |
5328 | 0 | SCN_EXPECT(false); |
5329 | 21.8k | SCN_UNREACHABLE; |
5330 | 21.8k | } |
5331 | | |
5332 | 21.8k | SCN_CLANG_POP |
5333 | 21.8k | } Unexecuted instantiation: _ZN3scn2v34impl13string_readerIcE9read_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEENSt3__112basic_stringIcNSH_11char_traitsIcEENSH_9allocatorIcEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSH_9add_constIT_E4typeEEEEEEESQ_RKNSA_12format_specsERT0_ Unexecuted instantiation: _ZN3scn2v34impl13string_readerIcE9read_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEENSt3__112basic_stringIcNSF_11char_traitsIcEENSF_9allocatorIcEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSF_9add_constIT_E4typeEEEEEEESO_RKNS9_12format_specsERT0_ _ZN3scn2v34impl13string_readerIcE9read_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEENSt3__112basic_stringIcNSE_11char_traitsIcEENSE_9allocatorIcEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSE_9add_constIT_E4typeEEEEEEESN_RKNS0_6detail12format_specsERT0_ Line | Count | Source | 5294 | 642 | { | 5295 | 642 | SCN_CLANG_PUSH | 5296 | 642 | SCN_CLANG_IGNORE("-Wcovered-switch-default") | 5297 | | | 5298 | 642 | switch (m_type) { | 5299 | 244 | case reader_type::word: | 5300 | 244 | return word_reader_impl<SourceCharT>{}.read(range, value); | 5301 | | | 5302 | 50 | case reader_type::custom_word: | 5303 | 50 | return custom_word_reader_impl<SourceCharT>{}.read(range, specs, | 5304 | 50 | value); | 5305 | | | 5306 | 32 | case reader_type::character: | 5307 | 32 | return character_reader_impl<SourceCharT>{}.read(range, value); | 5308 | | | 5309 | 212 | case reader_type::character_set: | 5310 | 212 | return character_set_reader_impl<SourceCharT>{}.read( | 5311 | 212 | range, specs, value); | 5312 | | | 5313 | 0 | #if !SCN_DISABLE_REGEX | 5314 | 2 | case reader_type::regex: | 5315 | 2 | return regex_string_reader_impl<SourceCharT>{}.read( | 5316 | 2 | range, specs.charset_string<SourceCharT>(), | 5317 | 2 | specs.regexp_flags, value); | 5318 | | | 5319 | 102 | case reader_type::regex_escaped: | 5320 | 102 | return regex_string_reader_impl<SourceCharT>{}.read( | 5321 | 102 | range, | 5322 | 102 | get_unescaped_regex_pattern( | 5323 | 102 | specs.charset_string<SourceCharT>()), | 5324 | 102 | specs.regexp_flags, value); | 5325 | 0 | #endif | 5326 | | | 5327 | 0 | default: | 5328 | 0 | SCN_EXPECT(false); | 5329 | 642 | SCN_UNREACHABLE; | 5330 | 642 | } | 5331 | | | 5332 | 642 | SCN_CLANG_POP | 5333 | 642 | } |
_ZN3scn2v34impl13string_readerIcE9read_implINS0_6ranges6detail9subrange_8subrangeIPKcSA_EENSt3__112basic_stringIcNSC_11char_traitsIcEENSC_9allocatorIcEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSC_9add_constIT_E4typeEEEEEEESL_RKNS0_6detail12format_specsERT0_ Line | Count | Source | 5294 | 4.30k | { | 5295 | 4.30k | SCN_CLANG_PUSH | 5296 | 4.30k | SCN_CLANG_IGNORE("-Wcovered-switch-default") | 5297 | | | 5298 | 4.30k | switch (m_type) { | 5299 | 278 | case reader_type::word: | 5300 | 278 | return word_reader_impl<SourceCharT>{}.read(range, value); | 5301 | | | 5302 | 44 | case reader_type::custom_word: | 5303 | 44 | return custom_word_reader_impl<SourceCharT>{}.read(range, specs, | 5304 | 44 | value); | 5305 | | | 5306 | 0 | case reader_type::character: | 5307 | 0 | return character_reader_impl<SourceCharT>{}.read(range, value); | 5308 | | | 5309 | 872 | case reader_type::character_set: | 5310 | 872 | return character_set_reader_impl<SourceCharT>{}.read( | 5311 | 872 | range, specs, value); | 5312 | | | 5313 | 0 | #if !SCN_DISABLE_REGEX | 5314 | 2.89k | case reader_type::regex: | 5315 | 2.89k | return regex_string_reader_impl<SourceCharT>{}.read( | 5316 | 2.89k | range, specs.charset_string<SourceCharT>(), | 5317 | 2.89k | specs.regexp_flags, value); | 5318 | | | 5319 | 218 | case reader_type::regex_escaped: | 5320 | 218 | return regex_string_reader_impl<SourceCharT>{}.read( | 5321 | 218 | range, | 5322 | 218 | get_unescaped_regex_pattern( | 5323 | 218 | specs.charset_string<SourceCharT>()), | 5324 | 218 | specs.regexp_flags, value); | 5325 | 0 | #endif | 5326 | | | 5327 | 0 | default: | 5328 | 0 | SCN_EXPECT(false); | 5329 | 4.30k | SCN_UNREACHABLE; | 5330 | 4.30k | } | 5331 | | | 5332 | 4.30k | SCN_CLANG_POP | 5333 | 4.30k | } |
Unexecuted instantiation: _ZN3scn2v34impl13string_readerIcE9read_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEENSt3__112basic_stringIwNSH_11char_traitsIwEENSH_9allocatorIwEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSH_9add_constIT_E4typeEEEEEEESQ_RKNSA_12format_specsERT0_ Unexecuted instantiation: _ZN3scn2v34impl13string_readerIcE9read_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEENSt3__112basic_stringIwNSF_11char_traitsIwEENSF_9allocatorIwEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSF_9add_constIT_E4typeEEEEEEESO_RKNS9_12format_specsERT0_ _ZN3scn2v34impl13string_readerIcE9read_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEENSt3__112basic_stringIwNSE_11char_traitsIwEENSE_9allocatorIwEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSE_9add_constIT_E4typeEEEEEEESN_RKNS0_6detail12format_specsERT0_ Line | Count | Source | 5294 | 642 | { | 5295 | 642 | SCN_CLANG_PUSH | 5296 | 642 | SCN_CLANG_IGNORE("-Wcovered-switch-default") | 5297 | | | 5298 | 642 | switch (m_type) { | 5299 | 244 | case reader_type::word: | 5300 | 244 | return word_reader_impl<SourceCharT>{}.read(range, value); | 5301 | | | 5302 | 50 | case reader_type::custom_word: | 5303 | 50 | return custom_word_reader_impl<SourceCharT>{}.read(range, specs, | 5304 | 50 | value); | 5305 | | | 5306 | 32 | case reader_type::character: | 5307 | 32 | return character_reader_impl<SourceCharT>{}.read(range, value); | 5308 | | | 5309 | 212 | case reader_type::character_set: | 5310 | 212 | return character_set_reader_impl<SourceCharT>{}.read( | 5311 | 212 | range, specs, value); | 5312 | | | 5313 | 0 | #if !SCN_DISABLE_REGEX | 5314 | 2 | case reader_type::regex: | 5315 | 2 | return regex_string_reader_impl<SourceCharT>{}.read( | 5316 | 2 | range, specs.charset_string<SourceCharT>(), | 5317 | 2 | specs.regexp_flags, value); | 5318 | | | 5319 | 102 | case reader_type::regex_escaped: | 5320 | 102 | return regex_string_reader_impl<SourceCharT>{}.read( | 5321 | 102 | range, | 5322 | 102 | get_unescaped_regex_pattern( | 5323 | 102 | specs.charset_string<SourceCharT>()), | 5324 | 102 | specs.regexp_flags, value); | 5325 | 0 | #endif | 5326 | | | 5327 | 0 | default: | 5328 | 0 | SCN_EXPECT(false); | 5329 | 642 | SCN_UNREACHABLE; | 5330 | 642 | } | 5331 | | | 5332 | 642 | SCN_CLANG_POP | 5333 | 642 | } |
_ZN3scn2v34impl13string_readerIcE9read_implINS0_6ranges6detail9subrange_8subrangeIPKcSA_EENSt3__112basic_stringIwNSC_11char_traitsIwEENSC_9allocatorIwEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSC_9add_constIT_E4typeEEEEEEESL_RKNS0_6detail12format_specsERT0_ Line | Count | Source | 5294 | 4.30k | { | 5295 | 4.30k | SCN_CLANG_PUSH | 5296 | 4.30k | SCN_CLANG_IGNORE("-Wcovered-switch-default") | 5297 | | | 5298 | 4.30k | switch (m_type) { | 5299 | 278 | case reader_type::word: | 5300 | 278 | return word_reader_impl<SourceCharT>{}.read(range, value); | 5301 | | | 5302 | 44 | case reader_type::custom_word: | 5303 | 44 | return custom_word_reader_impl<SourceCharT>{}.read(range, specs, | 5304 | 44 | value); | 5305 | | | 5306 | 0 | case reader_type::character: | 5307 | 0 | return character_reader_impl<SourceCharT>{}.read(range, value); | 5308 | | | 5309 | 872 | case reader_type::character_set: | 5310 | 872 | return character_set_reader_impl<SourceCharT>{}.read( | 5311 | 872 | range, specs, value); | 5312 | | | 5313 | 0 | #if !SCN_DISABLE_REGEX | 5314 | 2.89k | case reader_type::regex: | 5315 | 2.89k | return regex_string_reader_impl<SourceCharT>{}.read( | 5316 | 2.89k | range, specs.charset_string<SourceCharT>(), | 5317 | 2.89k | specs.regexp_flags, value); | 5318 | | | 5319 | 218 | case reader_type::regex_escaped: | 5320 | 218 | return regex_string_reader_impl<SourceCharT>{}.read( | 5321 | 218 | range, | 5322 | 218 | get_unescaped_regex_pattern( | 5323 | 218 | specs.charset_string<SourceCharT>()), | 5324 | 218 | specs.regexp_flags, value); | 5325 | 0 | #endif | 5326 | | | 5327 | 0 | default: | 5328 | 0 | SCN_EXPECT(false); | 5329 | 4.30k | SCN_UNREACHABLE; | 5330 | 4.30k | } | 5331 | | | 5332 | 4.30k | SCN_CLANG_POP | 5333 | 4.30k | } |
Unexecuted instantiation: _ZN3scn2v34impl13string_readerIcE9read_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEENSt3__117basic_string_viewIcNSH_11char_traitsIcEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSH_9add_constIT_E4typeEEEEEEESO_RKNSA_12format_specsERT0_ Unexecuted instantiation: _ZN3scn2v34impl13string_readerIcE9read_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEENSt3__117basic_string_viewIcNSF_11char_traitsIcEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSF_9add_constIT_E4typeEEEEEEESM_RKNS9_12format_specsERT0_ _ZN3scn2v34impl13string_readerIcE9read_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEENSt3__117basic_string_viewIcNSE_11char_traitsIcEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSE_9add_constIT_E4typeEEEEEEESL_RKNS0_6detail12format_specsERT0_ Line | Count | Source | 5294 | 642 | { | 5295 | 642 | SCN_CLANG_PUSH | 5296 | 642 | SCN_CLANG_IGNORE("-Wcovered-switch-default") | 5297 | | | 5298 | 642 | switch (m_type) { | 5299 | 244 | case reader_type::word: | 5300 | 244 | return word_reader_impl<SourceCharT>{}.read(range, value); | 5301 | | | 5302 | 50 | case reader_type::custom_word: | 5303 | 50 | return custom_word_reader_impl<SourceCharT>{}.read(range, specs, | 5304 | 50 | value); | 5305 | | | 5306 | 32 | case reader_type::character: | 5307 | 32 | return character_reader_impl<SourceCharT>{}.read(range, value); | 5308 | | | 5309 | 212 | case reader_type::character_set: | 5310 | 212 | return character_set_reader_impl<SourceCharT>{}.read( | 5311 | 212 | range, specs, value); | 5312 | | | 5313 | 0 | #if !SCN_DISABLE_REGEX | 5314 | 2 | case reader_type::regex: | 5315 | 2 | return regex_string_reader_impl<SourceCharT>{}.read( | 5316 | 2 | range, specs.charset_string<SourceCharT>(), | 5317 | 2 | specs.regexp_flags, value); | 5318 | | | 5319 | 102 | case reader_type::regex_escaped: | 5320 | 102 | return regex_string_reader_impl<SourceCharT>{}.read( | 5321 | 102 | range, | 5322 | 102 | get_unescaped_regex_pattern( | 5323 | 102 | specs.charset_string<SourceCharT>()), | 5324 | 102 | specs.regexp_flags, value); | 5325 | 0 | #endif | 5326 | | | 5327 | 0 | default: | 5328 | 0 | SCN_EXPECT(false); | 5329 | 642 | SCN_UNREACHABLE; | 5330 | 642 | } | 5331 | | | 5332 | 642 | SCN_CLANG_POP | 5333 | 642 | } |
_ZN3scn2v34impl13string_readerIcE9read_implINS0_6ranges6detail9subrange_8subrangeIPKcSA_EENSt3__117basic_string_viewIcNSC_11char_traitsIcEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSC_9add_constIT_E4typeEEEEEEESJ_RKNS0_6detail12format_specsERT0_ Line | Count | Source | 5294 | 4.30k | { | 5295 | 4.30k | SCN_CLANG_PUSH | 5296 | 4.30k | SCN_CLANG_IGNORE("-Wcovered-switch-default") | 5297 | | | 5298 | 4.30k | switch (m_type) { | 5299 | 278 | case reader_type::word: | 5300 | 278 | return word_reader_impl<SourceCharT>{}.read(range, value); | 5301 | | | 5302 | 44 | case reader_type::custom_word: | 5303 | 44 | return custom_word_reader_impl<SourceCharT>{}.read(range, specs, | 5304 | 44 | value); | 5305 | | | 5306 | 0 | case reader_type::character: | 5307 | 0 | return character_reader_impl<SourceCharT>{}.read(range, value); | 5308 | | | 5309 | 872 | case reader_type::character_set: | 5310 | 872 | return character_set_reader_impl<SourceCharT>{}.read( | 5311 | 872 | range, specs, value); | 5312 | | | 5313 | 0 | #if !SCN_DISABLE_REGEX | 5314 | 2.89k | case reader_type::regex: | 5315 | 2.89k | return regex_string_reader_impl<SourceCharT>{}.read( | 5316 | 2.89k | range, specs.charset_string<SourceCharT>(), | 5317 | 2.89k | specs.regexp_flags, value); | 5318 | | | 5319 | 218 | case reader_type::regex_escaped: | 5320 | 218 | return regex_string_reader_impl<SourceCharT>{}.read( | 5321 | 218 | range, | 5322 | 218 | get_unescaped_regex_pattern( | 5323 | 218 | specs.charset_string<SourceCharT>()), | 5324 | 218 | specs.regexp_flags, value); | 5325 | 0 | #endif | 5326 | | | 5327 | 0 | default: | 5328 | 0 | SCN_EXPECT(false); | 5329 | 4.30k | SCN_UNREACHABLE; | 5330 | 4.30k | } | 5331 | | | 5332 | 4.30k | SCN_CLANG_POP | 5333 | 4.30k | } |
Unexecuted instantiation: _ZN3scn2v34impl13string_readerIcE9read_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEENSt3__117basic_string_viewIwNSH_11char_traitsIwEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSH_9add_constIT_E4typeEEEEEEESO_RKNSA_12format_specsERT0_ Unexecuted instantiation: _ZN3scn2v34impl13string_readerIcE9read_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEENSt3__117basic_string_viewIwNSF_11char_traitsIwEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSF_9add_constIT_E4typeEEEEEEESM_RKNS9_12format_specsERT0_ Unexecuted instantiation: _ZN3scn2v34impl13string_readerIcE9read_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEENSt3__117basic_string_viewIwNSE_11char_traitsIwEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSE_9add_constIT_E4typeEEEEEEESL_RKNS0_6detail12format_specsERT0_ Unexecuted instantiation: _ZN3scn2v34impl13string_readerIcE9read_implINS0_6ranges6detail9subrange_8subrangeIPKcSA_EENSt3__117basic_string_viewIwNSC_11char_traitsIwEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSC_9add_constIT_E4typeEEEEEEESJ_RKNS0_6detail12format_specsERT0_ Unexecuted instantiation: _ZN3scn2v34impl13string_readerIwE9read_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEENSt3__112basic_stringIcNSH_11char_traitsIcEENSH_9allocatorIcEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSH_9add_constIT_E4typeEEEEEEESQ_RKNSA_12format_specsERT0_ Unexecuted instantiation: _ZN3scn2v34impl13string_readerIwE9read_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEENSt3__112basic_stringIcNSF_11char_traitsIcEENSF_9allocatorIcEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSF_9add_constIT_E4typeEEEEEEESO_RKNS9_12format_specsERT0_ _ZN3scn2v34impl13string_readerIwE9read_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEENSt3__112basic_stringIcNSE_11char_traitsIcEENSE_9allocatorIcEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSE_9add_constIT_E4typeEEEEEEESN_RKNS0_6detail12format_specsERT0_ Line | Count | Source | 5294 | 152 | { | 5295 | 152 | SCN_CLANG_PUSH | 5296 | 152 | SCN_CLANG_IGNORE("-Wcovered-switch-default") | 5297 | | | 5298 | 152 | switch (m_type) { | 5299 | 108 | case reader_type::word: | 5300 | 108 | return word_reader_impl<SourceCharT>{}.read(range, value); | 5301 | | | 5302 | 20 | case reader_type::custom_word: | 5303 | 20 | return custom_word_reader_impl<SourceCharT>{}.read(range, specs, | 5304 | 20 | value); | 5305 | | | 5306 | 18 | case reader_type::character: | 5307 | 18 | return character_reader_impl<SourceCharT>{}.read(range, value); | 5308 | | | 5309 | 0 | case reader_type::character_set: | 5310 | 0 | return character_set_reader_impl<SourceCharT>{}.read( | 5311 | 0 | range, specs, value); | 5312 | | | 5313 | 0 | #if !SCN_DISABLE_REGEX | 5314 | 2 | case reader_type::regex: | 5315 | 2 | return regex_string_reader_impl<SourceCharT>{}.read( | 5316 | 2 | range, specs.charset_string<SourceCharT>(), | 5317 | 2 | specs.regexp_flags, value); | 5318 | | | 5319 | 4 | case reader_type::regex_escaped: | 5320 | 4 | return regex_string_reader_impl<SourceCharT>{}.read( | 5321 | 4 | range, | 5322 | 4 | get_unescaped_regex_pattern( | 5323 | 4 | specs.charset_string<SourceCharT>()), | 5324 | 4 | specs.regexp_flags, value); | 5325 | 0 | #endif | 5326 | | | 5327 | 0 | default: | 5328 | 0 | SCN_EXPECT(false); | 5329 | 152 | SCN_UNREACHABLE; | 5330 | 152 | } | 5331 | | | 5332 | 152 | SCN_CLANG_POP | 5333 | 152 | } |
_ZN3scn2v34impl13string_readerIwE9read_implINS0_6ranges6detail9subrange_8subrangeIPKwSA_EENSt3__112basic_stringIcNSC_11char_traitsIcEENSC_9allocatorIcEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSC_9add_constIT_E4typeEEEEEEESL_RKNS0_6detail12format_specsERT0_ Line | Count | Source | 5294 | 2.18k | { | 5295 | 2.18k | SCN_CLANG_PUSH | 5296 | 2.18k | SCN_CLANG_IGNORE("-Wcovered-switch-default") | 5297 | | | 5298 | 2.18k | switch (m_type) { | 5299 | 316 | case reader_type::word: | 5300 | 316 | return word_reader_impl<SourceCharT>{}.read(range, value); | 5301 | | | 5302 | 26 | case reader_type::custom_word: | 5303 | 26 | return custom_word_reader_impl<SourceCharT>{}.read(range, specs, | 5304 | 26 | value); | 5305 | | | 5306 | 0 | case reader_type::character: | 5307 | 0 | return character_reader_impl<SourceCharT>{}.read(range, value); | 5308 | | | 5309 | 114 | case reader_type::character_set: | 5310 | 114 | return character_set_reader_impl<SourceCharT>{}.read( | 5311 | 114 | range, specs, value); | 5312 | | | 5313 | 0 | #if !SCN_DISABLE_REGEX | 5314 | 1.67k | case reader_type::regex: | 5315 | 1.67k | return regex_string_reader_impl<SourceCharT>{}.read( | 5316 | 1.67k | range, specs.charset_string<SourceCharT>(), | 5317 | 1.67k | specs.regexp_flags, value); | 5318 | | | 5319 | 56 | case reader_type::regex_escaped: | 5320 | 56 | return regex_string_reader_impl<SourceCharT>{}.read( | 5321 | 56 | range, | 5322 | 56 | get_unescaped_regex_pattern( | 5323 | 56 | specs.charset_string<SourceCharT>()), | 5324 | 56 | specs.regexp_flags, value); | 5325 | 0 | #endif | 5326 | | | 5327 | 0 | default: | 5328 | 0 | SCN_EXPECT(false); | 5329 | 2.18k | SCN_UNREACHABLE; | 5330 | 2.18k | } | 5331 | | | 5332 | 2.18k | SCN_CLANG_POP | 5333 | 2.18k | } |
Unexecuted instantiation: _ZN3scn2v34impl13string_readerIwE9read_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEENSt3__112basic_stringIwNSH_11char_traitsIwEENSH_9allocatorIwEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSH_9add_constIT_E4typeEEEEEEESQ_RKNSA_12format_specsERT0_ Unexecuted instantiation: _ZN3scn2v34impl13string_readerIwE9read_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEENSt3__112basic_stringIwNSF_11char_traitsIwEENSF_9allocatorIwEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSF_9add_constIT_E4typeEEEEEEESO_RKNS9_12format_specsERT0_ _ZN3scn2v34impl13string_readerIwE9read_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEENSt3__112basic_stringIwNSE_11char_traitsIwEENSE_9allocatorIwEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSE_9add_constIT_E4typeEEEEEEESN_RKNS0_6detail12format_specsERT0_ Line | Count | Source | 5294 | 152 | { | 5295 | 152 | SCN_CLANG_PUSH | 5296 | 152 | SCN_CLANG_IGNORE("-Wcovered-switch-default") | 5297 | | | 5298 | 152 | switch (m_type) { | 5299 | 108 | case reader_type::word: | 5300 | 108 | return word_reader_impl<SourceCharT>{}.read(range, value); | 5301 | | | 5302 | 20 | case reader_type::custom_word: | 5303 | 20 | return custom_word_reader_impl<SourceCharT>{}.read(range, specs, | 5304 | 20 | value); | 5305 | | | 5306 | 18 | case reader_type::character: | 5307 | 18 | return character_reader_impl<SourceCharT>{}.read(range, value); | 5308 | | | 5309 | 0 | case reader_type::character_set: | 5310 | 0 | return character_set_reader_impl<SourceCharT>{}.read( | 5311 | 0 | range, specs, value); | 5312 | | | 5313 | 0 | #if !SCN_DISABLE_REGEX | 5314 | 2 | case reader_type::regex: | 5315 | 2 | return regex_string_reader_impl<SourceCharT>{}.read( | 5316 | 2 | range, specs.charset_string<SourceCharT>(), | 5317 | 2 | specs.regexp_flags, value); | 5318 | | | 5319 | 4 | case reader_type::regex_escaped: | 5320 | 4 | return regex_string_reader_impl<SourceCharT>{}.read( | 5321 | 4 | range, | 5322 | 4 | get_unescaped_regex_pattern( | 5323 | 4 | specs.charset_string<SourceCharT>()), | 5324 | 4 | specs.regexp_flags, value); | 5325 | 0 | #endif | 5326 | | | 5327 | 0 | default: | 5328 | 0 | SCN_EXPECT(false); | 5329 | 152 | SCN_UNREACHABLE; | 5330 | 152 | } | 5331 | | | 5332 | 152 | SCN_CLANG_POP | 5333 | 152 | } |
_ZN3scn2v34impl13string_readerIwE9read_implINS0_6ranges6detail9subrange_8subrangeIPKwSA_EENSt3__112basic_stringIwNSC_11char_traitsIwEENSC_9allocatorIwEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSC_9add_constIT_E4typeEEEEEEESL_RKNS0_6detail12format_specsERT0_ Line | Count | Source | 5294 | 2.18k | { | 5295 | 2.18k | SCN_CLANG_PUSH | 5296 | 2.18k | SCN_CLANG_IGNORE("-Wcovered-switch-default") | 5297 | | | 5298 | 2.18k | switch (m_type) { | 5299 | 316 | case reader_type::word: | 5300 | 316 | return word_reader_impl<SourceCharT>{}.read(range, value); | 5301 | | | 5302 | 26 | case reader_type::custom_word: | 5303 | 26 | return custom_word_reader_impl<SourceCharT>{}.read(range, specs, | 5304 | 26 | value); | 5305 | | | 5306 | 0 | case reader_type::character: | 5307 | 0 | return character_reader_impl<SourceCharT>{}.read(range, value); | 5308 | | | 5309 | 114 | case reader_type::character_set: | 5310 | 114 | return character_set_reader_impl<SourceCharT>{}.read( | 5311 | 114 | range, specs, value); | 5312 | | | 5313 | 0 | #if !SCN_DISABLE_REGEX | 5314 | 1.67k | case reader_type::regex: | 5315 | 1.67k | return regex_string_reader_impl<SourceCharT>{}.read( | 5316 | 1.67k | range, specs.charset_string<SourceCharT>(), | 5317 | 1.67k | specs.regexp_flags, value); | 5318 | | | 5319 | 56 | case reader_type::regex_escaped: | 5320 | 56 | return regex_string_reader_impl<SourceCharT>{}.read( | 5321 | 56 | range, | 5322 | 56 | get_unescaped_regex_pattern( | 5323 | 56 | specs.charset_string<SourceCharT>()), | 5324 | 56 | specs.regexp_flags, value); | 5325 | 0 | #endif | 5326 | | | 5327 | 0 | default: | 5328 | 0 | SCN_EXPECT(false); | 5329 | 2.18k | SCN_UNREACHABLE; | 5330 | 2.18k | } | 5331 | | | 5332 | 2.18k | SCN_CLANG_POP | 5333 | 2.18k | } |
Unexecuted instantiation: _ZN3scn2v34impl13string_readerIwE9read_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEENSt3__117basic_string_viewIcNSH_11char_traitsIcEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSH_9add_constIT_E4typeEEEEEEESO_RKNSA_12format_specsERT0_ Unexecuted instantiation: _ZN3scn2v34impl13string_readerIwE9read_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEENSt3__117basic_string_viewIcNSF_11char_traitsIcEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSF_9add_constIT_E4typeEEEEEEESM_RKNS9_12format_specsERT0_ Unexecuted instantiation: _ZN3scn2v34impl13string_readerIwE9read_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEENSt3__117basic_string_viewIcNSE_11char_traitsIcEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSE_9add_constIT_E4typeEEEEEEESL_RKNS0_6detail12format_specsERT0_ Unexecuted instantiation: _ZN3scn2v34impl13string_readerIwE9read_implINS0_6ranges6detail9subrange_8subrangeIPKwSA_EENSt3__117basic_string_viewIcNSC_11char_traitsIcEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSC_9add_constIT_E4typeEEEEEEESJ_RKNS0_6detail12format_specsERT0_ Unexecuted instantiation: _ZN3scn2v34impl13string_readerIwE9read_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEENSt3__117basic_string_viewIwNSH_11char_traitsIwEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSH_9add_constIT_E4typeEEEEEEESO_RKNSA_12format_specsERT0_ Unexecuted instantiation: _ZN3scn2v34impl13string_readerIwE9read_implINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEENSt3__117basic_string_viewIwNSF_11char_traitsIwEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSF_9add_constIT_E4typeEEEEEEESM_RKNS9_12format_specsERT0_ _ZN3scn2v34impl13string_readerIwE9read_implINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEENSt3__117basic_string_viewIwNSE_11char_traitsIwEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSE_9add_constIT_E4typeEEEEEEESL_RKNS0_6detail12format_specsERT0_ Line | Count | Source | 5294 | 152 | { | 5295 | 152 | SCN_CLANG_PUSH | 5296 | 152 | SCN_CLANG_IGNORE("-Wcovered-switch-default") | 5297 | | | 5298 | 152 | switch (m_type) { | 5299 | 108 | case reader_type::word: | 5300 | 108 | return word_reader_impl<SourceCharT>{}.read(range, value); | 5301 | | | 5302 | 20 | case reader_type::custom_word: | 5303 | 20 | return custom_word_reader_impl<SourceCharT>{}.read(range, specs, | 5304 | 20 | value); | 5305 | | | 5306 | 18 | case reader_type::character: | 5307 | 18 | return character_reader_impl<SourceCharT>{}.read(range, value); | 5308 | | | 5309 | 0 | case reader_type::character_set: | 5310 | 0 | return character_set_reader_impl<SourceCharT>{}.read( | 5311 | 0 | range, specs, value); | 5312 | | | 5313 | 0 | #if !SCN_DISABLE_REGEX | 5314 | 2 | case reader_type::regex: | 5315 | 2 | return regex_string_reader_impl<SourceCharT>{}.read( | 5316 | 2 | range, specs.charset_string<SourceCharT>(), | 5317 | 2 | specs.regexp_flags, value); | 5318 | | | 5319 | 4 | case reader_type::regex_escaped: | 5320 | 4 | return regex_string_reader_impl<SourceCharT>{}.read( | 5321 | 4 | range, | 5322 | 4 | get_unescaped_regex_pattern( | 5323 | 4 | specs.charset_string<SourceCharT>()), | 5324 | 4 | specs.regexp_flags, value); | 5325 | 0 | #endif | 5326 | | | 5327 | 0 | default: | 5328 | 0 | SCN_EXPECT(false); | 5329 | 152 | SCN_UNREACHABLE; | 5330 | 152 | } | 5331 | | | 5332 | 152 | SCN_CLANG_POP | 5333 | 152 | } |
_ZN3scn2v34impl13string_readerIwE9read_implINS0_6ranges6detail9subrange_8subrangeIPKwSA_EENSt3__117basic_string_viewIwNSC_11char_traitsIwEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSC_9add_constIT_E4typeEEEEEEESJ_RKNS0_6detail12format_specsERT0_ Line | Count | Source | 5294 | 2.18k | { | 5295 | 2.18k | SCN_CLANG_PUSH | 5296 | 2.18k | SCN_CLANG_IGNORE("-Wcovered-switch-default") | 5297 | | | 5298 | 2.18k | switch (m_type) { | 5299 | 316 | case reader_type::word: | 5300 | 316 | return word_reader_impl<SourceCharT>{}.read(range, value); | 5301 | | | 5302 | 26 | case reader_type::custom_word: | 5303 | 26 | return custom_word_reader_impl<SourceCharT>{}.read(range, specs, | 5304 | 26 | value); | 5305 | | | 5306 | 0 | case reader_type::character: | 5307 | 0 | return character_reader_impl<SourceCharT>{}.read(range, value); | 5308 | | | 5309 | 114 | case reader_type::character_set: | 5310 | 114 | return character_set_reader_impl<SourceCharT>{}.read( | 5311 | 114 | range, specs, value); | 5312 | | | 5313 | 0 | #if !SCN_DISABLE_REGEX | 5314 | 1.67k | case reader_type::regex: | 5315 | 1.67k | return regex_string_reader_impl<SourceCharT>{}.read( | 5316 | 1.67k | range, specs.charset_string<SourceCharT>(), | 5317 | 1.67k | specs.regexp_flags, value); | 5318 | | | 5319 | 56 | case reader_type::regex_escaped: | 5320 | 56 | return regex_string_reader_impl<SourceCharT>{}.read( | 5321 | 56 | range, | 5322 | 56 | get_unescaped_regex_pattern( | 5323 | 56 | specs.charset_string<SourceCharT>()), | 5324 | 56 | specs.regexp_flags, value); | 5325 | 0 | #endif | 5326 | | | 5327 | 0 | default: | 5328 | 0 | SCN_EXPECT(false); | 5329 | 2.18k | SCN_UNREACHABLE; | 5330 | 2.18k | } | 5331 | | | 5332 | 2.18k | SCN_CLANG_POP | 5333 | 2.18k | } |
|
5334 | | |
5335 | | reader_type m_type{reader_type::word}; |
5336 | | }; |
5337 | | |
5338 | | template <typename SourceCharT> |
5339 | | class reader_impl_for_string : public string_reader<SourceCharT> {}; |
5340 | | |
5341 | | ///////////////////////////////////////////////////////////////// |
5342 | | // Boolean reader |
5343 | | ///////////////////////////////////////////////////////////////// |
5344 | | |
5345 | | struct bool_reader_base { |
5346 | | enum options_type { allow_text = 1, allow_numeric = 2 }; |
5347 | | |
5348 | 10.6k | constexpr bool_reader_base() = default; |
5349 | 1.22k | constexpr bool_reader_base(unsigned opt) : m_options(opt) {} |
5350 | | |
5351 | | template <typename Range> |
5352 | | auto read_classic(Range range, bool& value) const |
5353 | | -> scan_expected<ranges::const_iterator_t<Range>> |
5354 | 11.8k | { |
5355 | 11.8k | scan_error err{scan_error::invalid_scanned_value, |
5356 | 11.8k | "Failed to read boolean"}; |
5357 | | |
5358 | 11.8k | if (m_options & allow_numeric) { |
5359 | 11.5k | if (auto r = read_numeric(range, value)) { |
5360 | 0 | return *r; |
5361 | 0 | } |
5362 | 11.5k | else { |
5363 | 11.5k | err = r.error(); |
5364 | 11.5k | } |
5365 | 11.5k | } |
5366 | | |
5367 | 11.8k | if (m_options & allow_text) { |
5368 | 11.7k | if (auto r = read_textual_classic(range, value)) { |
5369 | 0 | return *r; |
5370 | 0 | } |
5371 | 11.7k | else { |
5372 | 11.7k | err = r.error(); |
5373 | 11.7k | } |
5374 | 11.7k | } |
5375 | | |
5376 | 11.8k | return unexpected(err); |
5377 | 11.8k | } _ZNK3scn2v34impl16bool_reader_base12read_classicINS0_6ranges6detail9subrange_8subrangeIPKcS9_EEEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESE_Rb Line | Count | Source | 5354 | 972 | { | 5355 | 972 | scan_error err{scan_error::invalid_scanned_value, | 5356 | 972 | "Failed to read boolean"}; | 5357 | | | 5358 | 972 | if (m_options & allow_numeric) { | 5359 | 864 | if (auto r = read_numeric(range, value)) { | 5360 | 0 | return *r; | 5361 | 0 | } | 5362 | 864 | else { | 5363 | 864 | err = r.error(); | 5364 | 864 | } | 5365 | 864 | } | 5366 | | | 5367 | 972 | if (m_options & allow_text) { | 5368 | 950 | if (auto r = read_textual_classic(range, value)) { | 5369 | 0 | return *r; | 5370 | 0 | } | 5371 | 950 | else { | 5372 | 950 | err = r.error(); | 5373 | 950 | } | 5374 | 950 | } | 5375 | | | 5376 | 972 | return unexpected(err); | 5377 | 972 | } |
Unexecuted instantiation: _ZNK3scn2v34impl16bool_reader_base12read_classicINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS4_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_Rb _ZNK3scn2v34impl16bool_reader_base12read_classicINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_Rb Line | Count | Source | 5354 | 318 | { | 5355 | 318 | scan_error err{scan_error::invalid_scanned_value, | 5356 | 318 | "Failed to read boolean"}; | 5357 | | | 5358 | 318 | if (m_options & allow_numeric) { | 5359 | 262 | if (auto r = read_numeric(range, value)) { | 5360 | 0 | return *r; | 5361 | 0 | } | 5362 | 262 | else { | 5363 | 262 | err = r.error(); | 5364 | 262 | } | 5365 | 262 | } | 5366 | | | 5367 | 318 | if (m_options & allow_text) { | 5368 | 294 | if (auto r = read_textual_classic(range, value)) { | 5369 | 0 | return *r; | 5370 | 0 | } | 5371 | 294 | else { | 5372 | 294 | err = r.error(); | 5373 | 294 | } | 5374 | 294 | } | 5375 | | | 5376 | 318 | return unexpected(err); | 5377 | 318 | } |
Unexecuted instantiation: _ZNK3scn2v34impl16bool_reader_base12read_classicINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_Rb _ZNK3scn2v34impl16bool_reader_base12read_classicINS0_6ranges6detail9subrange_8subrangeIPKwS9_EEEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESE_Rb Line | Count | Source | 5354 | 10.3k | { | 5355 | 10.3k | scan_error err{scan_error::invalid_scanned_value, | 5356 | 10.3k | "Failed to read boolean"}; | 5357 | | | 5358 | 10.3k | if (m_options & allow_numeric) { | 5359 | 10.3k | if (auto r = read_numeric(range, value)) { | 5360 | 0 | return *r; | 5361 | 0 | } | 5362 | 10.3k | else { | 5363 | 10.3k | err = r.error(); | 5364 | 10.3k | } | 5365 | 10.3k | } | 5366 | | | 5367 | 10.3k | if (m_options & allow_text) { | 5368 | 10.3k | if (auto r = read_textual_classic(range, value)) { | 5369 | 0 | return *r; | 5370 | 0 | } | 5371 | 10.3k | else { | 5372 | 10.3k | err = r.error(); | 5373 | 10.3k | } | 5374 | 10.3k | } | 5375 | | | 5376 | 10.3k | return unexpected(err); | 5377 | 10.3k | } |
_ZNK3scn2v34impl16bool_reader_base12read_classicINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_Rb Line | Count | Source | 5354 | 148 | { | 5355 | 148 | scan_error err{scan_error::invalid_scanned_value, | 5356 | 148 | "Failed to read boolean"}; | 5357 | | | 5358 | 148 | if (m_options & allow_numeric) { | 5359 | 122 | if (auto r = read_numeric(range, value)) { | 5360 | 0 | return *r; | 5361 | 0 | } | 5362 | 122 | else { | 5363 | 122 | err = r.error(); | 5364 | 122 | } | 5365 | 122 | } | 5366 | | | 5367 | 148 | if (m_options & allow_text) { | 5368 | 128 | if (auto r = read_textual_classic(range, value)) { | 5369 | 0 | return *r; | 5370 | 0 | } | 5371 | 128 | else { | 5372 | 128 | err = r.error(); | 5373 | 128 | } | 5374 | 128 | } | 5375 | | | 5376 | 148 | return unexpected(err); | 5377 | 148 | } |
Unexecuted instantiation: _ZNK3scn2v34impl16bool_reader_base12read_classicINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS4_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_Rb Unexecuted instantiation: _ZNK3scn2v34impl16bool_reader_base12read_classicINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_Rb |
5378 | | |
5379 | | protected: |
5380 | | template <typename Range> |
5381 | | auto read_numeric(Range range, bool& value) const |
5382 | | -> scan_expected<ranges::const_iterator_t<Range>> |
5383 | 11.6k | { |
5384 | 11.6k | if (auto r = read_matching_code_unit(range, '0')) { |
5385 | 0 | value = false; |
5386 | 0 | return *r; |
5387 | 0 | } |
5388 | 11.6k | if (auto r = read_matching_code_unit(range, '1')) { |
5389 | 0 | value = true; |
5390 | 0 | return *r; |
5391 | 0 | } |
5392 | | |
5393 | 11.6k | return unexpected_scan_error( |
5394 | 11.6k | scan_error::invalid_scanned_value, |
5395 | 11.6k | "Failed to read numeric boolean value: No match"); |
5396 | 11.6k | } _ZNK3scn2v34impl16bool_reader_base12read_numericINS0_6ranges6detail9subrange_8subrangeIPKcS9_EEEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESE_Rb Line | Count | Source | 5383 | 878 | { | 5384 | 878 | if (auto r = read_matching_code_unit(range, '0')) { | 5385 | 0 | value = false; | 5386 | 0 | return *r; | 5387 | 0 | } | 5388 | 878 | if (auto r = read_matching_code_unit(range, '1')) { | 5389 | 0 | value = true; | 5390 | 0 | return *r; | 5391 | 0 | } | 5392 | | | 5393 | 878 | return unexpected_scan_error( | 5394 | 878 | scan_error::invalid_scanned_value, | 5395 | 878 | "Failed to read numeric boolean value: No match"); | 5396 | 878 | } |
Unexecuted instantiation: _ZNK3scn2v34impl16bool_reader_base12read_numericINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS4_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_Rb _ZNK3scn2v34impl16bool_reader_base12read_numericINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_Rb Line | Count | Source | 5383 | 272 | { | 5384 | 272 | if (auto r = read_matching_code_unit(range, '0')) { | 5385 | 0 | value = false; | 5386 | 0 | return *r; | 5387 | 0 | } | 5388 | 272 | if (auto r = read_matching_code_unit(range, '1')) { | 5389 | 0 | value = true; | 5390 | 0 | return *r; | 5391 | 0 | } | 5392 | | | 5393 | 272 | return unexpected_scan_error( | 5394 | 272 | scan_error::invalid_scanned_value, | 5395 | 272 | "Failed to read numeric boolean value: No match"); | 5396 | 272 | } |
Unexecuted instantiation: _ZNK3scn2v34impl16bool_reader_base12read_numericINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_Rb _ZNK3scn2v34impl16bool_reader_base12read_numericINS0_6ranges6detail9subrange_8subrangeIPKwS9_EEEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESE_Rb Line | Count | Source | 5383 | 10.3k | { | 5384 | 10.3k | if (auto r = read_matching_code_unit(range, '0')) { | 5385 | 0 | value = false; | 5386 | 0 | return *r; | 5387 | 0 | } | 5388 | 10.3k | if (auto r = read_matching_code_unit(range, '1')) { | 5389 | 0 | value = true; | 5390 | 0 | return *r; | 5391 | 0 | } | 5392 | | | 5393 | 10.3k | return unexpected_scan_error( | 5394 | 10.3k | scan_error::invalid_scanned_value, | 5395 | 10.3k | "Failed to read numeric boolean value: No match"); | 5396 | 10.3k | } |
_ZNK3scn2v34impl16bool_reader_base12read_numericINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_Rb Line | Count | Source | 5383 | 130 | { | 5384 | 130 | if (auto r = read_matching_code_unit(range, '0')) { | 5385 | 0 | value = false; | 5386 | 0 | return *r; | 5387 | 0 | } | 5388 | 130 | if (auto r = read_matching_code_unit(range, '1')) { | 5389 | 0 | value = true; | 5390 | 0 | return *r; | 5391 | 0 | } | 5392 | | | 5393 | 130 | return unexpected_scan_error( | 5394 | 130 | scan_error::invalid_scanned_value, | 5395 | 130 | "Failed to read numeric boolean value: No match"); | 5396 | 130 | } |
Unexecuted instantiation: _ZNK3scn2v34impl16bool_reader_base12read_numericINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS4_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_Rb Unexecuted instantiation: _ZNK3scn2v34impl16bool_reader_base12read_numericINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_Rb |
5397 | | |
5398 | | template <typename Range> |
5399 | | auto read_textual_classic(Range range, bool& value) const |
5400 | | -> scan_expected<ranges::const_iterator_t<Range>> |
5401 | 11.7k | { |
5402 | 11.7k | if (auto r = read_matching_string_classic(range, "true")) { |
5403 | 0 | value = true; |
5404 | 0 | return *r; |
5405 | 0 | } |
5406 | 11.7k | if (auto r = read_matching_string_classic(range, "false")) { |
5407 | 0 | value = false; |
5408 | 0 | return *r; |
5409 | 0 | } |
5410 | | |
5411 | 11.7k | return unexpected_scan_error( |
5412 | 11.7k | scan_error::invalid_scanned_value, |
5413 | 11.7k | "Failed to read textual boolean value: No match"); |
5414 | 11.7k | } _ZNK3scn2v34impl16bool_reader_base20read_textual_classicINS0_6ranges6detail9subrange_8subrangeIPKcS9_EEEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESE_Rb Line | Count | Source | 5401 | 950 | { | 5402 | 950 | if (auto r = read_matching_string_classic(range, "true")) { | 5403 | 0 | value = true; | 5404 | 0 | return *r; | 5405 | 0 | } | 5406 | 950 | if (auto r = read_matching_string_classic(range, "false")) { | 5407 | 0 | value = false; | 5408 | 0 | return *r; | 5409 | 0 | } | 5410 | | | 5411 | 950 | return unexpected_scan_error( | 5412 | 950 | scan_error::invalid_scanned_value, | 5413 | 950 | "Failed to read textual boolean value: No match"); | 5414 | 950 | } |
Unexecuted instantiation: _ZNK3scn2v34impl16bool_reader_base20read_textual_classicINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS4_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_Rb _ZNK3scn2v34impl16bool_reader_base20read_textual_classicINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_Rb Line | Count | Source | 5401 | 294 | { | 5402 | 294 | if (auto r = read_matching_string_classic(range, "true")) { | 5403 | 0 | value = true; | 5404 | 0 | return *r; | 5405 | 0 | } | 5406 | 294 | if (auto r = read_matching_string_classic(range, "false")) { | 5407 | 0 | value = false; | 5408 | 0 | return *r; | 5409 | 0 | } | 5410 | | | 5411 | 294 | return unexpected_scan_error( | 5412 | 294 | scan_error::invalid_scanned_value, | 5413 | 294 | "Failed to read textual boolean value: No match"); | 5414 | 294 | } |
Unexecuted instantiation: _ZNK3scn2v34impl16bool_reader_base20read_textual_classicINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_Rb _ZNK3scn2v34impl16bool_reader_base20read_textual_classicINS0_6ranges6detail9subrange_8subrangeIPKwS9_EEEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESE_Rb Line | Count | Source | 5401 | 10.3k | { | 5402 | 10.3k | if (auto r = read_matching_string_classic(range, "true")) { | 5403 | 0 | value = true; | 5404 | 0 | return *r; | 5405 | 0 | } | 5406 | 10.3k | if (auto r = read_matching_string_classic(range, "false")) { | 5407 | 0 | value = false; | 5408 | 0 | return *r; | 5409 | 0 | } | 5410 | | | 5411 | 10.3k | return unexpected_scan_error( | 5412 | 10.3k | scan_error::invalid_scanned_value, | 5413 | 10.3k | "Failed to read textual boolean value: No match"); | 5414 | 10.3k | } |
_ZNK3scn2v34impl16bool_reader_base20read_textual_classicINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESG_Rb Line | Count | Source | 5401 | 128 | { | 5402 | 128 | if (auto r = read_matching_string_classic(range, "true")) { | 5403 | 0 | value = true; | 5404 | 0 | return *r; | 5405 | 0 | } | 5406 | 128 | if (auto r = read_matching_string_classic(range, "false")) { | 5407 | 0 | value = false; | 5408 | 0 | return *r; | 5409 | 0 | } | 5410 | | | 5411 | 128 | return unexpected_scan_error( | 5412 | 128 | scan_error::invalid_scanned_value, | 5413 | 128 | "Failed to read textual boolean value: No match"); | 5414 | 128 | } |
Unexecuted instantiation: _ZNK3scn2v34impl16bool_reader_base20read_textual_classicINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS4_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_Rb Unexecuted instantiation: _ZNK3scn2v34impl16bool_reader_base20read_textual_classicINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESJ_Rb |
5415 | | |
5416 | | unsigned m_options{allow_text | allow_numeric}; |
5417 | | }; |
5418 | | |
5419 | | template <typename CharT> |
5420 | | struct bool_reader : public bool_reader_base { |
5421 | | using bool_reader_base::bool_reader_base; |
5422 | | |
5423 | | #if !SCN_DISABLE_LOCALE |
5424 | | template <typename Range> |
5425 | | auto read_localized(Range range, detail::locale_ref loc, bool& value) const |
5426 | | -> scan_expected<ranges::const_iterator_t<Range>> |
5427 | 56 | { |
5428 | 56 | scan_error err{scan_error::invalid_scanned_value, |
5429 | 56 | "Failed to read boolean"}; |
5430 | | |
5431 | 56 | if (m_options & allow_numeric) { |
5432 | 48 | if (auto r = read_numeric(range, value)) { |
5433 | 0 | return *r; |
5434 | 0 | } |
5435 | 48 | else { |
5436 | 48 | err = r.error(); |
5437 | 48 | } |
5438 | 48 | } |
5439 | | |
5440 | 56 | if (m_options & allow_text) { |
5441 | 32 | auto stdloc = loc.get<std::locale>(); |
5442 | 32 | const auto& numpunct = |
5443 | 32 | get_or_add_facet<std::numpunct<CharT>>(stdloc); |
5444 | 32 | const auto truename = numpunct.truename(); |
5445 | 32 | const auto falsename = numpunct.falsename(); |
5446 | | |
5447 | 32 | if (auto r = |
5448 | 32 | read_textual_custom(range, value, truename, falsename)) { |
5449 | 0 | return *r; |
5450 | 0 | } |
5451 | 32 | else { |
5452 | 32 | err = r.error(); |
5453 | 32 | } |
5454 | 32 | } |
5455 | | |
5456 | 56 | return unexpected(err); |
5457 | 56 | } _ZNK3scn2v34impl11bool_readerIcE14read_localizedINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_NS0_6detail10locale_refERb Line | Count | Source | 5427 | 12 | { | 5428 | 12 | scan_error err{scan_error::invalid_scanned_value, | 5429 | 12 | "Failed to read boolean"}; | 5430 | | | 5431 | 12 | if (m_options & allow_numeric) { | 5432 | 10 | if (auto r = read_numeric(range, value)) { | 5433 | 0 | return *r; | 5434 | 0 | } | 5435 | 10 | else { | 5436 | 10 | err = r.error(); | 5437 | 10 | } | 5438 | 10 | } | 5439 | | | 5440 | 12 | if (m_options & allow_text) { | 5441 | 10 | auto stdloc = loc.get<std::locale>(); | 5442 | 10 | const auto& numpunct = | 5443 | 10 | get_or_add_facet<std::numpunct<CharT>>(stdloc); | 5444 | 10 | const auto truename = numpunct.truename(); | 5445 | 10 | const auto falsename = numpunct.falsename(); | 5446 | | | 5447 | 10 | if (auto r = | 5448 | 10 | read_textual_custom(range, value, truename, falsename)) { | 5449 | 0 | return *r; | 5450 | 0 | } | 5451 | 10 | else { | 5452 | 10 | err = r.error(); | 5453 | 10 | } | 5454 | 10 | } | 5455 | | | 5456 | 12 | return unexpected(err); | 5457 | 12 | } |
_ZNK3scn2v34impl11bool_readerIcE14read_localizedINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_NS0_6detail10locale_refERb Line | Count | Source | 5427 | 18 | { | 5428 | 18 | scan_error err{scan_error::invalid_scanned_value, | 5429 | 18 | "Failed to read boolean"}; | 5430 | | | 5431 | 18 | if (m_options & allow_numeric) { | 5432 | 14 | if (auto r = read_numeric(range, value)) { | 5433 | 0 | return *r; | 5434 | 0 | } | 5435 | 14 | else { | 5436 | 14 | err = r.error(); | 5437 | 14 | } | 5438 | 14 | } | 5439 | | | 5440 | 18 | if (m_options & allow_text) { | 5441 | 10 | auto stdloc = loc.get<std::locale>(); | 5442 | 10 | const auto& numpunct = | 5443 | 10 | get_or_add_facet<std::numpunct<CharT>>(stdloc); | 5444 | 10 | const auto truename = numpunct.truename(); | 5445 | 10 | const auto falsename = numpunct.falsename(); | 5446 | | | 5447 | 10 | if (auto r = | 5448 | 10 | read_textual_custom(range, value, truename, falsename)) { | 5449 | 0 | return *r; | 5450 | 0 | } | 5451 | 10 | else { | 5452 | 10 | err = r.error(); | 5453 | 10 | } | 5454 | 10 | } | 5455 | | | 5456 | 18 | return unexpected(err); | 5457 | 18 | } |
Unexecuted instantiation: _ZNK3scn2v34impl11bool_readerIcE14read_localizedINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_NSA_10locale_refERb Unexecuted instantiation: _ZNK3scn2v34impl11bool_readerIcE14read_localizedINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_NS9_10locale_refERb _ZNK3scn2v34impl11bool_readerIwE14read_localizedINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_NS0_6detail10locale_refERb Line | Count | Source | 5427 | 8 | { | 5428 | 8 | scan_error err{scan_error::invalid_scanned_value, | 5429 | 8 | "Failed to read boolean"}; | 5430 | | | 5431 | 8 | if (m_options & allow_numeric) { | 5432 | 8 | if (auto r = read_numeric(range, value)) { | 5433 | 0 | return *r; | 5434 | 0 | } | 5435 | 8 | else { | 5436 | 8 | err = r.error(); | 5437 | 8 | } | 5438 | 8 | } | 5439 | | | 5440 | 8 | if (m_options & allow_text) { | 5441 | 6 | auto stdloc = loc.get<std::locale>(); | 5442 | 6 | const auto& numpunct = | 5443 | 6 | get_or_add_facet<std::numpunct<CharT>>(stdloc); | 5444 | 6 | const auto truename = numpunct.truename(); | 5445 | 6 | const auto falsename = numpunct.falsename(); | 5446 | | | 5447 | 6 | if (auto r = | 5448 | 6 | read_textual_custom(range, value, truename, falsename)) { | 5449 | 0 | return *r; | 5450 | 0 | } | 5451 | 6 | else { | 5452 | 6 | err = r.error(); | 5453 | 6 | } | 5454 | 6 | } | 5455 | | | 5456 | 8 | return unexpected(err); | 5457 | 8 | } |
_ZNK3scn2v34impl11bool_readerIwE14read_localizedINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_NS0_6detail10locale_refERb Line | Count | Source | 5427 | 18 | { | 5428 | 18 | scan_error err{scan_error::invalid_scanned_value, | 5429 | 18 | "Failed to read boolean"}; | 5430 | | | 5431 | 18 | if (m_options & allow_numeric) { | 5432 | 16 | if (auto r = read_numeric(range, value)) { | 5433 | 0 | return *r; | 5434 | 0 | } | 5435 | 16 | else { | 5436 | 16 | err = r.error(); | 5437 | 16 | } | 5438 | 16 | } | 5439 | | | 5440 | 18 | if (m_options & allow_text) { | 5441 | 6 | auto stdloc = loc.get<std::locale>(); | 5442 | 6 | const auto& numpunct = | 5443 | 6 | get_or_add_facet<std::numpunct<CharT>>(stdloc); | 5444 | 6 | const auto truename = numpunct.truename(); | 5445 | 6 | const auto falsename = numpunct.falsename(); | 5446 | | | 5447 | 6 | if (auto r = | 5448 | 6 | read_textual_custom(range, value, truename, falsename)) { | 5449 | 0 | return *r; | 5450 | 0 | } | 5451 | 6 | else { | 5452 | 6 | err = r.error(); | 5453 | 6 | } | 5454 | 6 | } | 5455 | | | 5456 | 18 | return unexpected(err); | 5457 | 18 | } |
Unexecuted instantiation: _ZNK3scn2v34impl11bool_readerIwE14read_localizedINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_NSA_10locale_refERb Unexecuted instantiation: _ZNK3scn2v34impl11bool_readerIwE14read_localizedINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_NS9_10locale_refERb |
5458 | | #endif |
5459 | | |
5460 | | protected: |
5461 | | template <typename Range> |
5462 | | auto read_textual_custom(Range range, |
5463 | | bool& value, |
5464 | | std::basic_string_view<CharT> truename, |
5465 | | std::basic_string_view<CharT> falsename) const |
5466 | | -> scan_expected<ranges::const_iterator_t<Range>> |
5467 | 32 | { |
5468 | 32 | const auto is_truename_shorter = truename.size() <= falsename.size(); |
5469 | 32 | const auto shorter = std::pair{ |
5470 | 32 | is_truename_shorter ? truename : falsename, is_truename_shorter}; |
5471 | 32 | const auto longer = std::pair{ |
5472 | 32 | !is_truename_shorter ? truename : falsename, !is_truename_shorter}; |
5473 | | |
5474 | 32 | if (auto r = read_matching_string(range, shorter.first)) { |
5475 | 0 | value = shorter.second; |
5476 | 0 | return *r; |
5477 | 0 | } |
5478 | 32 | if (auto r = read_matching_string(range, longer.first)) { |
5479 | 0 | value = longer.second; |
5480 | 0 | return *r; |
5481 | 0 | } |
5482 | | |
5483 | 32 | return unexpected_scan_error(scan_error::invalid_scanned_value, |
5484 | 32 | "read_textual: No match"); |
5485 | 32 | } _ZNK3scn2v34impl11bool_readerIcE19read_textual_customINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RbNSF_17basic_string_viewIcNSF_11char_traitsIcEEEESR_ Line | Count | Source | 5467 | 10 | { | 5468 | 10 | const auto is_truename_shorter = truename.size() <= falsename.size(); | 5469 | 10 | const auto shorter = std::pair{ | 5470 | 10 | is_truename_shorter ? truename : falsename, is_truename_shorter}; | 5471 | 10 | const auto longer = std::pair{ | 5472 | 10 | !is_truename_shorter ? truename : falsename, !is_truename_shorter}; | 5473 | | | 5474 | 10 | if (auto r = read_matching_string(range, shorter.first)) { | 5475 | 0 | value = shorter.second; | 5476 | 0 | return *r; | 5477 | 0 | } | 5478 | 10 | if (auto r = read_matching_string(range, longer.first)) { | 5479 | 0 | value = longer.second; | 5480 | 0 | return *r; | 5481 | 0 | } | 5482 | | | 5483 | 10 | return unexpected_scan_error(scan_error::invalid_scanned_value, | 5484 | 10 | "read_textual: No match"); | 5485 | 10 | } |
_ZNK3scn2v34impl11bool_readerIcE19read_textual_customINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RbNSD_17basic_string_viewIcNSD_11char_traitsIcEEEESP_ Line | Count | Source | 5467 | 10 | { | 5468 | 10 | const auto is_truename_shorter = truename.size() <= falsename.size(); | 5469 | 10 | const auto shorter = std::pair{ | 5470 | 10 | is_truename_shorter ? truename : falsename, is_truename_shorter}; | 5471 | 10 | const auto longer = std::pair{ | 5472 | 10 | !is_truename_shorter ? truename : falsename, !is_truename_shorter}; | 5473 | | | 5474 | 10 | if (auto r = read_matching_string(range, shorter.first)) { | 5475 | 0 | value = shorter.second; | 5476 | 0 | return *r; | 5477 | 0 | } | 5478 | 10 | if (auto r = read_matching_string(range, longer.first)) { | 5479 | 0 | value = longer.second; | 5480 | 0 | return *r; | 5481 | 0 | } | 5482 | | | 5483 | 10 | return unexpected_scan_error(scan_error::invalid_scanned_value, | 5484 | 10 | "read_textual: No match"); | 5485 | 10 | } |
Unexecuted instantiation: _ZNK3scn2v34impl11bool_readerIcE19read_textual_customINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RbNSI_17basic_string_viewIcNSI_11char_traitsIcEEEESU_ Unexecuted instantiation: _ZNK3scn2v34impl11bool_readerIcE19read_textual_customINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RbNSG_17basic_string_viewIcNSG_11char_traitsIcEEEESS_ _ZNK3scn2v34impl11bool_readerIwE19read_textual_customINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RbNSF_17basic_string_viewIwNSF_11char_traitsIwEEEESR_ Line | Count | Source | 5467 | 6 | { | 5468 | 6 | const auto is_truename_shorter = truename.size() <= falsename.size(); | 5469 | 6 | const auto shorter = std::pair{ | 5470 | 6 | is_truename_shorter ? truename : falsename, is_truename_shorter}; | 5471 | 6 | const auto longer = std::pair{ | 5472 | 6 | !is_truename_shorter ? truename : falsename, !is_truename_shorter}; | 5473 | | | 5474 | 6 | if (auto r = read_matching_string(range, shorter.first)) { | 5475 | 0 | value = shorter.second; | 5476 | 0 | return *r; | 5477 | 0 | } | 5478 | 6 | if (auto r = read_matching_string(range, longer.first)) { | 5479 | 0 | value = longer.second; | 5480 | 0 | return *r; | 5481 | 0 | } | 5482 | | | 5483 | 6 | return unexpected_scan_error(scan_error::invalid_scanned_value, | 5484 | 6 | "read_textual: No match"); | 5485 | 6 | } |
_ZNK3scn2v34impl11bool_readerIwE19read_textual_customINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RbNSD_17basic_string_viewIwNSD_11char_traitsIwEEEESP_ Line | Count | Source | 5467 | 6 | { | 5468 | 6 | const auto is_truename_shorter = truename.size() <= falsename.size(); | 5469 | 6 | const auto shorter = std::pair{ | 5470 | 6 | is_truename_shorter ? truename : falsename, is_truename_shorter}; | 5471 | 6 | const auto longer = std::pair{ | 5472 | 6 | !is_truename_shorter ? truename : falsename, !is_truename_shorter}; | 5473 | | | 5474 | 6 | if (auto r = read_matching_string(range, shorter.first)) { | 5475 | 0 | value = shorter.second; | 5476 | 0 | return *r; | 5477 | 0 | } | 5478 | 6 | if (auto r = read_matching_string(range, longer.first)) { | 5479 | 0 | value = longer.second; | 5480 | 0 | return *r; | 5481 | 0 | } | 5482 | | | 5483 | 6 | return unexpected_scan_error(scan_error::invalid_scanned_value, | 5484 | 6 | "read_textual: No match"); | 5485 | 6 | } |
Unexecuted instantiation: _ZNK3scn2v34impl11bool_readerIwE19read_textual_customINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RbNSI_17basic_string_viewIwNSI_11char_traitsIwEEEESU_ Unexecuted instantiation: _ZNK3scn2v34impl11bool_readerIwE19read_textual_customINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RbNSG_17basic_string_viewIwNSG_11char_traitsIwEEEESS_ |
5486 | | }; |
5487 | | |
5488 | | template <typename CharT> |
5489 | | class reader_impl_for_bool |
5490 | | : public reader_base<reader_impl_for_bool<CharT>, CharT> { |
5491 | | public: |
5492 | | reader_impl_for_bool() = default; |
5493 | | |
5494 | | void check_specs_impl(const detail::format_specs& specs, |
5495 | | reader_error_handler& eh) |
5496 | 7.57k | { |
5497 | 7.57k | detail::check_bool_type_specs(specs, eh); |
5498 | 7.57k | } scn::v3::impl::reader_impl_for_bool<char>::check_specs_impl(scn::v3::detail::format_specs const&, scn::v3::impl::reader_error_handler&) Line | Count | Source | 5496 | 5.13k | { | 5497 | 5.13k | detail::check_bool_type_specs(specs, eh); | 5498 | 5.13k | } |
scn::v3::impl::reader_impl_for_bool<wchar_t>::check_specs_impl(scn::v3::detail::format_specs const&, scn::v3::impl::reader_error_handler&) Line | Count | Source | 5496 | 2.44k | { | 5497 | 2.44k | detail::check_bool_type_specs(specs, eh); | 5498 | 2.44k | } |
|
5499 | | |
5500 | | template <typename Range> |
5501 | | auto read_default(Range range, bool& value, detail::locale_ref loc) const |
5502 | | -> scan_expected<ranges::const_iterator_t<Range>> |
5503 | 10.6k | { |
5504 | 10.6k | SCN_UNUSED(loc); |
5505 | | |
5506 | 10.6k | return bool_reader<CharT>{}.read_classic(range, value); |
5507 | 10.6k | } _ZNK3scn2v34impl20reader_impl_for_boolIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RbNS0_6detail10locale_refE Line | Count | Source | 5503 | 628 | { | 5504 | 628 | SCN_UNUSED(loc); | 5505 | | | 5506 | 628 | return bool_reader<CharT>{}.read_classic(range, value); | 5507 | 628 | } |
Unexecuted instantiation: _ZNK3scn2v34impl20reader_impl_for_boolIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RbNS9_10locale_refE _ZNK3scn2v34impl20reader_impl_for_boolIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RbNS0_6detail10locale_refE Line | Count | Source | 5503 | 10.0k | { | 5504 | 10.0k | SCN_UNUSED(loc); | 5505 | | | 5506 | 10.0k | return bool_reader<CharT>{}.read_classic(range, value); | 5507 | 10.0k | } |
Unexecuted instantiation: _ZNK3scn2v34impl20reader_impl_for_boolIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RbNS9_10locale_refE |
5508 | | |
5509 | | template <typename Range> |
5510 | | auto read_specs(Range range, |
5511 | | const detail::format_specs& specs, |
5512 | | bool& value, |
5513 | | detail::locale_ref loc) const |
5514 | | -> scan_expected<ranges::const_iterator_t<Range>> |
5515 | 1.22k | { |
5516 | 1.22k | const auto rd = bool_reader<CharT>{get_options(specs)}; |
5517 | | |
5518 | 1.22k | #if !SCN_DISABLE_LOCALE |
5519 | 1.22k | if (specs.localized) { |
5520 | 56 | return rd.read_localized(range, loc, value); |
5521 | 56 | } |
5522 | 1.17k | #endif |
5523 | | |
5524 | 1.17k | return rd.read_classic(range, value); |
5525 | 1.22k | } _ZNK3scn2v34impl20reader_impl_for_boolIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERbNSN_10locale_refE Line | Count | Source | 5515 | 330 | { | 5516 | 330 | const auto rd = bool_reader<CharT>{get_options(specs)}; | 5517 | | | 5518 | 330 | #if !SCN_DISABLE_LOCALE | 5519 | 330 | if (specs.localized) { | 5520 | 12 | return rd.read_localized(range, loc, value); | 5521 | 12 | } | 5522 | 318 | #endif | 5523 | | | 5524 | 318 | return rd.read_classic(range, value); | 5525 | 330 | } |
_ZNK3scn2v34impl20reader_impl_for_boolIcE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERbNSL_10locale_refE Line | Count | Source | 5515 | 362 | { | 5516 | 362 | const auto rd = bool_reader<CharT>{get_options(specs)}; | 5517 | | | 5518 | 362 | #if !SCN_DISABLE_LOCALE | 5519 | 362 | if (specs.localized) { | 5520 | 18 | return rd.read_localized(range, loc, value); | 5521 | 18 | } | 5522 | 344 | #endif | 5523 | | | 5524 | 344 | return rd.read_classic(range, value); | 5525 | 362 | } |
Unexecuted instantiation: _ZNK3scn2v34impl20reader_impl_for_boolIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERbNSA_10locale_refE Unexecuted instantiation: _ZNK3scn2v34impl20reader_impl_for_boolIcE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERbNS9_10locale_refE _ZNK3scn2v34impl20reader_impl_for_boolIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERbNSN_10locale_refE Line | Count | Source | 5515 | 156 | { | 5516 | 156 | const auto rd = bool_reader<CharT>{get_options(specs)}; | 5517 | | | 5518 | 156 | #if !SCN_DISABLE_LOCALE | 5519 | 156 | if (specs.localized) { | 5520 | 8 | return rd.read_localized(range, loc, value); | 5521 | 8 | } | 5522 | 148 | #endif | 5523 | | | 5524 | 148 | return rd.read_classic(range, value); | 5525 | 156 | } |
_ZNK3scn2v34impl20reader_impl_for_boolIwE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERbNSL_10locale_refE Line | Count | Source | 5515 | 380 | { | 5516 | 380 | const auto rd = bool_reader<CharT>{get_options(specs)}; | 5517 | | | 5518 | 380 | #if !SCN_DISABLE_LOCALE | 5519 | 380 | if (specs.localized) { | 5520 | 18 | return rd.read_localized(range, loc, value); | 5521 | 18 | } | 5522 | 362 | #endif | 5523 | | | 5524 | 362 | return rd.read_classic(range, value); | 5525 | 380 | } |
Unexecuted instantiation: _ZNK3scn2v34impl20reader_impl_for_boolIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERbNSA_10locale_refE Unexecuted instantiation: _ZNK3scn2v34impl20reader_impl_for_boolIwE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERbNS9_10locale_refE |
5526 | | |
5527 | | static constexpr unsigned get_options(const detail::format_specs& specs) |
5528 | 1.22k | { |
5529 | 1.22k | SCN_GCC_COMPAT_PUSH |
5530 | 1.22k | SCN_GCC_COMPAT_IGNORE("-Wswitch-enum") |
5531 | | |
5532 | 1.22k | switch (specs.type) { |
5533 | 236 | case detail::presentation_type::string: |
5534 | 236 | return bool_reader_base::allow_text; |
5535 | | |
5536 | 24 | case detail::presentation_type::int_generic: |
5537 | 42 | case detail::presentation_type::int_binary: |
5538 | 54 | case detail::presentation_type::int_decimal: |
5539 | 72 | case detail::presentation_type::int_hex: |
5540 | 96 | case detail::presentation_type::int_octal: |
5541 | 110 | case detail::presentation_type::int_unsigned_decimal: |
5542 | 110 | return bool_reader_base::allow_numeric; |
5543 | | |
5544 | 882 | default: |
5545 | 882 | return bool_reader_base::allow_text | |
5546 | 882 | bool_reader_base::allow_numeric; |
5547 | 1.22k | } |
5548 | | |
5549 | | SCN_GCC_COMPAT_POP // -Wswitch-enum |
5550 | 1.22k | } scn::v3::impl::reader_impl_for_bool<char>::get_options(scn::v3::detail::format_specs const&) Line | Count | Source | 5528 | 692 | { | 5529 | 692 | SCN_GCC_COMPAT_PUSH | 5530 | 692 | SCN_GCC_COMPAT_IGNORE("-Wswitch-enum") | 5531 | | | 5532 | 692 | switch (specs.type) { | 5533 | 170 | case detail::presentation_type::string: | 5534 | 170 | return bool_reader_base::allow_text; | 5535 | | | 5536 | 10 | case detail::presentation_type::int_generic: | 5537 | 20 | case detail::presentation_type::int_binary: | 5538 | 26 | case detail::presentation_type::int_decimal: | 5539 | 36 | case detail::presentation_type::int_hex: | 5540 | 52 | case detail::presentation_type::int_octal: | 5541 | 56 | case detail::presentation_type::int_unsigned_decimal: | 5542 | 56 | return bool_reader_base::allow_numeric; | 5543 | | | 5544 | 466 | default: | 5545 | 466 | return bool_reader_base::allow_text | | 5546 | 466 | bool_reader_base::allow_numeric; | 5547 | 692 | } | 5548 | | | 5549 | | SCN_GCC_COMPAT_POP // -Wswitch-enum | 5550 | 692 | } |
scn::v3::impl::reader_impl_for_bool<wchar_t>::get_options(scn::v3::detail::format_specs const&) Line | Count | Source | 5528 | 536 | { | 5529 | 536 | SCN_GCC_COMPAT_PUSH | 5530 | 536 | SCN_GCC_COMPAT_IGNORE("-Wswitch-enum") | 5531 | | | 5532 | 536 | switch (specs.type) { | 5533 | 66 | case detail::presentation_type::string: | 5534 | 66 | return bool_reader_base::allow_text; | 5535 | | | 5536 | 14 | case detail::presentation_type::int_generic: | 5537 | 22 | case detail::presentation_type::int_binary: | 5538 | 28 | case detail::presentation_type::int_decimal: | 5539 | 36 | case detail::presentation_type::int_hex: | 5540 | 44 | case detail::presentation_type::int_octal: | 5541 | 54 | case detail::presentation_type::int_unsigned_decimal: | 5542 | 54 | return bool_reader_base::allow_numeric; | 5543 | | | 5544 | 416 | default: | 5545 | 416 | return bool_reader_base::allow_text | | 5546 | 416 | bool_reader_base::allow_numeric; | 5547 | 536 | } | 5548 | | | 5549 | | SCN_GCC_COMPAT_POP // -Wswitch-enum | 5550 | 536 | } |
|
5551 | | }; |
5552 | | |
5553 | | ///////////////////////////////////////////////////////////////// |
5554 | | // Character (code unit, code point) reader |
5555 | | ///////////////////////////////////////////////////////////////// |
5556 | | |
5557 | | template <typename CharT> |
5558 | | class code_unit_reader { |
5559 | | public: |
5560 | | template <typename SourceRange> |
5561 | | auto read(const SourceRange& range, CharT& ch) |
5562 | | -> scan_expected<ranges::const_iterator_t<SourceRange>> |
5563 | 11.5k | { |
5564 | 11.5k | SCN_TRY(it, read_code_unit(range).transform_error(make_eof_scan_error)); |
5565 | 11.5k | ch = *range.begin(); |
5566 | 11.5k | return it; |
5567 | 11.5k | } Unexecuted instantiation: _ZN3scn2v34impl16code_unit_readerIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEERKSK_Rc Unexecuted instantiation: _ZN3scn2v34impl16code_unit_readerIcE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEERKSI_Rc _ZN3scn2v34impl16code_unit_readerIcE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEERKSH_Rc Line | Count | Source | 5563 | 250 | { | 5564 | 250 | SCN_TRY(it, read_code_unit(range).transform_error(make_eof_scan_error)); | 5565 | 250 | ch = *range.begin(); | 5566 | 250 | return it; | 5567 | 250 | } |
_ZN3scn2v34impl16code_unit_readerIcE4readINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEERKSF_Rc Line | Count | Source | 5563 | 842 | { | 5564 | 842 | SCN_TRY(it, read_code_unit(range).transform_error(make_eof_scan_error)); | 5565 | 842 | ch = *range.begin(); | 5566 | 842 | return it; | 5567 | 842 | } |
Unexecuted instantiation: _ZN3scn2v34impl16code_unit_readerIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEERKSK_Rw Unexecuted instantiation: _ZN3scn2v34impl16code_unit_readerIwE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEERKSI_Rw _ZN3scn2v34impl16code_unit_readerIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEERKSH_Rw Line | Count | Source | 5563 | 102 | { | 5564 | 102 | SCN_TRY(it, read_code_unit(range).transform_error(make_eof_scan_error)); | 5565 | 102 | ch = *range.begin(); | 5566 | 102 | return it; | 5567 | 102 | } |
_ZN3scn2v34impl16code_unit_readerIwE4readINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEERKSF_Rw Line | Count | Source | 5563 | 10.3k | { | 5564 | 10.3k | SCN_TRY(it, read_code_unit(range).transform_error(make_eof_scan_error)); | 5565 | 10.3k | ch = *range.begin(); | 5566 | 10.3k | return it; | 5567 | 10.3k | } |
|
5568 | | }; |
5569 | | |
5570 | | template <typename CharT> |
5571 | | class code_point_reader; |
5572 | | |
5573 | | template <> |
5574 | | class code_point_reader<char32_t> { |
5575 | | public: |
5576 | | template <typename SourceRange> |
5577 | | auto read(const SourceRange& range, char32_t& cp) |
5578 | | -> scan_expected<ranges::const_iterator_t<SourceRange>> |
5579 | 0 | { |
5580 | 0 | auto result = read_code_point_into(range); |
5581 | 0 | if (SCN_UNLIKELY(!result.is_valid())) { |
5582 | 0 | return unexpected_scan_error(scan_error::invalid_scanned_value, |
5583 | 0 | "Invalid code point"); |
5584 | 0 | } |
5585 | 0 | cp = detail::decode_code_point_exhaustive_valid( |
5586 | 0 | std::basic_string_view<detail::char_t<SourceRange>>{ |
5587 | 0 | result.codepoint}); |
5588 | 0 | return result.iterator; |
5589 | 0 | } Unexecuted instantiation: _ZN3scn2v34impl17code_point_readerIDiE4readINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEERKSF_RDi Unexecuted instantiation: _ZN3scn2v34impl17code_point_readerIDiE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEERKSI_RDi Unexecuted instantiation: _ZN3scn2v34impl17code_point_readerIDiE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEERKSH_RDi Unexecuted instantiation: _ZN3scn2v34impl17code_point_readerIDiE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEERKSK_RDi Unexecuted instantiation: _ZN3scn2v34impl17code_point_readerIDiE4readINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEERKSF_RDi Unexecuted instantiation: _ZN3scn2v34impl17code_point_readerIDiE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEERKSH_RDi Unexecuted instantiation: _ZN3scn2v34impl17code_point_readerIDiE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEERKSI_RDi Unexecuted instantiation: _ZN3scn2v34impl17code_point_readerIDiE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEERKSK_RDi |
5590 | | }; |
5591 | | |
5592 | | template <> |
5593 | | class code_point_reader<wchar_t> { |
5594 | | public: |
5595 | | template <typename SourceRange> |
5596 | | auto read(const SourceRange& range, wchar_t& ch) |
5597 | | -> scan_expected<ranges::const_iterator_t<SourceRange>> |
5598 | 0 | { |
5599 | 0 | code_point_reader<char32_t> reader{}; |
5600 | 0 | char32_t cp{}; |
5601 | 0 | auto ret = reader.read(range, cp); |
5602 | 0 | if (SCN_UNLIKELY(!ret)) { |
5603 | 0 | return unexpected(ret.error()); |
5604 | 0 | } |
5605 | | |
5606 | 0 | SCN_TRY(encoded_ch, encode_code_point_as_wide_character(cp, true)); |
5607 | 0 | ch = encoded_ch; |
5608 | 0 | return *ret; |
5609 | 0 | } Unexecuted instantiation: _ZN3scn2v34impl17code_point_readerIwE4readINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEERKSF_Rw Unexecuted instantiation: _ZN3scn2v34impl17code_point_readerIwE4readINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEERKSI_Rw Unexecuted instantiation: _ZN3scn2v34impl17code_point_readerIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEERKSH_Rw Unexecuted instantiation: _ZN3scn2v34impl17code_point_readerIwE4readINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEERKSK_Rw |
5610 | | }; |
5611 | | |
5612 | | template <typename ValueCharT> |
5613 | | class char_reader_base { |
5614 | | public: |
5615 | | constexpr char_reader_base() = default; |
5616 | | |
5617 | | bool skip_ws_before_read() const |
5618 | 12.4k | { |
5619 | 12.4k | return false; |
5620 | 12.4k | } scn::v3::impl::char_reader_base<char>::skip_ws_before_read() const Line | Count | Source | 5618 | 1.61k | { | 5619 | 1.61k | return false; | 5620 | 1.61k | } |
scn::v3::impl::char_reader_base<wchar_t>::skip_ws_before_read() const Line | Count | Source | 5618 | 10.8k | { | 5619 | 10.8k | return false; | 5620 | 10.8k | } |
Unexecuted instantiation: scn::v3::impl::char_reader_base<char32_t>::skip_ws_before_read() const |
5621 | | |
5622 | | static scan_error check_specs(const detail::format_specs& specs) |
5623 | 7.51k | { |
5624 | 7.51k | reader_error_handler eh{}; |
5625 | 7.51k | if constexpr (std::is_same_v<ValueCharT, char32_t>) { |
5626 | 7.51k | detail::check_code_point_type_specs(specs, eh); |
5627 | 7.51k | } |
5628 | 7.51k | else { |
5629 | 7.51k | detail::check_char_type_specs(specs, eh); |
5630 | 7.51k | } |
5631 | 7.51k | if (SCN_UNLIKELY(!eh)) { |
5632 | 6.54k | return {scan_error::invalid_format_string, eh.m_msg}; |
5633 | 6.54k | } |
5634 | 972 | return {}; |
5635 | 7.51k | } scn::v3::impl::char_reader_base<char>::check_specs(scn::v3::detail::format_specs const&) Line | Count | Source | 5623 | 5.09k | { | 5624 | 5.09k | reader_error_handler eh{}; | 5625 | 5.09k | if constexpr (std::is_same_v<ValueCharT, char32_t>) { | 5626 | 5.09k | detail::check_code_point_type_specs(specs, eh); | 5627 | 5.09k | } | 5628 | 5.09k | else { | 5629 | 5.09k | detail::check_char_type_specs(specs, eh); | 5630 | 5.09k | } | 5631 | 5.09k | if (SCN_UNLIKELY(!eh)) { | 5632 | 4.57k | return {scan_error::invalid_format_string, eh.m_msg}; | 5633 | 4.57k | } | 5634 | 524 | return {}; | 5635 | 5.09k | } |
scn::v3::impl::char_reader_base<wchar_t>::check_specs(scn::v3::detail::format_specs const&) Line | Count | Source | 5623 | 2.42k | { | 5624 | 2.42k | reader_error_handler eh{}; | 5625 | 2.42k | if constexpr (std::is_same_v<ValueCharT, char32_t>) { | 5626 | 2.42k | detail::check_code_point_type_specs(specs, eh); | 5627 | 2.42k | } | 5628 | 2.42k | else { | 5629 | 2.42k | detail::check_char_type_specs(specs, eh); | 5630 | 2.42k | } | 5631 | 2.42k | if (SCN_UNLIKELY(!eh)) { | 5632 | 1.97k | return {scan_error::invalid_format_string, eh.m_msg}; | 5633 | 1.97k | } | 5634 | 448 | return {}; | 5635 | 2.42k | } |
Unexecuted instantiation: scn::v3::impl::char_reader_base<char32_t>::check_specs(scn::v3::detail::format_specs const&) |
5636 | | }; |
5637 | | |
5638 | | template <typename CharT> |
5639 | | class reader_impl_for_char : public char_reader_base<char> { |
5640 | | public: |
5641 | | template <typename Range> |
5642 | | auto read_default(Range range, char& value, detail::locale_ref loc) |
5643 | | -> scan_expected<ranges::const_iterator_t<Range>> |
5644 | 1.09k | { |
5645 | 1.09k | SCN_UNUSED(loc); |
5646 | 1.09k | if constexpr (std::is_same_v<CharT, char>) { |
5647 | 0 | return code_unit_reader<char>{}.read(range, value); |
5648 | 0 | } |
5649 | 0 | else { |
5650 | 0 | SCN_UNUSED(range); |
5651 | 0 | SCN_EXPECT(false); |
5652 | 0 | SCN_UNREACHABLE; |
5653 | 0 | } |
5654 | 1.09k | } Unexecuted instantiation: _ZN3scn2v34impl20reader_impl_for_charIcE12read_defaultINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RcNSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl20reader_impl_for_charIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RcNS9_10locale_refE _ZN3scn2v34impl20reader_impl_for_charIcE12read_defaultINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RcNS0_6detail10locale_refE Line | Count | Source | 5644 | 250 | { | 5645 | 250 | SCN_UNUSED(loc); | 5646 | 250 | if constexpr (std::is_same_v<CharT, char>) { | 5647 | 250 | return code_unit_reader<char>{}.read(range, value); | 5648 | 250 | } | 5649 | 250 | else { | 5650 | 250 | SCN_UNUSED(range); | 5651 | 250 | SCN_EXPECT(false); | 5652 | 250 | SCN_UNREACHABLE; | 5653 | 250 | } | 5654 | 250 | } |
_ZN3scn2v34impl20reader_impl_for_charIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RcNS0_6detail10locale_refE Line | Count | Source | 5644 | 842 | { | 5645 | 842 | SCN_UNUSED(loc); | 5646 | 842 | if constexpr (std::is_same_v<CharT, char>) { | 5647 | 842 | return code_unit_reader<char>{}.read(range, value); | 5648 | 842 | } | 5649 | 842 | else { | 5650 | 842 | SCN_UNUSED(range); | 5651 | 842 | SCN_EXPECT(false); | 5652 | 842 | SCN_UNREACHABLE; | 5653 | 842 | } | 5654 | 842 | } |
Unexecuted instantiation: _ZN3scn2v34impl20reader_impl_for_charIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RcNS0_6detail10locale_refE Unexecuted instantiation: _ZN3scn2v34impl20reader_impl_for_charIwE12read_defaultINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RcNS0_6detail10locale_refE Unexecuted instantiation: _ZN3scn2v34impl20reader_impl_for_charIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RcNS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl20reader_impl_for_charIwE12read_defaultINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RcNSA_10locale_refE |
5655 | | |
5656 | | template <typename Range> |
5657 | | auto read_specs(Range range, |
5658 | | const detail::format_specs& specs, |
5659 | | char& value, |
5660 | | detail::locale_ref loc) |
5661 | | -> scan_expected<ranges::const_iterator_t<Range>> |
5662 | 518 | { |
5663 | 518 | if (specs.type == detail::presentation_type::none || |
5664 | 518 | specs.type == detail::presentation_type::character) { |
5665 | 464 | return read_default(range, value, loc); |
5666 | 464 | } |
5667 | | |
5668 | 54 | reader_impl_for_int<CharT> reader{}; |
5669 | 54 | signed char tmp_value{}; |
5670 | 54 | auto ret = reader.read_specs(range, specs, tmp_value, loc); |
5671 | 54 | value = static_cast<signed char>(value); |
5672 | 54 | return ret; |
5673 | 518 | } Unexecuted instantiation: _ZN3scn2v34impl20reader_impl_for_charIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERcNSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl20reader_impl_for_charIcE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERcNS9_10locale_refE _ZN3scn2v34impl20reader_impl_for_charIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERcNSN_10locale_refE Line | Count | Source | 5662 | 282 | { | 5663 | 282 | if (specs.type == detail::presentation_type::none || | 5664 | 282 | specs.type == detail::presentation_type::character) { | 5665 | 250 | return read_default(range, value, loc); | 5666 | 250 | } | 5667 | | | 5668 | 32 | reader_impl_for_int<CharT> reader{}; | 5669 | 32 | signed char tmp_value{}; | 5670 | 32 | auto ret = reader.read_specs(range, specs, tmp_value, loc); | 5671 | 32 | value = static_cast<signed char>(value); | 5672 | 32 | return ret; | 5673 | 282 | } |
_ZN3scn2v34impl20reader_impl_for_charIcE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERcNSL_10locale_refE Line | Count | Source | 5662 | 236 | { | 5663 | 236 | if (specs.type == detail::presentation_type::none || | 5664 | 236 | specs.type == detail::presentation_type::character) { | 5665 | 214 | return read_default(range, value, loc); | 5666 | 214 | } | 5667 | | | 5668 | 22 | reader_impl_for_int<CharT> reader{}; | 5669 | 22 | signed char tmp_value{}; | 5670 | 22 | auto ret = reader.read_specs(range, specs, tmp_value, loc); | 5671 | 22 | value = static_cast<signed char>(value); | 5672 | 22 | return ret; | 5673 | 236 | } |
Unexecuted instantiation: _ZN3scn2v34impl20reader_impl_for_charIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERcNSN_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl20reader_impl_for_charIwE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERcNSL_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl20reader_impl_for_charIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERcNSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl20reader_impl_for_charIwE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERcNS9_10locale_refE |
5674 | | }; |
5675 | | |
5676 | | template <typename CharT> |
5677 | | class reader_impl_for_wchar : public char_reader_base<wchar_t> { |
5678 | | public: |
5679 | | template <typename Range> |
5680 | | auto read_default(Range range, wchar_t& value, detail::locale_ref loc) |
5681 | | -> scan_expected<ranges::const_iterator_t<Range>> |
5682 | 10.4k | { |
5683 | 10.4k | SCN_UNUSED(loc); |
5684 | 10.4k | if constexpr (std::is_same_v<CharT, char>) { |
5685 | 10.4k | return code_point_reader<wchar_t>{}.read(range, value); |
5686 | 10.4k | } |
5687 | 10.4k | else { |
5688 | 10.4k | return code_unit_reader<wchar_t>{}.read(range, value); |
5689 | 10.4k | } |
5690 | 10.4k | } Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_wcharIwE12read_defaultINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RwNSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_wcharIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RwNS9_10locale_refE _ZN3scn2v34impl21reader_impl_for_wcharIwE12read_defaultINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RwNS0_6detail10locale_refE Line | Count | Source | 5682 | 102 | { | 5683 | 102 | SCN_UNUSED(loc); | 5684 | 102 | if constexpr (std::is_same_v<CharT, char>) { | 5685 | 102 | return code_point_reader<wchar_t>{}.read(range, value); | 5686 | 102 | } | 5687 | 102 | else { | 5688 | 102 | return code_unit_reader<wchar_t>{}.read(range, value); | 5689 | 102 | } | 5690 | 102 | } |
_ZN3scn2v34impl21reader_impl_for_wcharIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RwNS0_6detail10locale_refE Line | Count | Source | 5682 | 10.3k | { | 5683 | 10.3k | SCN_UNUSED(loc); | 5684 | 10.3k | if constexpr (std::is_same_v<CharT, char>) { | 5685 | 10.3k | return code_point_reader<wchar_t>{}.read(range, value); | 5686 | 10.3k | } | 5687 | 10.3k | else { | 5688 | 10.3k | return code_unit_reader<wchar_t>{}.read(range, value); | 5689 | 10.3k | } | 5690 | 10.3k | } |
Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_wcharIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RwNS0_6detail10locale_refE Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_wcharIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RwNS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_wcharIcE12read_defaultINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RwNS0_6detail10locale_refE Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_wcharIcE12read_defaultINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RwNSA_10locale_refE |
5691 | | |
5692 | | template <typename Range> |
5693 | | auto read_specs(Range range, |
5694 | | const detail::format_specs& specs, |
5695 | | wchar_t& value, |
5696 | | detail::locale_ref loc) |
5697 | | -> scan_expected<ranges::const_iterator_t<Range>> |
5698 | 446 | { |
5699 | 446 | if (specs.type == detail::presentation_type::none || |
5700 | 446 | specs.type == detail::presentation_type::character) { |
5701 | 406 | return read_default(range, value, loc); |
5702 | 406 | } |
5703 | | |
5704 | 40 | reader_impl_for_int<CharT> reader{}; |
5705 | 40 | using integer_type = |
5706 | 40 | std::conditional_t<sizeof(wchar_t) == 2, int16_t, int32_t>; |
5707 | 40 | integer_type tmp_value{}; |
5708 | 40 | auto ret = reader.read_specs(range, specs, tmp_value, loc); |
5709 | 40 | value = static_cast<integer_type>(value); |
5710 | 40 | return ret; |
5711 | 446 | } Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_wcharIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERwNSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_wcharIwE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERwNS9_10locale_refE _ZN3scn2v34impl21reader_impl_for_wcharIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERwNSN_10locale_refE Line | Count | Source | 5698 | 122 | { | 5699 | 122 | if (specs.type == detail::presentation_type::none || | 5700 | 122 | specs.type == detail::presentation_type::character) { | 5701 | 102 | return read_default(range, value, loc); | 5702 | 102 | } | 5703 | | | 5704 | 20 | reader_impl_for_int<CharT> reader{}; | 5705 | 20 | using integer_type = | 5706 | 20 | std::conditional_t<sizeof(wchar_t) == 2, int16_t, int32_t>; | 5707 | 20 | integer_type tmp_value{}; | 5708 | 20 | auto ret = reader.read_specs(range, specs, tmp_value, loc); | 5709 | 20 | value = static_cast<integer_type>(value); | 5710 | 20 | return ret; | 5711 | 122 | } |
_ZN3scn2v34impl21reader_impl_for_wcharIwE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERwNSL_10locale_refE Line | Count | Source | 5698 | 324 | { | 5699 | 324 | if (specs.type == detail::presentation_type::none || | 5700 | 324 | specs.type == detail::presentation_type::character) { | 5701 | 304 | return read_default(range, value, loc); | 5702 | 304 | } | 5703 | | | 5704 | 20 | reader_impl_for_int<CharT> reader{}; | 5705 | 20 | using integer_type = | 5706 | 20 | std::conditional_t<sizeof(wchar_t) == 2, int16_t, int32_t>; | 5707 | 20 | integer_type tmp_value{}; | 5708 | 20 | auto ret = reader.read_specs(range, specs, tmp_value, loc); | 5709 | 20 | value = static_cast<integer_type>(value); | 5710 | 20 | return ret; | 5711 | 324 | } |
Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_wcharIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERwNSN_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_wcharIcE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERwNSL_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_wcharIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERwNSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl21reader_impl_for_wcharIcE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERwNS9_10locale_refE |
5712 | | }; |
5713 | | |
5714 | | template <typename CharT> |
5715 | | class reader_impl_for_code_point : public char_reader_base<char32_t> { |
5716 | | public: |
5717 | | template <typename Range> |
5718 | | auto read_default(Range range, char32_t& value, detail::locale_ref loc) |
5719 | | -> scan_expected<ranges::const_iterator_t<Range>> |
5720 | 0 | { |
5721 | 0 | SCN_UNUSED(loc); |
5722 | 0 | return code_point_reader<char32_t>{}.read(range, value); |
5723 | 0 | } Unexecuted instantiation: _ZN3scn2v34impl26reader_impl_for_code_pointIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RDiNS0_6detail10locale_refE Unexecuted instantiation: _ZN3scn2v34impl26reader_impl_for_code_pointIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RDiNS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl26reader_impl_for_code_pointIcE12read_defaultINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RDiNS0_6detail10locale_refE Unexecuted instantiation: _ZN3scn2v34impl26reader_impl_for_code_pointIcE12read_defaultINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RDiNSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl26reader_impl_for_code_pointIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RDiNS0_6detail10locale_refE Unexecuted instantiation: _ZN3scn2v34impl26reader_impl_for_code_pointIwE12read_defaultINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RDiNS0_6detail10locale_refE Unexecuted instantiation: _ZN3scn2v34impl26reader_impl_for_code_pointIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RDiNS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl26reader_impl_for_code_pointIwE12read_defaultINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RDiNSA_10locale_refE |
5724 | | |
5725 | | template <typename Range> |
5726 | | auto read_specs(Range range, |
5727 | | const detail::format_specs& specs, |
5728 | | char32_t& value, |
5729 | | detail::locale_ref loc) |
5730 | | -> scan_expected<ranges::const_iterator_t<Range>> |
5731 | 0 | { |
5732 | 0 | SCN_UNUSED(specs); |
5733 | 0 | return read_default(range, value, loc); |
5734 | 0 | } Unexecuted instantiation: _ZN3scn2v34impl26reader_impl_for_code_pointIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERDiNSN_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl26reader_impl_for_code_pointIcE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERDiNSL_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl26reader_impl_for_code_pointIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERDiNSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl26reader_impl_for_code_pointIcE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERDiNS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl26reader_impl_for_code_pointIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERDiNSN_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl26reader_impl_for_code_pointIwE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERDiNSL_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl26reader_impl_for_code_pointIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERDiNSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl26reader_impl_for_code_pointIwE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERDiNS9_10locale_refE |
5735 | | }; |
5736 | | |
5737 | | ///////////////////////////////////////////////////////////////// |
5738 | | // Pointer reader |
5739 | | ///////////////////////////////////////////////////////////////// |
5740 | | |
5741 | | template <typename CharT> |
5742 | | class reader_impl_for_voidptr { |
5743 | | public: |
5744 | | constexpr reader_impl_for_voidptr() = default; |
5745 | | |
5746 | | bool skip_ws_before_read() const |
5747 | 11.5k | { |
5748 | 11.5k | return true; |
5749 | 11.5k | } scn::v3::impl::reader_impl_for_voidptr<char>::skip_ws_before_read() const Line | Count | Source | 5747 | 1.10k | { | 5748 | 1.10k | return true; | 5749 | 1.10k | } |
scn::v3::impl::reader_impl_for_voidptr<wchar_t>::skip_ws_before_read() const Line | Count | Source | 5747 | 10.4k | { | 5748 | 10.4k | return true; | 5749 | 10.4k | } |
|
5750 | | |
5751 | | static scan_error check_specs(const detail::format_specs& specs) |
5752 | 7.51k | { |
5753 | 7.51k | reader_error_handler eh{}; |
5754 | 7.51k | detail::check_pointer_type_specs(specs, eh); |
5755 | 7.51k | if (SCN_UNLIKELY(!eh)) { |
5756 | 6.62k | return {scan_error::invalid_format_string, eh.m_msg}; |
5757 | 6.62k | } |
5758 | 888 | return {}; |
5759 | 7.51k | } scn::v3::impl::reader_impl_for_voidptr<char>::check_specs(scn::v3::detail::format_specs const&) Line | Count | Source | 5752 | 5.09k | { | 5753 | 5.09k | reader_error_handler eh{}; | 5754 | 5.09k | detail::check_pointer_type_specs(specs, eh); | 5755 | 5.09k | if (SCN_UNLIKELY(!eh)) { | 5756 | 4.62k | return {scan_error::invalid_format_string, eh.m_msg}; | 5757 | 4.62k | } | 5758 | 474 | return {}; | 5759 | 5.09k | } |
scn::v3::impl::reader_impl_for_voidptr<wchar_t>::check_specs(scn::v3::detail::format_specs const&) Line | Count | Source | 5752 | 2.42k | { | 5753 | 2.42k | reader_error_handler eh{}; | 5754 | 2.42k | detail::check_pointer_type_specs(specs, eh); | 5755 | 2.42k | if (SCN_UNLIKELY(!eh)) { | 5756 | 2.00k | return {scan_error::invalid_format_string, eh.m_msg}; | 5757 | 2.00k | } | 5758 | 414 | return {}; | 5759 | 2.42k | } |
|
5760 | | |
5761 | | template <typename Range> |
5762 | | auto read_default(Range range, void*& value, detail::locale_ref loc) |
5763 | | -> scan_expected<ranges::const_iterator_t<Range>> |
5764 | 11.5k | { |
5765 | 11.5k | detail::format_specs specs{}; |
5766 | 11.5k | specs.type = detail::presentation_type::int_hex; |
5767 | | |
5768 | 11.5k | std::uintptr_t intvalue{}; |
5769 | 11.5k | SCN_TRY(result, reader_impl_for_int<CharT>{}.read_specs(range, specs, |
5770 | 0 | intvalue, loc)); |
5771 | 0 | value = reinterpret_cast<void*>(intvalue); |
5772 | 0 | return result; |
5773 | 11.5k | } _ZN3scn2v34impl23reader_impl_for_voidptrIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RPvNS0_6detail10locale_refE Line | Count | Source | 5764 | 846 | { | 5765 | 846 | detail::format_specs specs{}; | 5766 | 846 | specs.type = detail::presentation_type::int_hex; | 5767 | | | 5768 | 846 | std::uintptr_t intvalue{}; | 5769 | 846 | SCN_TRY(result, reader_impl_for_int<CharT>{}.read_specs(range, specs, | 5770 | 0 | intvalue, loc)); | 5771 | 0 | value = reinterpret_cast<void*>(intvalue); | 5772 | 0 | return result; | 5773 | 846 | } |
Unexecuted instantiation: _ZN3scn2v34impl23reader_impl_for_voidptrIcE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RPvNS9_10locale_refE _ZN3scn2v34impl23reader_impl_for_voidptrIcE12read_defaultINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RPvNS0_6detail10locale_refE Line | Count | Source | 5764 | 240 | { | 5765 | 240 | detail::format_specs specs{}; | 5766 | 240 | specs.type = detail::presentation_type::int_hex; | 5767 | | | 5768 | 240 | std::uintptr_t intvalue{}; | 5769 | 240 | SCN_TRY(result, reader_impl_for_int<CharT>{}.read_specs(range, specs, | 5770 | 0 | intvalue, loc)); | 5771 | 0 | value = reinterpret_cast<void*>(intvalue); | 5772 | 0 | return result; | 5773 | 240 | } |
Unexecuted instantiation: _ZN3scn2v34impl23reader_impl_for_voidptrIcE12read_defaultINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RPvNSA_10locale_refE _ZN3scn2v34impl23reader_impl_for_voidptrIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RPvNS0_6detail10locale_refE Line | Count | Source | 5764 | 10.3k | { | 5765 | 10.3k | detail::format_specs specs{}; | 5766 | 10.3k | specs.type = detail::presentation_type::int_hex; | 5767 | | | 5768 | 10.3k | std::uintptr_t intvalue{}; | 5769 | 10.3k | SCN_TRY(result, reader_impl_for_int<CharT>{}.read_specs(range, specs, | 5770 | 0 | intvalue, loc)); | 5771 | 0 | value = reinterpret_cast<void*>(intvalue); | 5772 | 0 | return result; | 5773 | 10.3k | } |
_ZN3scn2v34impl23reader_impl_for_voidptrIwE12read_defaultINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RPvNS0_6detail10locale_refE Line | Count | Source | 5764 | 106 | { | 5765 | 106 | detail::format_specs specs{}; | 5766 | 106 | specs.type = detail::presentation_type::int_hex; | 5767 | | | 5768 | 106 | std::uintptr_t intvalue{}; | 5769 | 106 | SCN_TRY(result, reader_impl_for_int<CharT>{}.read_specs(range, specs, | 5770 | 0 | intvalue, loc)); | 5771 | 0 | value = reinterpret_cast<void*>(intvalue); | 5772 | 0 | return result; | 5773 | 106 | } |
Unexecuted instantiation: _ZN3scn2v34impl23reader_impl_for_voidptrIwE12read_defaultINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RPvNS9_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl23reader_impl_for_voidptrIwE12read_defaultINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RPvNSA_10locale_refE |
5774 | | |
5775 | | template <typename Range> |
5776 | | auto read_specs(Range range, |
5777 | | const detail::format_specs& specs, |
5778 | | void*& value, |
5779 | | detail::locale_ref loc) |
5780 | | -> scan_expected<ranges::const_iterator_t<Range>> |
5781 | 870 | { |
5782 | 870 | SCN_UNUSED(specs); |
5783 | 870 | return read_default(range, value, loc); |
5784 | 870 | } _ZN3scn2v34impl23reader_impl_for_voidptrIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSB_EEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERPvNSN_10locale_refE Line | Count | Source | 5781 | 240 | { | 5782 | 240 | SCN_UNUSED(specs); | 5783 | 240 | return read_default(range, value, loc); | 5784 | 240 | } |
_ZN3scn2v34impl23reader_impl_for_voidptrIcE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKcSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERPvNSL_10locale_refE Line | Count | Source | 5781 | 218 | { | 5782 | 218 | SCN_UNUSED(specs); | 5783 | 218 | return read_default(range, value, loc); | 5784 | 218 | } |
Unexecuted instantiation: _ZN3scn2v34impl23reader_impl_for_voidptrIcE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS6_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERPvNSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl23reader_impl_for_voidptrIcE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERPvNS9_10locale_refE _ZN3scn2v34impl23reader_impl_for_voidptrIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSB_EEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESH_RKNS0_6detail12format_specsERPvNSN_10locale_refE Line | Count | Source | 5781 | 106 | { | 5782 | 106 | SCN_UNUSED(specs); | 5783 | 106 | return read_default(range, value, loc); | 5784 | 106 | } |
_ZN3scn2v34impl23reader_impl_for_voidptrIwE10read_specsINS0_6ranges6detail9subrange_8subrangeIPKwSA_EEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESF_RKNS0_6detail12format_specsERPvNSL_10locale_refE Line | Count | Source | 5781 | 306 | { | 5782 | 306 | SCN_UNUSED(specs); | 5783 | 306 | return read_default(range, value, loc); | 5784 | 306 | } |
Unexecuted instantiation: _ZN3scn2v34impl23reader_impl_for_voidptrIwE10read_specsINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS6_18default_sentinel_tEEEEEEENS0_13scan_expectedIDTclL_ZNS6_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESK_RKNSA_12format_specsERPvNSA_10locale_refE Unexecuted instantiation: _ZN3scn2v34impl23reader_impl_for_voidptrIwE10read_specsINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS5_18default_sentinel_tEEEEENS0_13scan_expectedIDTclL_ZNS5_5beginEEclsr3stdE7declvalIRNSt3__19add_constIT_E4typeEEEEEEESI_RKNS9_12format_specsERPvNS9_10locale_refE |
5785 | | }; |
5786 | | |
5787 | | ///////////////////////////////////////////////////////////////// |
5788 | | // Argument readers |
5789 | | ///////////////////////////////////////////////////////////////// |
5790 | | |
5791 | | template <typename Range> |
5792 | | auto skip_ws_before_if_required(bool is_required, Range range) |
5793 | | -> eof_expected<ranges::iterator_t<Range>> |
5794 | 95.7k | { |
5795 | 95.7k | if (auto e = eof_check(range); SCN_UNLIKELY(!e)) { |
5796 | 0 | return unexpected(e); |
5797 | 0 | } |
5798 | | |
5799 | 95.7k | if (!is_required) { |
5800 | 10.6k | return range.begin(); |
5801 | 10.6k | } |
5802 | | |
5803 | 85.1k | return skip_classic_whitespace(range); |
5804 | 95.7k | } _ZN3scn2v34impl26skip_ws_before_if_requiredINS0_6ranges6detail9subrange_8subrangeIPKcS8_EEEENS1_12eof_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRT_EEEEEEbSB_ Line | Count | Source | 5794 | 5.65k | { | 5795 | 5.65k | if (auto e = eof_check(range); SCN_UNLIKELY(!e)) { | 5796 | 0 | return unexpected(e); | 5797 | 0 | } | 5798 | | | 5799 | 5.65k | if (!is_required) { | 5800 | 628 | return range.begin(); | 5801 | 628 | } | 5802 | | | 5803 | 5.02k | return skip_classic_whitespace(range); | 5804 | 5.65k | } |
Unexecuted instantiation: _ZN3scn2v34impl26skip_ws_before_if_requiredINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEEEENS1_12eof_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRT_EEEEEEbSE_ Unexecuted instantiation: _ZN3scn2v34impl26skip_ws_before_if_requiredINSt3__117basic_string_viewIcNS3_11char_traitsIcEEEEEENS1_12eof_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT_EEEEEEbSA_ _ZN3scn2v34impl26skip_ws_before_if_requiredINS0_6ranges6detail9subrange_8subrangeIPKwS8_EEEENS1_12eof_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRT_EEEEEEbSB_ Line | Count | Source | 5794 | 90.1k | { | 5795 | 90.1k | if (auto e = eof_check(range); SCN_UNLIKELY(!e)) { | 5796 | 0 | return unexpected(e); | 5797 | 0 | } | 5798 | | | 5799 | 90.1k | if (!is_required) { | 5800 | 10.0k | return range.begin(); | 5801 | 10.0k | } | 5802 | | | 5803 | 80.0k | return skip_classic_whitespace(range); | 5804 | 90.1k | } |
Unexecuted instantiation: _ZN3scn2v34impl26skip_ws_before_if_requiredINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEEEENS1_12eof_expectedIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRT_EEEEEEbSE_ Unexecuted instantiation: _ZN3scn2v34impl26skip_ws_before_if_requiredINSt3__117basic_string_viewIwNS3_11char_traitsIwEEEEEENS1_12eof_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT_EEEEEEbSA_ |
5805 | | |
5806 | | template <typename T, typename CharT> |
5807 | | constexpr auto make_reader() |
5808 | 54.4k | { |
5809 | 54.4k | if constexpr (std::is_same_v<T, bool>) { |
5810 | 54.4k | return reader_impl_for_bool<CharT>{}; |
5811 | 54.4k | } |
5812 | 54.4k | else if constexpr (std::is_same_v<T, char>) { |
5813 | 54.4k | return reader_impl_for_char<CharT>{}; |
5814 | 54.4k | } |
5815 | 54.4k | else if constexpr (std::is_same_v<T, wchar_t>) { |
5816 | 54.4k | return reader_impl_for_wchar<CharT>{}; |
5817 | 54.4k | } |
5818 | 54.4k | else if constexpr (std::is_same_v<T, char32_t>) { |
5819 | 54.4k | return reader_impl_for_code_point<CharT>{}; |
5820 | 54.4k | } |
5821 | 54.4k | else if constexpr (std::is_same_v<T, std::string_view> || |
5822 | 54.4k | std::is_same_v<T, std::wstring_view>) { |
5823 | 36.3k | return reader_impl_for_string<CharT>{}; |
5824 | 36.3k | } |
5825 | 36.3k | else if constexpr (std::is_same_v<T, std::string> || |
5826 | 36.3k | std::is_same_v<T, std::wstring>) { |
5827 | 36.3k | return reader_impl_for_string<CharT>{}; |
5828 | 36.3k | } |
5829 | 54.4k | else if constexpr (std::is_same_v<T, regex_matches> || |
5830 | 54.4k | std::is_same_v<T, wregex_matches>) { |
5831 | 54.4k | return reader_impl_for_regex_matches<CharT>{}; |
5832 | 54.4k | } |
5833 | 54.4k | else if constexpr (std::is_same_v<T, void*>) { |
5834 | 54.4k | return reader_impl_for_voidptr<CharT>{}; |
5835 | 54.4k | } |
5836 | 54.4k | else if constexpr (std::is_floating_point_v<T>) { |
5837 | 54.4k | return reader_impl_for_float<CharT>{}; |
5838 | 54.4k | } |
5839 | 54.4k | else if constexpr (std::is_integral_v<T> && !std::is_same_v<T, char> && |
5840 | 54.4k | !std::is_same_v<T, wchar_t> && |
5841 | 54.4k | !std::is_same_v<T, char32_t> && |
5842 | 54.4k | !std::is_same_v<T, bool>) { |
5843 | 54.4k | return reader_impl_for_int<CharT>{}; |
5844 | 54.4k | } |
5845 | 54.4k | else { |
5846 | 54.4k | return reader_impl_for_monostate<CharT>{}; |
5847 | 54.4k | } |
5848 | 54.4k | } auto scn::v3::impl::make_reader<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, char>() Line | Count | Source | 5808 | 5.72k | { | 5809 | 5.72k | if constexpr (std::is_same_v<T, bool>) { | 5810 | 5.72k | return reader_impl_for_bool<CharT>{}; | 5811 | 5.72k | } | 5812 | 5.72k | else if constexpr (std::is_same_v<T, char>) { | 5813 | 5.72k | return reader_impl_for_char<CharT>{}; | 5814 | 5.72k | } | 5815 | 5.72k | else if constexpr (std::is_same_v<T, wchar_t>) { | 5816 | 5.72k | return reader_impl_for_wchar<CharT>{}; | 5817 | 5.72k | } | 5818 | 5.72k | else if constexpr (std::is_same_v<T, char32_t>) { | 5819 | 5.72k | return reader_impl_for_code_point<CharT>{}; | 5820 | 5.72k | } | 5821 | 5.72k | else if constexpr (std::is_same_v<T, std::string_view> || | 5822 | 5.72k | std::is_same_v<T, std::wstring_view>) { | 5823 | 5.72k | return reader_impl_for_string<CharT>{}; | 5824 | 5.72k | } | 5825 | 5.72k | else if constexpr (std::is_same_v<T, std::string> || | 5826 | 5.72k | std::is_same_v<T, std::wstring>) { | 5827 | 5.72k | return reader_impl_for_string<CharT>{}; | 5828 | 5.72k | } | 5829 | 5.72k | else if constexpr (std::is_same_v<T, regex_matches> || | 5830 | 5.72k | std::is_same_v<T, wregex_matches>) { | 5831 | 5.72k | return reader_impl_for_regex_matches<CharT>{}; | 5832 | 5.72k | } | 5833 | 5.72k | else if constexpr (std::is_same_v<T, void*>) { | 5834 | 5.72k | return reader_impl_for_voidptr<CharT>{}; | 5835 | 5.72k | } | 5836 | 5.72k | else if constexpr (std::is_floating_point_v<T>) { | 5837 | 5.72k | return reader_impl_for_float<CharT>{}; | 5838 | 5.72k | } | 5839 | 5.72k | else if constexpr (std::is_integral_v<T> && !std::is_same_v<T, char> && | 5840 | 5.72k | !std::is_same_v<T, wchar_t> && | 5841 | 5.72k | !std::is_same_v<T, char32_t> && | 5842 | 5.72k | !std::is_same_v<T, bool>) { | 5843 | 5.72k | return reader_impl_for_int<CharT>{}; | 5844 | 5.72k | } | 5845 | 5.72k | else { | 5846 | 5.72k | return reader_impl_for_monostate<CharT>{}; | 5847 | 5.72k | } | 5848 | 5.72k | } |
auto scn::v3::impl::make_reader<std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> >, char>() Line | Count | Source | 5808 | 5.72k | { | 5809 | 5.72k | if constexpr (std::is_same_v<T, bool>) { | 5810 | 5.72k | return reader_impl_for_bool<CharT>{}; | 5811 | 5.72k | } | 5812 | 5.72k | else if constexpr (std::is_same_v<T, char>) { | 5813 | 5.72k | return reader_impl_for_char<CharT>{}; | 5814 | 5.72k | } | 5815 | 5.72k | else if constexpr (std::is_same_v<T, wchar_t>) { | 5816 | 5.72k | return reader_impl_for_wchar<CharT>{}; | 5817 | 5.72k | } | 5818 | 5.72k | else if constexpr (std::is_same_v<T, char32_t>) { | 5819 | 5.72k | return reader_impl_for_code_point<CharT>{}; | 5820 | 5.72k | } | 5821 | 5.72k | else if constexpr (std::is_same_v<T, std::string_view> || | 5822 | 5.72k | std::is_same_v<T, std::wstring_view>) { | 5823 | 5.72k | return reader_impl_for_string<CharT>{}; | 5824 | 5.72k | } | 5825 | 5.72k | else if constexpr (std::is_same_v<T, std::string> || | 5826 | 5.72k | std::is_same_v<T, std::wstring>) { | 5827 | 5.72k | return reader_impl_for_string<CharT>{}; | 5828 | 5.72k | } | 5829 | 5.72k | else if constexpr (std::is_same_v<T, regex_matches> || | 5830 | 5.72k | std::is_same_v<T, wregex_matches>) { | 5831 | 5.72k | return reader_impl_for_regex_matches<CharT>{}; | 5832 | 5.72k | } | 5833 | 5.72k | else if constexpr (std::is_same_v<T, void*>) { | 5834 | 5.72k | return reader_impl_for_voidptr<CharT>{}; | 5835 | 5.72k | } | 5836 | 5.72k | else if constexpr (std::is_floating_point_v<T>) { | 5837 | 5.72k | return reader_impl_for_float<CharT>{}; | 5838 | 5.72k | } | 5839 | 5.72k | else if constexpr (std::is_integral_v<T> && !std::is_same_v<T, char> && | 5840 | 5.72k | !std::is_same_v<T, wchar_t> && | 5841 | 5.72k | !std::is_same_v<T, char32_t> && | 5842 | 5.72k | !std::is_same_v<T, bool>) { | 5843 | 5.72k | return reader_impl_for_int<CharT>{}; | 5844 | 5.72k | } | 5845 | 5.72k | else { | 5846 | 5.72k | return reader_impl_for_monostate<CharT>{}; | 5847 | 5.72k | } | 5848 | 5.72k | } |
auto scn::v3::impl::make_reader<std::__1::basic_string_view<char, std::__1::char_traits<char> >, char>() Line | Count | Source | 5808 | 5.72k | { | 5809 | 5.72k | if constexpr (std::is_same_v<T, bool>) { | 5810 | 5.72k | return reader_impl_for_bool<CharT>{}; | 5811 | 5.72k | } | 5812 | 5.72k | else if constexpr (std::is_same_v<T, char>) { | 5813 | 5.72k | return reader_impl_for_char<CharT>{}; | 5814 | 5.72k | } | 5815 | 5.72k | else if constexpr (std::is_same_v<T, wchar_t>) { | 5816 | 5.72k | return reader_impl_for_wchar<CharT>{}; | 5817 | 5.72k | } | 5818 | 5.72k | else if constexpr (std::is_same_v<T, char32_t>) { | 5819 | 5.72k | return reader_impl_for_code_point<CharT>{}; | 5820 | 5.72k | } | 5821 | 5.72k | else if constexpr (std::is_same_v<T, std::string_view> || | 5822 | 5.72k | std::is_same_v<T, std::wstring_view>) { | 5823 | 5.72k | return reader_impl_for_string<CharT>{}; | 5824 | 5.72k | } | 5825 | 5.72k | else if constexpr (std::is_same_v<T, std::string> || | 5826 | 5.72k | std::is_same_v<T, std::wstring>) { | 5827 | 5.72k | return reader_impl_for_string<CharT>{}; | 5828 | 5.72k | } | 5829 | 5.72k | else if constexpr (std::is_same_v<T, regex_matches> || | 5830 | 5.72k | std::is_same_v<T, wregex_matches>) { | 5831 | 5.72k | return reader_impl_for_regex_matches<CharT>{}; | 5832 | 5.72k | } | 5833 | 5.72k | else if constexpr (std::is_same_v<T, void*>) { | 5834 | 5.72k | return reader_impl_for_voidptr<CharT>{}; | 5835 | 5.72k | } | 5836 | 5.72k | else if constexpr (std::is_floating_point_v<T>) { | 5837 | 5.72k | return reader_impl_for_float<CharT>{}; | 5838 | 5.72k | } | 5839 | 5.72k | else if constexpr (std::is_integral_v<T> && !std::is_same_v<T, char> && | 5840 | 5.72k | !std::is_same_v<T, wchar_t> && | 5841 | 5.72k | !std::is_same_v<T, char32_t> && | 5842 | 5.72k | !std::is_same_v<T, bool>) { | 5843 | 5.72k | return reader_impl_for_int<CharT>{}; | 5844 | 5.72k | } | 5845 | 5.72k | else { | 5846 | 5.72k | return reader_impl_for_monostate<CharT>{}; | 5847 | 5.72k | } | 5848 | 5.72k | } |
Unexecuted instantiation: auto scn::v3::impl::make_reader<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> >, char>() auto scn::v3::impl::make_reader<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, wchar_t>() Line | Count | Source | 5808 | 12.4k | { | 5809 | 12.4k | if constexpr (std::is_same_v<T, bool>) { | 5810 | 12.4k | return reader_impl_for_bool<CharT>{}; | 5811 | 12.4k | } | 5812 | 12.4k | else if constexpr (std::is_same_v<T, char>) { | 5813 | 12.4k | return reader_impl_for_char<CharT>{}; | 5814 | 12.4k | } | 5815 | 12.4k | else if constexpr (std::is_same_v<T, wchar_t>) { | 5816 | 12.4k | return reader_impl_for_wchar<CharT>{}; | 5817 | 12.4k | } | 5818 | 12.4k | else if constexpr (std::is_same_v<T, char32_t>) { | 5819 | 12.4k | return reader_impl_for_code_point<CharT>{}; | 5820 | 12.4k | } | 5821 | 12.4k | else if constexpr (std::is_same_v<T, std::string_view> || | 5822 | 12.4k | std::is_same_v<T, std::wstring_view>) { | 5823 | 12.4k | return reader_impl_for_string<CharT>{}; | 5824 | 12.4k | } | 5825 | 12.4k | else if constexpr (std::is_same_v<T, std::string> || | 5826 | 12.4k | std::is_same_v<T, std::wstring>) { | 5827 | 12.4k | return reader_impl_for_string<CharT>{}; | 5828 | 12.4k | } | 5829 | 12.4k | else if constexpr (std::is_same_v<T, regex_matches> || | 5830 | 12.4k | std::is_same_v<T, wregex_matches>) { | 5831 | 12.4k | return reader_impl_for_regex_matches<CharT>{}; | 5832 | 12.4k | } | 5833 | 12.4k | else if constexpr (std::is_same_v<T, void*>) { | 5834 | 12.4k | return reader_impl_for_voidptr<CharT>{}; | 5835 | 12.4k | } | 5836 | 12.4k | else if constexpr (std::is_floating_point_v<T>) { | 5837 | 12.4k | return reader_impl_for_float<CharT>{}; | 5838 | 12.4k | } | 5839 | 12.4k | else if constexpr (std::is_integral_v<T> && !std::is_same_v<T, char> && | 5840 | 12.4k | !std::is_same_v<T, wchar_t> && | 5841 | 12.4k | !std::is_same_v<T, char32_t> && | 5842 | 12.4k | !std::is_same_v<T, bool>) { | 5843 | 12.4k | return reader_impl_for_int<CharT>{}; | 5844 | 12.4k | } | 5845 | 12.4k | else { | 5846 | 12.4k | return reader_impl_for_monostate<CharT>{}; | 5847 | 12.4k | } | 5848 | 12.4k | } |
auto scn::v3::impl::make_reader<std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> >, wchar_t>() Line | Count | Source | 5808 | 12.4k | { | 5809 | 12.4k | if constexpr (std::is_same_v<T, bool>) { | 5810 | 12.4k | return reader_impl_for_bool<CharT>{}; | 5811 | 12.4k | } | 5812 | 12.4k | else if constexpr (std::is_same_v<T, char>) { | 5813 | 12.4k | return reader_impl_for_char<CharT>{}; | 5814 | 12.4k | } | 5815 | 12.4k | else if constexpr (std::is_same_v<T, wchar_t>) { | 5816 | 12.4k | return reader_impl_for_wchar<CharT>{}; | 5817 | 12.4k | } | 5818 | 12.4k | else if constexpr (std::is_same_v<T, char32_t>) { | 5819 | 12.4k | return reader_impl_for_code_point<CharT>{}; | 5820 | 12.4k | } | 5821 | 12.4k | else if constexpr (std::is_same_v<T, std::string_view> || | 5822 | 12.4k | std::is_same_v<T, std::wstring_view>) { | 5823 | 12.4k | return reader_impl_for_string<CharT>{}; | 5824 | 12.4k | } | 5825 | 12.4k | else if constexpr (std::is_same_v<T, std::string> || | 5826 | 12.4k | std::is_same_v<T, std::wstring>) { | 5827 | 12.4k | return reader_impl_for_string<CharT>{}; | 5828 | 12.4k | } | 5829 | 12.4k | else if constexpr (std::is_same_v<T, regex_matches> || | 5830 | 12.4k | std::is_same_v<T, wregex_matches>) { | 5831 | 12.4k | return reader_impl_for_regex_matches<CharT>{}; | 5832 | 12.4k | } | 5833 | 12.4k | else if constexpr (std::is_same_v<T, void*>) { | 5834 | 12.4k | return reader_impl_for_voidptr<CharT>{}; | 5835 | 12.4k | } | 5836 | 12.4k | else if constexpr (std::is_floating_point_v<T>) { | 5837 | 12.4k | return reader_impl_for_float<CharT>{}; | 5838 | 12.4k | } | 5839 | 12.4k | else if constexpr (std::is_integral_v<T> && !std::is_same_v<T, char> && | 5840 | 12.4k | !std::is_same_v<T, wchar_t> && | 5841 | 12.4k | !std::is_same_v<T, char32_t> && | 5842 | 12.4k | !std::is_same_v<T, bool>) { | 5843 | 12.4k | return reader_impl_for_int<CharT>{}; | 5844 | 12.4k | } | 5845 | 12.4k | else { | 5846 | 12.4k | return reader_impl_for_monostate<CharT>{}; | 5847 | 12.4k | } | 5848 | 12.4k | } |
Unexecuted instantiation: auto scn::v3::impl::make_reader<std::__1::basic_string_view<char, std::__1::char_traits<char> >, wchar_t>() auto scn::v3::impl::make_reader<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> >, wchar_t>() Line | Count | Source | 5808 | 12.4k | { | 5809 | 12.4k | if constexpr (std::is_same_v<T, bool>) { | 5810 | 12.4k | return reader_impl_for_bool<CharT>{}; | 5811 | 12.4k | } | 5812 | 12.4k | else if constexpr (std::is_same_v<T, char>) { | 5813 | 12.4k | return reader_impl_for_char<CharT>{}; | 5814 | 12.4k | } | 5815 | 12.4k | else if constexpr (std::is_same_v<T, wchar_t>) { | 5816 | 12.4k | return reader_impl_for_wchar<CharT>{}; | 5817 | 12.4k | } | 5818 | 12.4k | else if constexpr (std::is_same_v<T, char32_t>) { | 5819 | 12.4k | return reader_impl_for_code_point<CharT>{}; | 5820 | 12.4k | } | 5821 | 12.4k | else if constexpr (std::is_same_v<T, std::string_view> || | 5822 | 12.4k | std::is_same_v<T, std::wstring_view>) { | 5823 | 12.4k | return reader_impl_for_string<CharT>{}; | 5824 | 12.4k | } | 5825 | 12.4k | else if constexpr (std::is_same_v<T, std::string> || | 5826 | 12.4k | std::is_same_v<T, std::wstring>) { | 5827 | 12.4k | return reader_impl_for_string<CharT>{}; | 5828 | 12.4k | } | 5829 | 12.4k | else if constexpr (std::is_same_v<T, regex_matches> || | 5830 | 12.4k | std::is_same_v<T, wregex_matches>) { | 5831 | 12.4k | return reader_impl_for_regex_matches<CharT>{}; | 5832 | 12.4k | } | 5833 | 12.4k | else if constexpr (std::is_same_v<T, void*>) { | 5834 | 12.4k | return reader_impl_for_voidptr<CharT>{}; | 5835 | 12.4k | } | 5836 | 12.4k | else if constexpr (std::is_floating_point_v<T>) { | 5837 | 12.4k | return reader_impl_for_float<CharT>{}; | 5838 | 12.4k | } | 5839 | 12.4k | else if constexpr (std::is_integral_v<T> && !std::is_same_v<T, char> && | 5840 | 12.4k | !std::is_same_v<T, wchar_t> && | 5841 | 12.4k | !std::is_same_v<T, char32_t> && | 5842 | 12.4k | !std::is_same_v<T, bool>) { | 5843 | 12.4k | return reader_impl_for_int<CharT>{}; | 5844 | 12.4k | } | 5845 | 12.4k | else { | 5846 | 12.4k | return reader_impl_for_monostate<CharT>{}; | 5847 | 12.4k | } | 5848 | 12.4k | } |
Unexecuted instantiation: auto scn::v3::impl::make_reader<char, char>() Unexecuted instantiation: auto scn::v3::impl::make_reader<signed char, char>() Unexecuted instantiation: auto scn::v3::impl::make_reader<short, char>() Unexecuted instantiation: auto scn::v3::impl::make_reader<int, char>() Unexecuted instantiation: auto scn::v3::impl::make_reader<long, char>() Unexecuted instantiation: auto scn::v3::impl::make_reader<long long, char>() Unexecuted instantiation: auto scn::v3::impl::make_reader<unsigned char, char>() Unexecuted instantiation: auto scn::v3::impl::make_reader<unsigned short, char>() Unexecuted instantiation: auto scn::v3::impl::make_reader<unsigned int, char>() Unexecuted instantiation: auto scn::v3::impl::make_reader<unsigned long, char>() Unexecuted instantiation: auto scn::v3::impl::make_reader<unsigned long long, char>() Unexecuted instantiation: auto scn::v3::impl::make_reader<float, char>() Unexecuted instantiation: auto scn::v3::impl::make_reader<double, char>() Unexecuted instantiation: auto scn::v3::impl::make_reader<long double, char>() Unexecuted instantiation: auto scn::v3::impl::make_reader<scn::v3::basic_regex_matches<char>, char>() Unexecuted instantiation: auto scn::v3::impl::make_reader<scn::v3::basic_regex_matches<wchar_t>, char>() Unexecuted instantiation: auto scn::v3::impl::make_reader<wchar_t, wchar_t>() Unexecuted instantiation: auto scn::v3::impl::make_reader<signed char, wchar_t>() Unexecuted instantiation: auto scn::v3::impl::make_reader<short, wchar_t>() Unexecuted instantiation: auto scn::v3::impl::make_reader<int, wchar_t>() Unexecuted instantiation: auto scn::v3::impl::make_reader<long, wchar_t>() Unexecuted instantiation: auto scn::v3::impl::make_reader<long long, wchar_t>() Unexecuted instantiation: auto scn::v3::impl::make_reader<unsigned char, wchar_t>() Unexecuted instantiation: auto scn::v3::impl::make_reader<unsigned short, wchar_t>() Unexecuted instantiation: auto scn::v3::impl::make_reader<unsigned int, wchar_t>() Unexecuted instantiation: auto scn::v3::impl::make_reader<unsigned long, wchar_t>() Unexecuted instantiation: auto scn::v3::impl::make_reader<unsigned long long, wchar_t>() Unexecuted instantiation: auto scn::v3::impl::make_reader<float, wchar_t>() Unexecuted instantiation: auto scn::v3::impl::make_reader<double, wchar_t>() Unexecuted instantiation: auto scn::v3::impl::make_reader<long double, wchar_t>() Unexecuted instantiation: auto scn::v3::impl::make_reader<scn::v3::basic_regex_matches<char>, wchar_t>() Unexecuted instantiation: auto scn::v3::impl::make_reader<scn::v3::basic_regex_matches<wchar_t>, wchar_t>() Unexecuted instantiation: auto scn::v3::impl::make_reader<void*, char>() Unexecuted instantiation: auto scn::v3::impl::make_reader<bool, char>() Unexecuted instantiation: auto scn::v3::impl::make_reader<wchar_t, char>() Unexecuted instantiation: auto scn::v3::impl::make_reader<char32_t, char>() Unexecuted instantiation: auto scn::v3::impl::make_reader<scn::v3::monostate, char>() Unexecuted instantiation: auto scn::v3::impl::make_reader<void*, wchar_t>() Unexecuted instantiation: auto scn::v3::impl::make_reader<bool, wchar_t>() Unexecuted instantiation: auto scn::v3::impl::make_reader<char, wchar_t>() Unexecuted instantiation: auto scn::v3::impl::make_reader<char32_t, wchar_t>() Unexecuted instantiation: auto scn::v3::impl::make_reader<scn::v3::monostate, wchar_t>() |
5849 | | |
5850 | | template <typename Context> |
5851 | | struct default_arg_reader { |
5852 | | using context_type = Context; |
5853 | | using char_type = typename context_type::char_type; |
5854 | | using args_type = typename context_type::args_type; |
5855 | | |
5856 | | using range_type = typename context_type::range_type; |
5857 | | using iterator = ranges::iterator_t<range_type>; |
5858 | | |
5859 | | template <typename Reader, typename Range, typename T> |
5860 | | auto impl(Reader& rd, Range rng, T& value) |
5861 | | -> scan_expected<ranges::iterator_t<Range>> |
5862 | 95.7k | { |
5863 | 95.7k | SCN_TRY(it, skip_ws_before_if_required(rd.skip_ws_before_read(), rng) |
5864 | 95.7k | .transform_error(make_eof_scan_error)); |
5865 | 95.7k | return rd.read_default(ranges::subrange{it, rng.end()}, value, loc); |
5866 | 95.7k | } Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS1_29basic_contiguous_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENS0_6ranges6detail9subrange_8subrangeIPKcSE_EEaEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS1_29basic_contiguous_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENS0_6ranges6detail9subrange_8subrangeIPKcSE_EEsEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ _ZN3scn2v34impl18default_arg_readerINS1_29basic_contiguous_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENS0_6ranges6detail9subrange_8subrangeIPKcSE_EEiEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Line | Count | Source | 5862 | 628 | { | 5863 | 628 | SCN_TRY(it, skip_ws_before_if_required(rd.skip_ws_before_read(), rng) | 5864 | 628 | .transform_error(make_eof_scan_error)); | 5865 | 628 | return rd.read_default(ranges::subrange{it, rng.end()}, value, loc); | 5866 | 628 | } |
Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS1_29basic_contiguous_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENS0_6ranges6detail9subrange_8subrangeIPKcSE_EElEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS1_29basic_contiguous_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENS0_6ranges6detail9subrange_8subrangeIPKcSE_EExEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS1_29basic_contiguous_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENS0_6ranges6detail9subrange_8subrangeIPKcSE_EEhEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS1_29basic_contiguous_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENS0_6ranges6detail9subrange_8subrangeIPKcSE_EEtEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ _ZN3scn2v34impl18default_arg_readerINS1_29basic_contiguous_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENS0_6ranges6detail9subrange_8subrangeIPKcSE_EEjEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Line | Count | Source | 5862 | 628 | { | 5863 | 628 | SCN_TRY(it, skip_ws_before_if_required(rd.skip_ws_before_read(), rng) | 5864 | 628 | .transform_error(make_eof_scan_error)); | 5865 | 628 | return rd.read_default(ranges::subrange{it, rng.end()}, value, loc); | 5866 | 628 | } |
Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS1_29basic_contiguous_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENS0_6ranges6detail9subrange_8subrangeIPKcSE_EEmEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS1_29basic_contiguous_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENS0_6ranges6detail9subrange_8subrangeIPKcSE_EEyEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ _ZN3scn2v34impl18default_arg_readerINS1_29basic_contiguous_scan_contextIcEEE4implINS1_23reader_impl_for_voidptrIcEENS0_6ranges6detail9subrange_8subrangeIPKcSE_EEPvEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SI_RT1_ Line | Count | Source | 5862 | 628 | { | 5863 | 628 | SCN_TRY(it, skip_ws_before_if_required(rd.skip_ws_before_read(), rng) | 5864 | 628 | .transform_error(make_eof_scan_error)); | 5865 | 628 | return rd.read_default(ranges::subrange{it, rng.end()}, value, loc); | 5866 | 628 | } |
_ZN3scn2v34impl18default_arg_readerINS1_29basic_contiguous_scan_contextIcEEE4implINS1_20reader_impl_for_boolIcEENS0_6ranges6detail9subrange_8subrangeIPKcSE_EEbEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Line | Count | Source | 5862 | 628 | { | 5863 | 628 | SCN_TRY(it, skip_ws_before_if_required(rd.skip_ws_before_read(), rng) | 5864 | 628 | .transform_error(make_eof_scan_error)); | 5865 | 628 | return rd.read_default(ranges::subrange{it, rng.end()}, value, loc); | 5866 | 628 | } |
_ZN3scn2v34impl18default_arg_readerINS1_29basic_contiguous_scan_contextIcEEE4implINS1_20reader_impl_for_charIcEENS0_6ranges6detail9subrange_8subrangeIPKcSE_EEcEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Line | Count | Source | 5862 | 628 | { | 5863 | 628 | SCN_TRY(it, skip_ws_before_if_required(rd.skip_ws_before_read(), rng) | 5864 | 628 | .transform_error(make_eof_scan_error)); | 5865 | 628 | return rd.read_default(ranges::subrange{it, rng.end()}, value, loc); | 5866 | 628 | } |
Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS1_29basic_contiguous_scan_contextIcEEE4implINS1_21reader_impl_for_wcharIcEENS0_6ranges6detail9subrange_8subrangeIPKcSE_EEwEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS1_29basic_contiguous_scan_contextIcEEE4implINS1_26reader_impl_for_code_pointIcEENS0_6ranges6detail9subrange_8subrangeIPKcSE_EEDiEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS1_29basic_contiguous_scan_contextIcEEE4implINS1_21reader_impl_for_floatIcEENS0_6ranges6detail9subrange_8subrangeIPKcSE_EEfEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ _ZN3scn2v34impl18default_arg_readerINS1_29basic_contiguous_scan_contextIcEEE4implINS1_21reader_impl_for_floatIcEENS0_6ranges6detail9subrange_8subrangeIPKcSE_EEdEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Line | Count | Source | 5862 | 628 | { | 5863 | 628 | SCN_TRY(it, skip_ws_before_if_required(rd.skip_ws_before_read(), rng) | 5864 | 628 | .transform_error(make_eof_scan_error)); | 5865 | 628 | return rd.read_default(ranges::subrange{it, rng.end()}, value, loc); | 5866 | 628 | } |
Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS1_29basic_contiguous_scan_contextIcEEE4implINS1_21reader_impl_for_floatIcEENS0_6ranges6detail9subrange_8subrangeIPKcSE_EEeEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ _ZN3scn2v34impl18default_arg_readerINS1_29basic_contiguous_scan_contextIcEEE4implINS1_22reader_impl_for_stringIcEENS0_6ranges6detail9subrange_8subrangeIPKcSE_EENSt3__117basic_string_viewIcNSG_11char_traitsIcEEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SM_RT1_ Line | Count | Source | 5862 | 628 | { | 5863 | 628 | SCN_TRY(it, skip_ws_before_if_required(rd.skip_ws_before_read(), rng) | 5864 | 628 | .transform_error(make_eof_scan_error)); | 5865 | 628 | return rd.read_default(ranges::subrange{it, rng.end()}, value, loc); | 5866 | 628 | } |
_ZN3scn2v34impl18default_arg_readerINS1_29basic_contiguous_scan_contextIcEEE4implINS1_22reader_impl_for_stringIcEENS0_6ranges6detail9subrange_8subrangeIPKcSE_EENSt3__112basic_stringIcNSG_11char_traitsIcEENSG_9allocatorIcEEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SO_RT1_ Line | Count | Source | 5862 | 628 | { | 5863 | 628 | SCN_TRY(it, skip_ws_before_if_required(rd.skip_ws_before_read(), rng) | 5864 | 628 | .transform_error(make_eof_scan_error)); | 5865 | 628 | return rd.read_default(ranges::subrange{it, rng.end()}, value, loc); | 5866 | 628 | } |
Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS1_29basic_contiguous_scan_contextIcEEE4implINS1_22reader_impl_for_stringIcEENS0_6ranges6detail9subrange_8subrangeIPKcSE_EENSt3__117basic_string_viewIwNSG_11char_traitsIwEEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SM_RT1_ _ZN3scn2v34impl18default_arg_readerINS1_29basic_contiguous_scan_contextIcEEE4implINS1_22reader_impl_for_stringIcEENS0_6ranges6detail9subrange_8subrangeIPKcSE_EENSt3__112basic_stringIwNSG_11char_traitsIwEENSG_9allocatorIwEEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SO_RT1_ Line | Count | Source | 5862 | 628 | { | 5863 | 628 | SCN_TRY(it, skip_ws_before_if_required(rd.skip_ws_before_read(), rng) | 5864 | 628 | .transform_error(make_eof_scan_error)); | 5865 | 628 | return rd.read_default(ranges::subrange{it, rng.end()}, value, loc); | 5866 | 628 | } |
Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS1_29basic_contiguous_scan_contextIcEEE4implINS1_29reader_impl_for_regex_matchesIcEENS0_6ranges6detail9subrange_8subrangeIPKcSE_EENS0_19basic_regex_matchesIcEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SJ_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS1_29basic_contiguous_scan_contextIcEEE4implINS1_29reader_impl_for_regex_matchesIcEENS0_6ranges6detail9subrange_8subrangeIPKcSE_EENS0_19basic_regex_matchesIwEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SJ_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS1_29basic_contiguous_scan_contextIcEEE4implINS1_25reader_impl_for_monostateIcEENS0_6ranges6detail9subrange_8subrangeIPKcSE_EENS0_9monostateEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SI_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEaEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENSt3__117basic_string_viewIcNS9_11char_traitsIcEEEEaEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEsEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENSt3__117basic_string_viewIcNS9_11char_traitsIcEEEEsEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEiEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENSt3__117basic_string_viewIcNS9_11char_traitsIcEEEEiEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEElEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENSt3__117basic_string_viewIcNS9_11char_traitsIcEEEElEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEExEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENSt3__117basic_string_viewIcNS9_11char_traitsIcEEEExEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEhEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENSt3__117basic_string_viewIcNS9_11char_traitsIcEEEEhEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEtEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENSt3__117basic_string_viewIcNS9_11char_traitsIcEEEEtEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEjEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENSt3__117basic_string_viewIcNS9_11char_traitsIcEEEEjEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEmEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENSt3__117basic_string_viewIcNS9_11char_traitsIcEEEEmEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEyEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENSt3__117basic_string_viewIcNS9_11char_traitsIcEEEEyEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIcEEE4implINS1_23reader_impl_for_voidptrIcEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEPvEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SL_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIcEEE4implINS1_23reader_impl_for_voidptrIcEENSt3__117basic_string_viewIcNS9_11char_traitsIcEEEEPvEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIcEEE4implINS1_20reader_impl_for_boolIcEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEbEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIcEEE4implINS1_20reader_impl_for_boolIcEENSt3__117basic_string_viewIcNS9_11char_traitsIcEEEEbEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIcEEE4implINS1_20reader_impl_for_charIcEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEcEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIcEEE4implINS1_20reader_impl_for_charIcEENSt3__117basic_string_viewIcNS9_11char_traitsIcEEEEcEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIcEEE4implINS1_21reader_impl_for_wcharIcEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEwEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIcEEE4implINS1_21reader_impl_for_wcharIcEENSt3__117basic_string_viewIcNS9_11char_traitsIcEEEEwEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIcEEE4implINS1_26reader_impl_for_code_pointIcEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEDiEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIcEEE4implINS1_26reader_impl_for_code_pointIcEENSt3__117basic_string_viewIcNS9_11char_traitsIcEEEEDiEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIcEEE4implINS1_21reader_impl_for_floatIcEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEfEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIcEEE4implINS1_21reader_impl_for_floatIcEENSt3__117basic_string_viewIcNS9_11char_traitsIcEEEEfEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIcEEE4implINS1_21reader_impl_for_floatIcEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEdEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIcEEE4implINS1_21reader_impl_for_floatIcEENSt3__117basic_string_viewIcNS9_11char_traitsIcEEEEdEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIcEEE4implINS1_21reader_impl_for_floatIcEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEeEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIcEEE4implINS1_21reader_impl_for_floatIcEENSt3__117basic_string_viewIcNS9_11char_traitsIcEEEEeEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIcEEE4implINS1_22reader_impl_for_stringIcEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEENSt3__117basic_string_viewIcNSJ_11char_traitsIcEEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SP_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIcEEE4implINS1_22reader_impl_for_stringIcEENSt3__117basic_string_viewIcNS9_11char_traitsIcEEEESD_EENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIcEEE4implINS1_22reader_impl_for_stringIcEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEENSt3__112basic_stringIcNSJ_11char_traitsIcEENSJ_9allocatorIcEEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SR_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIcEEE4implINS1_22reader_impl_for_stringIcEENSt3__117basic_string_viewIcNS9_11char_traitsIcEEEENS9_12basic_stringIcSC_NS9_9allocatorIcEEEEEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIcEEE4implINS1_22reader_impl_for_stringIcEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEENSt3__117basic_string_viewIwNSJ_11char_traitsIwEEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SP_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIcEEE4implINS1_22reader_impl_for_stringIcEENSt3__117basic_string_viewIcNS9_11char_traitsIcEEEENSA_IwNSB_IwEEEEEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SI_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIcEEE4implINS1_22reader_impl_for_stringIcEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEENSt3__112basic_stringIwNSJ_11char_traitsIwEENSJ_9allocatorIwEEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SR_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIcEEE4implINS1_22reader_impl_for_stringIcEENSt3__117basic_string_viewIcNS9_11char_traitsIcEEEENS9_12basic_stringIwNSB_IwEENS9_9allocatorIwEEEEEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SL_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIcEEE4implINS1_29reader_impl_for_regex_matchesIcEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEENS0_19basic_regex_matchesIcEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SM_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIcEEE4implINS1_29reader_impl_for_regex_matchesIcEENSt3__117basic_string_viewIcNS9_11char_traitsIcEEEENS0_19basic_regex_matchesIcEEEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SI_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIcEEE4implINS1_29reader_impl_for_regex_matchesIcEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEENS0_19basic_regex_matchesIwEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SM_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIcEEE4implINS1_29reader_impl_for_regex_matchesIcEENSt3__117basic_string_viewIcNS9_11char_traitsIcEEEENS0_19basic_regex_matchesIwEEEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SI_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIcEEE4implINS1_25reader_impl_for_monostateIcEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEENS0_9monostateEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SL_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIcEEE4implINS1_25reader_impl_for_monostateIcEENSt3__117basic_string_viewIcNS9_11char_traitsIcEEEENS0_9monostateEEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS1_29basic_contiguous_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENS0_6ranges6detail9subrange_8subrangeIPKwSE_EEaEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS1_29basic_contiguous_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENS0_6ranges6detail9subrange_8subrangeIPKwSE_EEsEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ _ZN3scn2v34impl18default_arg_readerINS1_29basic_contiguous_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENS0_6ranges6detail9subrange_8subrangeIPKwSE_EEiEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Line | Count | Source | 5862 | 10.0k | { | 5863 | 10.0k | SCN_TRY(it, skip_ws_before_if_required(rd.skip_ws_before_read(), rng) | 5864 | 10.0k | .transform_error(make_eof_scan_error)); | 5865 | 10.0k | return rd.read_default(ranges::subrange{it, rng.end()}, value, loc); | 5866 | 10.0k | } |
Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS1_29basic_contiguous_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENS0_6ranges6detail9subrange_8subrangeIPKwSE_EElEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS1_29basic_contiguous_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENS0_6ranges6detail9subrange_8subrangeIPKwSE_EExEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS1_29basic_contiguous_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENS0_6ranges6detail9subrange_8subrangeIPKwSE_EEhEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS1_29basic_contiguous_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENS0_6ranges6detail9subrange_8subrangeIPKwSE_EEtEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ _ZN3scn2v34impl18default_arg_readerINS1_29basic_contiguous_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENS0_6ranges6detail9subrange_8subrangeIPKwSE_EEjEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Line | Count | Source | 5862 | 10.0k | { | 5863 | 10.0k | SCN_TRY(it, skip_ws_before_if_required(rd.skip_ws_before_read(), rng) | 5864 | 10.0k | .transform_error(make_eof_scan_error)); | 5865 | 10.0k | return rd.read_default(ranges::subrange{it, rng.end()}, value, loc); | 5866 | 10.0k | } |
Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS1_29basic_contiguous_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENS0_6ranges6detail9subrange_8subrangeIPKwSE_EEmEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS1_29basic_contiguous_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENS0_6ranges6detail9subrange_8subrangeIPKwSE_EEyEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ _ZN3scn2v34impl18default_arg_readerINS1_29basic_contiguous_scan_contextIwEEE4implINS1_23reader_impl_for_voidptrIwEENS0_6ranges6detail9subrange_8subrangeIPKwSE_EEPvEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SI_RT1_ Line | Count | Source | 5862 | 10.0k | { | 5863 | 10.0k | SCN_TRY(it, skip_ws_before_if_required(rd.skip_ws_before_read(), rng) | 5864 | 10.0k | .transform_error(make_eof_scan_error)); | 5865 | 10.0k | return rd.read_default(ranges::subrange{it, rng.end()}, value, loc); | 5866 | 10.0k | } |
_ZN3scn2v34impl18default_arg_readerINS1_29basic_contiguous_scan_contextIwEEE4implINS1_20reader_impl_for_boolIwEENS0_6ranges6detail9subrange_8subrangeIPKwSE_EEbEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Line | Count | Source | 5862 | 10.0k | { | 5863 | 10.0k | SCN_TRY(it, skip_ws_before_if_required(rd.skip_ws_before_read(), rng) | 5864 | 10.0k | .transform_error(make_eof_scan_error)); | 5865 | 10.0k | return rd.read_default(ranges::subrange{it, rng.end()}, value, loc); | 5866 | 10.0k | } |
Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS1_29basic_contiguous_scan_contextIwEEE4implINS1_20reader_impl_for_charIwEENS0_6ranges6detail9subrange_8subrangeIPKwSE_EEcEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ _ZN3scn2v34impl18default_arg_readerINS1_29basic_contiguous_scan_contextIwEEE4implINS1_21reader_impl_for_wcharIwEENS0_6ranges6detail9subrange_8subrangeIPKwSE_EEwEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Line | Count | Source | 5862 | 10.0k | { | 5863 | 10.0k | SCN_TRY(it, skip_ws_before_if_required(rd.skip_ws_before_read(), rng) | 5864 | 10.0k | .transform_error(make_eof_scan_error)); | 5865 | 10.0k | return rd.read_default(ranges::subrange{it, rng.end()}, value, loc); | 5866 | 10.0k | } |
Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS1_29basic_contiguous_scan_contextIwEEE4implINS1_26reader_impl_for_code_pointIwEENS0_6ranges6detail9subrange_8subrangeIPKwSE_EEDiEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS1_29basic_contiguous_scan_contextIwEEE4implINS1_21reader_impl_for_floatIwEENS0_6ranges6detail9subrange_8subrangeIPKwSE_EEfEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ _ZN3scn2v34impl18default_arg_readerINS1_29basic_contiguous_scan_contextIwEEE4implINS1_21reader_impl_for_floatIwEENS0_6ranges6detail9subrange_8subrangeIPKwSE_EEdEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Line | Count | Source | 5862 | 10.0k | { | 5863 | 10.0k | SCN_TRY(it, skip_ws_before_if_required(rd.skip_ws_before_read(), rng) | 5864 | 10.0k | .transform_error(make_eof_scan_error)); | 5865 | 10.0k | return rd.read_default(ranges::subrange{it, rng.end()}, value, loc); | 5866 | 10.0k | } |
Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS1_29basic_contiguous_scan_contextIwEEE4implINS1_21reader_impl_for_floatIwEENS0_6ranges6detail9subrange_8subrangeIPKwSE_EEeEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS1_29basic_contiguous_scan_contextIwEEE4implINS1_22reader_impl_for_stringIwEENS0_6ranges6detail9subrange_8subrangeIPKwSE_EENSt3__117basic_string_viewIcNSG_11char_traitsIcEEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SM_RT1_ _ZN3scn2v34impl18default_arg_readerINS1_29basic_contiguous_scan_contextIwEEE4implINS1_22reader_impl_for_stringIwEENS0_6ranges6detail9subrange_8subrangeIPKwSE_EENSt3__112basic_stringIcNSG_11char_traitsIcEENSG_9allocatorIcEEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SO_RT1_ Line | Count | Source | 5862 | 10.0k | { | 5863 | 10.0k | SCN_TRY(it, skip_ws_before_if_required(rd.skip_ws_before_read(), rng) | 5864 | 10.0k | .transform_error(make_eof_scan_error)); | 5865 | 10.0k | return rd.read_default(ranges::subrange{it, rng.end()}, value, loc); | 5866 | 10.0k | } |
_ZN3scn2v34impl18default_arg_readerINS1_29basic_contiguous_scan_contextIwEEE4implINS1_22reader_impl_for_stringIwEENS0_6ranges6detail9subrange_8subrangeIPKwSE_EENSt3__117basic_string_viewIwNSG_11char_traitsIwEEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SM_RT1_ Line | Count | Source | 5862 | 10.0k | { | 5863 | 10.0k | SCN_TRY(it, skip_ws_before_if_required(rd.skip_ws_before_read(), rng) | 5864 | 10.0k | .transform_error(make_eof_scan_error)); | 5865 | 10.0k | return rd.read_default(ranges::subrange{it, rng.end()}, value, loc); | 5866 | 10.0k | } |
_ZN3scn2v34impl18default_arg_readerINS1_29basic_contiguous_scan_contextIwEEE4implINS1_22reader_impl_for_stringIwEENS0_6ranges6detail9subrange_8subrangeIPKwSE_EENSt3__112basic_stringIwNSG_11char_traitsIwEENSG_9allocatorIwEEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SO_RT1_ Line | Count | Source | 5862 | 10.0k | { | 5863 | 10.0k | SCN_TRY(it, skip_ws_before_if_required(rd.skip_ws_before_read(), rng) | 5864 | 10.0k | .transform_error(make_eof_scan_error)); | 5865 | 10.0k | return rd.read_default(ranges::subrange{it, rng.end()}, value, loc); | 5866 | 10.0k | } |
Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS1_29basic_contiguous_scan_contextIwEEE4implINS1_29reader_impl_for_regex_matchesIwEENS0_6ranges6detail9subrange_8subrangeIPKwSE_EENS0_19basic_regex_matchesIcEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SJ_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS1_29basic_contiguous_scan_contextIwEEE4implINS1_29reader_impl_for_regex_matchesIwEENS0_6ranges6detail9subrange_8subrangeIPKwSE_EENS0_19basic_regex_matchesIwEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SJ_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS1_29basic_contiguous_scan_contextIwEEE4implINS1_25reader_impl_for_monostateIwEENS0_6ranges6detail9subrange_8subrangeIPKwSE_EENS0_9monostateEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SI_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEaEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENSt3__117basic_string_viewIwNS9_11char_traitsIwEEEEaEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEsEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENSt3__117basic_string_viewIwNS9_11char_traitsIwEEEEsEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEiEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENSt3__117basic_string_viewIwNS9_11char_traitsIwEEEEiEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEElEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENSt3__117basic_string_viewIwNS9_11char_traitsIwEEEElEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEExEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENSt3__117basic_string_viewIwNS9_11char_traitsIwEEEExEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEhEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENSt3__117basic_string_viewIwNS9_11char_traitsIwEEEEhEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEtEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENSt3__117basic_string_viewIwNS9_11char_traitsIwEEEEtEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEjEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENSt3__117basic_string_viewIwNS9_11char_traitsIwEEEEjEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEmEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENSt3__117basic_string_viewIwNS9_11char_traitsIwEEEEmEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEyEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENSt3__117basic_string_viewIwNS9_11char_traitsIwEEEEyEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIwEEE4implINS1_23reader_impl_for_voidptrIwEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEPvEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SL_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIwEEE4implINS1_23reader_impl_for_voidptrIwEENSt3__117basic_string_viewIwNS9_11char_traitsIwEEEEPvEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIwEEE4implINS1_20reader_impl_for_boolIwEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEbEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIwEEE4implINS1_20reader_impl_for_boolIwEENSt3__117basic_string_viewIwNS9_11char_traitsIwEEEEbEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIwEEE4implINS1_20reader_impl_for_charIwEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEcEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIwEEE4implINS1_20reader_impl_for_charIwEENSt3__117basic_string_viewIwNS9_11char_traitsIwEEEEcEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIwEEE4implINS1_21reader_impl_for_wcharIwEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEwEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIwEEE4implINS1_21reader_impl_for_wcharIwEENSt3__117basic_string_viewIwNS9_11char_traitsIwEEEEwEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIwEEE4implINS1_26reader_impl_for_code_pointIwEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEDiEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIwEEE4implINS1_26reader_impl_for_code_pointIwEENSt3__117basic_string_viewIwNS9_11char_traitsIwEEEEDiEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIwEEE4implINS1_21reader_impl_for_floatIwEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEfEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIwEEE4implINS1_21reader_impl_for_floatIwEENSt3__117basic_string_viewIwNS9_11char_traitsIwEEEEfEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIwEEE4implINS1_21reader_impl_for_floatIwEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEdEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIwEEE4implINS1_21reader_impl_for_floatIwEENSt3__117basic_string_viewIwNS9_11char_traitsIwEEEEdEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIwEEE4implINS1_21reader_impl_for_floatIwEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEeEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIwEEE4implINS1_21reader_impl_for_floatIwEENSt3__117basic_string_viewIwNS9_11char_traitsIwEEEEeEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIwEEE4implINS1_22reader_impl_for_stringIwEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEENSt3__117basic_string_viewIcNSJ_11char_traitsIcEEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SP_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIwEEE4implINS1_22reader_impl_for_stringIwEENSt3__117basic_string_viewIwNS9_11char_traitsIwEEEENSA_IcNSB_IcEEEEEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SI_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIwEEE4implINS1_22reader_impl_for_stringIwEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEENSt3__112basic_stringIcNSJ_11char_traitsIcEENSJ_9allocatorIcEEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SR_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIwEEE4implINS1_22reader_impl_for_stringIwEENSt3__117basic_string_viewIwNS9_11char_traitsIwEEEENS9_12basic_stringIcNSB_IcEENS9_9allocatorIcEEEEEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SL_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIwEEE4implINS1_22reader_impl_for_stringIwEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEENSt3__117basic_string_viewIwNSJ_11char_traitsIwEEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SP_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIwEEE4implINS1_22reader_impl_for_stringIwEENSt3__117basic_string_viewIwNS9_11char_traitsIwEEEESD_EENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIwEEE4implINS1_22reader_impl_for_stringIwEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEENSt3__112basic_stringIwNSJ_11char_traitsIwEENSJ_9allocatorIwEEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SR_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIwEEE4implINS1_22reader_impl_for_stringIwEENSt3__117basic_string_viewIwNS9_11char_traitsIwEEEENS9_12basic_stringIwSC_NS9_9allocatorIwEEEEEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIwEEE4implINS1_29reader_impl_for_regex_matchesIwEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEENS0_19basic_regex_matchesIcEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SM_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIwEEE4implINS1_29reader_impl_for_regex_matchesIwEENSt3__117basic_string_viewIwNS9_11char_traitsIwEEEENS0_19basic_regex_matchesIcEEEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SI_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIwEEE4implINS1_29reader_impl_for_regex_matchesIwEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEENS0_19basic_regex_matchesIwEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SM_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIwEEE4implINS1_29reader_impl_for_regex_matchesIwEENSt3__117basic_string_viewIwNS9_11char_traitsIwEEEENS0_19basic_regex_matchesIwEEEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SI_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIwEEE4implINS1_25reader_impl_for_monostateIwEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEENS0_9monostateEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SL_RT1_ Unexecuted instantiation: _ZN3scn2v34impl18default_arg_readerINS0_18basic_scan_contextIwEEE4implINS1_25reader_impl_for_monostateIwEENSt3__117basic_string_viewIwNS9_11char_traitsIwEEEENS0_9monostateEEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ |
5867 | | |
5868 | | template <typename T> |
5869 | | scan_expected<iterator> operator()(T& value) |
5870 | 95.7k | { |
5871 | 95.7k | if constexpr (!detail::is_type_disabled<T> && |
5872 | 95.7k | std::is_same_v< |
5873 | 0 | context_type, |
5874 | 0 | basic_contiguous_scan_context<char_type>>) { |
5875 | 0 | auto rd = make_reader<T, char_type>(); |
5876 | 0 | return impl(rd, range, value); |
5877 | 0 | } |
5878 | 0 | else if constexpr (!detail::is_type_disabled<T>) { |
5879 | 0 | auto rd = make_reader<T, char_type>(); |
5880 | 0 | if (!is_segment_contiguous(range)) { |
5881 | 0 | return impl(rd, range, value); |
5882 | 0 | } |
5883 | 0 | auto crange = get_as_contiguous(range); |
5884 | 0 | SCN_TRY(it, impl(rd, crange, value)); |
5885 | 0 | return ranges::next(range.begin(), |
5886 | 0 | ranges::distance(crange.begin(), it)); |
5887 | 0 | } |
5888 | 95.7k | else { |
5889 | 95.7k | SCN_EXPECT(false); |
5890 | 95.7k | SCN_UNREACHABLE; |
5891 | 95.7k | } |
5892 | 95.7k | } Unexecuted instantiation: scn::v3::scan_expected<char const*> scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<char> >::operator()<signed char>(signed char&) Unexecuted instantiation: scn::v3::scan_expected<char const*> scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<char> >::operator()<short>(short&) scn::v3::scan_expected<char const*> scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<char> >::operator()<int>(int&) Line | Count | Source | 5870 | 628 | { | 5871 | 628 | if constexpr (!detail::is_type_disabled<T> && | 5872 | 628 | std::is_same_v< | 5873 | 0 | context_type, | 5874 | 628 | basic_contiguous_scan_context<char_type>>) { | 5875 | 628 | auto rd = make_reader<T, char_type>(); | 5876 | 628 | return impl(rd, range, value); | 5877 | 628 | } | 5878 | 628 | else if constexpr (!detail::is_type_disabled<T>) { | 5879 | 628 | auto rd = make_reader<T, char_type>(); | 5880 | 628 | if (!is_segment_contiguous(range)) { | 5881 | 628 | return impl(rd, range, value); | 5882 | 628 | } | 5883 | 628 | auto crange = get_as_contiguous(range); | 5884 | 628 | SCN_TRY(it, impl(rd, crange, value)); | 5885 | 628 | return ranges::next(range.begin(), | 5886 | 628 | ranges::distance(crange.begin(), it)); | 5887 | 628 | } | 5888 | 628 | else { | 5889 | 628 | SCN_EXPECT(false); | 5890 | 628 | SCN_UNREACHABLE; | 5891 | 628 | } | 5892 | 628 | } |
Unexecuted instantiation: scn::v3::scan_expected<char const*> scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<char> >::operator()<long>(long&) Unexecuted instantiation: scn::v3::scan_expected<char const*> scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<char> >::operator()<long long>(long long&) Unexecuted instantiation: scn::v3::scan_expected<char const*> scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<char> >::operator()<unsigned char>(unsigned char&) Unexecuted instantiation: scn::v3::scan_expected<char const*> scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<char> >::operator()<unsigned short>(unsigned short&) scn::v3::scan_expected<char const*> scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<char> >::operator()<unsigned int>(unsigned int&) Line | Count | Source | 5870 | 628 | { | 5871 | 628 | if constexpr (!detail::is_type_disabled<T> && | 5872 | 628 | std::is_same_v< | 5873 | 0 | context_type, | 5874 | 628 | basic_contiguous_scan_context<char_type>>) { | 5875 | 628 | auto rd = make_reader<T, char_type>(); | 5876 | 628 | return impl(rd, range, value); | 5877 | 628 | } | 5878 | 628 | else if constexpr (!detail::is_type_disabled<T>) { | 5879 | 628 | auto rd = make_reader<T, char_type>(); | 5880 | 628 | if (!is_segment_contiguous(range)) { | 5881 | 628 | return impl(rd, range, value); | 5882 | 628 | } | 5883 | 628 | auto crange = get_as_contiguous(range); | 5884 | 628 | SCN_TRY(it, impl(rd, crange, value)); | 5885 | 628 | return ranges::next(range.begin(), | 5886 | 628 | ranges::distance(crange.begin(), it)); | 5887 | 628 | } | 5888 | 628 | else { | 5889 | 628 | SCN_EXPECT(false); | 5890 | 628 | SCN_UNREACHABLE; | 5891 | 628 | } | 5892 | 628 | } |
Unexecuted instantiation: scn::v3::scan_expected<char const*> scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<char> >::operator()<unsigned long>(unsigned long&) Unexecuted instantiation: scn::v3::scan_expected<char const*> scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<char> >::operator()<unsigned long long>(unsigned long long&) scn::v3::scan_expected<char const*> scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<char> >::operator()<void*>(void*&) Line | Count | Source | 5870 | 628 | { | 5871 | 628 | if constexpr (!detail::is_type_disabled<T> && | 5872 | 628 | std::is_same_v< | 5873 | 0 | context_type, | 5874 | 628 | basic_contiguous_scan_context<char_type>>) { | 5875 | 628 | auto rd = make_reader<T, char_type>(); | 5876 | 628 | return impl(rd, range, value); | 5877 | 628 | } | 5878 | 628 | else if constexpr (!detail::is_type_disabled<T>) { | 5879 | 628 | auto rd = make_reader<T, char_type>(); | 5880 | 628 | if (!is_segment_contiguous(range)) { | 5881 | 628 | return impl(rd, range, value); | 5882 | 628 | } | 5883 | 628 | auto crange = get_as_contiguous(range); | 5884 | 628 | SCN_TRY(it, impl(rd, crange, value)); | 5885 | 628 | return ranges::next(range.begin(), | 5886 | 628 | ranges::distance(crange.begin(), it)); | 5887 | 628 | } | 5888 | 628 | else { | 5889 | 628 | SCN_EXPECT(false); | 5890 | 628 | SCN_UNREACHABLE; | 5891 | 628 | } | 5892 | 628 | } |
scn::v3::scan_expected<char const*> scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<char> >::operator()<bool>(bool&) Line | Count | Source | 5870 | 628 | { | 5871 | 628 | if constexpr (!detail::is_type_disabled<T> && | 5872 | 628 | std::is_same_v< | 5873 | 0 | context_type, | 5874 | 628 | basic_contiguous_scan_context<char_type>>) { | 5875 | 628 | auto rd = make_reader<T, char_type>(); | 5876 | 628 | return impl(rd, range, value); | 5877 | 628 | } | 5878 | 628 | else if constexpr (!detail::is_type_disabled<T>) { | 5879 | 628 | auto rd = make_reader<T, char_type>(); | 5880 | 628 | if (!is_segment_contiguous(range)) { | 5881 | 628 | return impl(rd, range, value); | 5882 | 628 | } | 5883 | 628 | auto crange = get_as_contiguous(range); | 5884 | 628 | SCN_TRY(it, impl(rd, crange, value)); | 5885 | 628 | return ranges::next(range.begin(), | 5886 | 628 | ranges::distance(crange.begin(), it)); | 5887 | 628 | } | 5888 | 628 | else { | 5889 | 628 | SCN_EXPECT(false); | 5890 | 628 | SCN_UNREACHABLE; | 5891 | 628 | } | 5892 | 628 | } |
scn::v3::scan_expected<char const*> scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<char> >::operator()<char>(char&) Line | Count | Source | 5870 | 628 | { | 5871 | 628 | if constexpr (!detail::is_type_disabled<T> && | 5872 | 628 | std::is_same_v< | 5873 | 0 | context_type, | 5874 | 628 | basic_contiguous_scan_context<char_type>>) { | 5875 | 628 | auto rd = make_reader<T, char_type>(); | 5876 | 628 | return impl(rd, range, value); | 5877 | 628 | } | 5878 | 628 | else if constexpr (!detail::is_type_disabled<T>) { | 5879 | 628 | auto rd = make_reader<T, char_type>(); | 5880 | 628 | if (!is_segment_contiguous(range)) { | 5881 | 628 | return impl(rd, range, value); | 5882 | 628 | } | 5883 | 628 | auto crange = get_as_contiguous(range); | 5884 | 628 | SCN_TRY(it, impl(rd, crange, value)); | 5885 | 628 | return ranges::next(range.begin(), | 5886 | 628 | ranges::distance(crange.begin(), it)); | 5887 | 628 | } | 5888 | 628 | else { | 5889 | 628 | SCN_EXPECT(false); | 5890 | 628 | SCN_UNREACHABLE; | 5891 | 628 | } | 5892 | 628 | } |
Unexecuted instantiation: scn::v3::scan_expected<char const*> scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<char> >::operator()<wchar_t>(wchar_t&) Unexecuted instantiation: scn::v3::scan_expected<char const*> scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<char> >::operator()<char32_t>(char32_t&) Unexecuted instantiation: scn::v3::scan_expected<char const*> scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<char> >::operator()<float>(float&) scn::v3::scan_expected<char const*> scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<char> >::operator()<double>(double&) Line | Count | Source | 5870 | 628 | { | 5871 | 628 | if constexpr (!detail::is_type_disabled<T> && | 5872 | 628 | std::is_same_v< | 5873 | 0 | context_type, | 5874 | 628 | basic_contiguous_scan_context<char_type>>) { | 5875 | 628 | auto rd = make_reader<T, char_type>(); | 5876 | 628 | return impl(rd, range, value); | 5877 | 628 | } | 5878 | 628 | else if constexpr (!detail::is_type_disabled<T>) { | 5879 | 628 | auto rd = make_reader<T, char_type>(); | 5880 | 628 | if (!is_segment_contiguous(range)) { | 5881 | 628 | return impl(rd, range, value); | 5882 | 628 | } | 5883 | 628 | auto crange = get_as_contiguous(range); | 5884 | 628 | SCN_TRY(it, impl(rd, crange, value)); | 5885 | 628 | return ranges::next(range.begin(), | 5886 | 628 | ranges::distance(crange.begin(), it)); | 5887 | 628 | } | 5888 | 628 | else { | 5889 | 628 | SCN_EXPECT(false); | 5890 | 628 | SCN_UNREACHABLE; | 5891 | 628 | } | 5892 | 628 | } |
Unexecuted instantiation: scn::v3::scan_expected<char const*> scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<char> >::operator()<long double>(long double&) scn::v3::scan_expected<char const*> scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<char> >::operator()<std::__1::basic_string_view<char, std::__1::char_traits<char> > >(std::__1::basic_string_view<char, std::__1::char_traits<char> >&) Line | Count | Source | 5870 | 628 | { | 5871 | 628 | if constexpr (!detail::is_type_disabled<T> && | 5872 | 628 | std::is_same_v< | 5873 | 0 | context_type, | 5874 | 628 | basic_contiguous_scan_context<char_type>>) { | 5875 | 628 | auto rd = make_reader<T, char_type>(); | 5876 | 628 | return impl(rd, range, value); | 5877 | 628 | } | 5878 | 628 | else if constexpr (!detail::is_type_disabled<T>) { | 5879 | 628 | auto rd = make_reader<T, char_type>(); | 5880 | 628 | if (!is_segment_contiguous(range)) { | 5881 | 628 | return impl(rd, range, value); | 5882 | 628 | } | 5883 | 628 | auto crange = get_as_contiguous(range); | 5884 | 628 | SCN_TRY(it, impl(rd, crange, value)); | 5885 | 628 | return ranges::next(range.begin(), | 5886 | 628 | ranges::distance(crange.begin(), it)); | 5887 | 628 | } | 5888 | 628 | else { | 5889 | 628 | SCN_EXPECT(false); | 5890 | 628 | SCN_UNREACHABLE; | 5891 | 628 | } | 5892 | 628 | } |
scn::v3::scan_expected<char const*> scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<char> >::operator()<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) Line | Count | Source | 5870 | 628 | { | 5871 | 628 | if constexpr (!detail::is_type_disabled<T> && | 5872 | 628 | std::is_same_v< | 5873 | 0 | context_type, | 5874 | 628 | basic_contiguous_scan_context<char_type>>) { | 5875 | 628 | auto rd = make_reader<T, char_type>(); | 5876 | 628 | return impl(rd, range, value); | 5877 | 628 | } | 5878 | 628 | else if constexpr (!detail::is_type_disabled<T>) { | 5879 | 628 | auto rd = make_reader<T, char_type>(); | 5880 | 628 | if (!is_segment_contiguous(range)) { | 5881 | 628 | return impl(rd, range, value); | 5882 | 628 | } | 5883 | 628 | auto crange = get_as_contiguous(range); | 5884 | 628 | SCN_TRY(it, impl(rd, crange, value)); | 5885 | 628 | return ranges::next(range.begin(), | 5886 | 628 | ranges::distance(crange.begin(), it)); | 5887 | 628 | } | 5888 | 628 | else { | 5889 | 628 | SCN_EXPECT(false); | 5890 | 628 | SCN_UNREACHABLE; | 5891 | 628 | } | 5892 | 628 | } |
Unexecuted instantiation: scn::v3::scan_expected<char const*> scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<char> >::operator()<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >(std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> >&) scn::v3::scan_expected<char const*> scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<char> >::operator()<std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> > >(std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> >&) Line | Count | Source | 5870 | 628 | { | 5871 | 628 | if constexpr (!detail::is_type_disabled<T> && | 5872 | 628 | std::is_same_v< | 5873 | 0 | context_type, | 5874 | 628 | basic_contiguous_scan_context<char_type>>) { | 5875 | 628 | auto rd = make_reader<T, char_type>(); | 5876 | 628 | return impl(rd, range, value); | 5877 | 628 | } | 5878 | 628 | else if constexpr (!detail::is_type_disabled<T>) { | 5879 | 628 | auto rd = make_reader<T, char_type>(); | 5880 | 628 | if (!is_segment_contiguous(range)) { | 5881 | 628 | return impl(rd, range, value); | 5882 | 628 | } | 5883 | 628 | auto crange = get_as_contiguous(range); | 5884 | 628 | SCN_TRY(it, impl(rd, crange, value)); | 5885 | 628 | return ranges::next(range.begin(), | 5886 | 628 | ranges::distance(crange.begin(), it)); | 5887 | 628 | } | 5888 | 628 | else { | 5889 | 628 | SCN_EXPECT(false); | 5890 | 628 | SCN_UNREACHABLE; | 5891 | 628 | } | 5892 | 628 | } |
Unexecuted instantiation: scn::v3::scan_expected<char const*> scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<char> >::operator()<scn::v3::basic_regex_matches<char> >(scn::v3::basic_regex_matches<char>&) Unexecuted instantiation: scn::v3::scan_expected<char const*> scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<char> >::operator()<scn::v3::basic_regex_matches<wchar_t> >(scn::v3::basic_regex_matches<wchar_t>&) Unexecuted instantiation: scn::v3::scan_expected<char const*> scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<char> >::operator()<scn::v3::monostate>(scn::v3::monostate&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<char> >::operator()<signed char>(signed char&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<char> >::operator()<short>(short&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<char> >::operator()<int>(int&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<char> >::operator()<long>(long&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<char> >::operator()<long long>(long long&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<char> >::operator()<unsigned char>(unsigned char&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<char> >::operator()<unsigned short>(unsigned short&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<char> >::operator()<unsigned int>(unsigned int&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<char> >::operator()<unsigned long>(unsigned long&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<char> >::operator()<unsigned long long>(unsigned long long&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<char> >::operator()<void*>(void*&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<char> >::operator()<bool>(bool&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<char> >::operator()<char>(char&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<char> >::operator()<wchar_t>(wchar_t&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<char> >::operator()<char32_t>(char32_t&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<char> >::operator()<float>(float&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<char> >::operator()<double>(double&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<char> >::operator()<long double>(long double&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<char> >::operator()<std::__1::basic_string_view<char, std::__1::char_traits<char> > >(std::__1::basic_string_view<char, std::__1::char_traits<char> >&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<char> >::operator()<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<char> >::operator()<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >(std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> >&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<char> >::operator()<std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> > >(std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> >&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<char> >::operator()<scn::v3::basic_regex_matches<char> >(scn::v3::basic_regex_matches<char>&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<char> >::operator()<scn::v3::basic_regex_matches<wchar_t> >(scn::v3::basic_regex_matches<wchar_t>&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<char> >::operator()<scn::v3::monostate>(scn::v3::monostate&) Unexecuted instantiation: scn::v3::scan_expected<wchar_t const*> scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<wchar_t> >::operator()<signed char>(signed char&) Unexecuted instantiation: scn::v3::scan_expected<wchar_t const*> scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<wchar_t> >::operator()<short>(short&) scn::v3::scan_expected<wchar_t const*> scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<wchar_t> >::operator()<int>(int&) Line | Count | Source | 5870 | 10.0k | { | 5871 | 10.0k | if constexpr (!detail::is_type_disabled<T> && | 5872 | 10.0k | std::is_same_v< | 5873 | 0 | context_type, | 5874 | 10.0k | basic_contiguous_scan_context<char_type>>) { | 5875 | 10.0k | auto rd = make_reader<T, char_type>(); | 5876 | 10.0k | return impl(rd, range, value); | 5877 | 10.0k | } | 5878 | 10.0k | else if constexpr (!detail::is_type_disabled<T>) { | 5879 | 10.0k | auto rd = make_reader<T, char_type>(); | 5880 | 10.0k | if (!is_segment_contiguous(range)) { | 5881 | 10.0k | return impl(rd, range, value); | 5882 | 10.0k | } | 5883 | 10.0k | auto crange = get_as_contiguous(range); | 5884 | 10.0k | SCN_TRY(it, impl(rd, crange, value)); | 5885 | 10.0k | return ranges::next(range.begin(), | 5886 | 10.0k | ranges::distance(crange.begin(), it)); | 5887 | 10.0k | } | 5888 | 10.0k | else { | 5889 | 10.0k | SCN_EXPECT(false); | 5890 | 10.0k | SCN_UNREACHABLE; | 5891 | 10.0k | } | 5892 | 10.0k | } |
Unexecuted instantiation: scn::v3::scan_expected<wchar_t const*> scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<wchar_t> >::operator()<long>(long&) Unexecuted instantiation: scn::v3::scan_expected<wchar_t const*> scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<wchar_t> >::operator()<long long>(long long&) Unexecuted instantiation: scn::v3::scan_expected<wchar_t const*> scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<wchar_t> >::operator()<unsigned char>(unsigned char&) Unexecuted instantiation: scn::v3::scan_expected<wchar_t const*> scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<wchar_t> >::operator()<unsigned short>(unsigned short&) scn::v3::scan_expected<wchar_t const*> scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<wchar_t> >::operator()<unsigned int>(unsigned int&) Line | Count | Source | 5870 | 10.0k | { | 5871 | 10.0k | if constexpr (!detail::is_type_disabled<T> && | 5872 | 10.0k | std::is_same_v< | 5873 | 0 | context_type, | 5874 | 10.0k | basic_contiguous_scan_context<char_type>>) { | 5875 | 10.0k | auto rd = make_reader<T, char_type>(); | 5876 | 10.0k | return impl(rd, range, value); | 5877 | 10.0k | } | 5878 | 10.0k | else if constexpr (!detail::is_type_disabled<T>) { | 5879 | 10.0k | auto rd = make_reader<T, char_type>(); | 5880 | 10.0k | if (!is_segment_contiguous(range)) { | 5881 | 10.0k | return impl(rd, range, value); | 5882 | 10.0k | } | 5883 | 10.0k | auto crange = get_as_contiguous(range); | 5884 | 10.0k | SCN_TRY(it, impl(rd, crange, value)); | 5885 | 10.0k | return ranges::next(range.begin(), | 5886 | 10.0k | ranges::distance(crange.begin(), it)); | 5887 | 10.0k | } | 5888 | 10.0k | else { | 5889 | 10.0k | SCN_EXPECT(false); | 5890 | 10.0k | SCN_UNREACHABLE; | 5891 | 10.0k | } | 5892 | 10.0k | } |
Unexecuted instantiation: scn::v3::scan_expected<wchar_t const*> scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<wchar_t> >::operator()<unsigned long>(unsigned long&) Unexecuted instantiation: scn::v3::scan_expected<wchar_t const*> scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<wchar_t> >::operator()<unsigned long long>(unsigned long long&) scn::v3::scan_expected<wchar_t const*> scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<wchar_t> >::operator()<void*>(void*&) Line | Count | Source | 5870 | 10.0k | { | 5871 | 10.0k | if constexpr (!detail::is_type_disabled<T> && | 5872 | 10.0k | std::is_same_v< | 5873 | 0 | context_type, | 5874 | 10.0k | basic_contiguous_scan_context<char_type>>) { | 5875 | 10.0k | auto rd = make_reader<T, char_type>(); | 5876 | 10.0k | return impl(rd, range, value); | 5877 | 10.0k | } | 5878 | 10.0k | else if constexpr (!detail::is_type_disabled<T>) { | 5879 | 10.0k | auto rd = make_reader<T, char_type>(); | 5880 | 10.0k | if (!is_segment_contiguous(range)) { | 5881 | 10.0k | return impl(rd, range, value); | 5882 | 10.0k | } | 5883 | 10.0k | auto crange = get_as_contiguous(range); | 5884 | 10.0k | SCN_TRY(it, impl(rd, crange, value)); | 5885 | 10.0k | return ranges::next(range.begin(), | 5886 | 10.0k | ranges::distance(crange.begin(), it)); | 5887 | 10.0k | } | 5888 | 10.0k | else { | 5889 | 10.0k | SCN_EXPECT(false); | 5890 | 10.0k | SCN_UNREACHABLE; | 5891 | 10.0k | } | 5892 | 10.0k | } |
scn::v3::scan_expected<wchar_t const*> scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<wchar_t> >::operator()<bool>(bool&) Line | Count | Source | 5870 | 10.0k | { | 5871 | 10.0k | if constexpr (!detail::is_type_disabled<T> && | 5872 | 10.0k | std::is_same_v< | 5873 | 0 | context_type, | 5874 | 10.0k | basic_contiguous_scan_context<char_type>>) { | 5875 | 10.0k | auto rd = make_reader<T, char_type>(); | 5876 | 10.0k | return impl(rd, range, value); | 5877 | 10.0k | } | 5878 | 10.0k | else if constexpr (!detail::is_type_disabled<T>) { | 5879 | 10.0k | auto rd = make_reader<T, char_type>(); | 5880 | 10.0k | if (!is_segment_contiguous(range)) { | 5881 | 10.0k | return impl(rd, range, value); | 5882 | 10.0k | } | 5883 | 10.0k | auto crange = get_as_contiguous(range); | 5884 | 10.0k | SCN_TRY(it, impl(rd, crange, value)); | 5885 | 10.0k | return ranges::next(range.begin(), | 5886 | 10.0k | ranges::distance(crange.begin(), it)); | 5887 | 10.0k | } | 5888 | 10.0k | else { | 5889 | 10.0k | SCN_EXPECT(false); | 5890 | 10.0k | SCN_UNREACHABLE; | 5891 | 10.0k | } | 5892 | 10.0k | } |
Unexecuted instantiation: scn::v3::scan_expected<wchar_t const*> scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<wchar_t> >::operator()<char>(char&) scn::v3::scan_expected<wchar_t const*> scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<wchar_t> >::operator()<wchar_t>(wchar_t&) Line | Count | Source | 5870 | 10.0k | { | 5871 | 10.0k | if constexpr (!detail::is_type_disabled<T> && | 5872 | 10.0k | std::is_same_v< | 5873 | 0 | context_type, | 5874 | 10.0k | basic_contiguous_scan_context<char_type>>) { | 5875 | 10.0k | auto rd = make_reader<T, char_type>(); | 5876 | 10.0k | return impl(rd, range, value); | 5877 | 10.0k | } | 5878 | 10.0k | else if constexpr (!detail::is_type_disabled<T>) { | 5879 | 10.0k | auto rd = make_reader<T, char_type>(); | 5880 | 10.0k | if (!is_segment_contiguous(range)) { | 5881 | 10.0k | return impl(rd, range, value); | 5882 | 10.0k | } | 5883 | 10.0k | auto crange = get_as_contiguous(range); | 5884 | 10.0k | SCN_TRY(it, impl(rd, crange, value)); | 5885 | 10.0k | return ranges::next(range.begin(), | 5886 | 10.0k | ranges::distance(crange.begin(), it)); | 5887 | 10.0k | } | 5888 | 10.0k | else { | 5889 | 10.0k | SCN_EXPECT(false); | 5890 | 10.0k | SCN_UNREACHABLE; | 5891 | 10.0k | } | 5892 | 10.0k | } |
Unexecuted instantiation: scn::v3::scan_expected<wchar_t const*> scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<wchar_t> >::operator()<char32_t>(char32_t&) Unexecuted instantiation: scn::v3::scan_expected<wchar_t const*> scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<wchar_t> >::operator()<float>(float&) scn::v3::scan_expected<wchar_t const*> scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<wchar_t> >::operator()<double>(double&) Line | Count | Source | 5870 | 10.0k | { | 5871 | 10.0k | if constexpr (!detail::is_type_disabled<T> && | 5872 | 10.0k | std::is_same_v< | 5873 | 0 | context_type, | 5874 | 10.0k | basic_contiguous_scan_context<char_type>>) { | 5875 | 10.0k | auto rd = make_reader<T, char_type>(); | 5876 | 10.0k | return impl(rd, range, value); | 5877 | 10.0k | } | 5878 | 10.0k | else if constexpr (!detail::is_type_disabled<T>) { | 5879 | 10.0k | auto rd = make_reader<T, char_type>(); | 5880 | 10.0k | if (!is_segment_contiguous(range)) { | 5881 | 10.0k | return impl(rd, range, value); | 5882 | 10.0k | } | 5883 | 10.0k | auto crange = get_as_contiguous(range); | 5884 | 10.0k | SCN_TRY(it, impl(rd, crange, value)); | 5885 | 10.0k | return ranges::next(range.begin(), | 5886 | 10.0k | ranges::distance(crange.begin(), it)); | 5887 | 10.0k | } | 5888 | 10.0k | else { | 5889 | 10.0k | SCN_EXPECT(false); | 5890 | 10.0k | SCN_UNREACHABLE; | 5891 | 10.0k | } | 5892 | 10.0k | } |
Unexecuted instantiation: scn::v3::scan_expected<wchar_t const*> scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<wchar_t> >::operator()<long double>(long double&) Unexecuted instantiation: scn::v3::scan_expected<wchar_t const*> scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<wchar_t> >::operator()<std::__1::basic_string_view<char, std::__1::char_traits<char> > >(std::__1::basic_string_view<char, std::__1::char_traits<char> >&) scn::v3::scan_expected<wchar_t const*> scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<wchar_t> >::operator()<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) Line | Count | Source | 5870 | 10.0k | { | 5871 | 10.0k | if constexpr (!detail::is_type_disabled<T> && | 5872 | 10.0k | std::is_same_v< | 5873 | 0 | context_type, | 5874 | 10.0k | basic_contiguous_scan_context<char_type>>) { | 5875 | 10.0k | auto rd = make_reader<T, char_type>(); | 5876 | 10.0k | return impl(rd, range, value); | 5877 | 10.0k | } | 5878 | 10.0k | else if constexpr (!detail::is_type_disabled<T>) { | 5879 | 10.0k | auto rd = make_reader<T, char_type>(); | 5880 | 10.0k | if (!is_segment_contiguous(range)) { | 5881 | 10.0k | return impl(rd, range, value); | 5882 | 10.0k | } | 5883 | 10.0k | auto crange = get_as_contiguous(range); | 5884 | 10.0k | SCN_TRY(it, impl(rd, crange, value)); | 5885 | 10.0k | return ranges::next(range.begin(), | 5886 | 10.0k | ranges::distance(crange.begin(), it)); | 5887 | 10.0k | } | 5888 | 10.0k | else { | 5889 | 10.0k | SCN_EXPECT(false); | 5890 | 10.0k | SCN_UNREACHABLE; | 5891 | 10.0k | } | 5892 | 10.0k | } |
scn::v3::scan_expected<wchar_t const*> scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<wchar_t> >::operator()<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >(std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> >&) Line | Count | Source | 5870 | 10.0k | { | 5871 | 10.0k | if constexpr (!detail::is_type_disabled<T> && | 5872 | 10.0k | std::is_same_v< | 5873 | 0 | context_type, | 5874 | 10.0k | basic_contiguous_scan_context<char_type>>) { | 5875 | 10.0k | auto rd = make_reader<T, char_type>(); | 5876 | 10.0k | return impl(rd, range, value); | 5877 | 10.0k | } | 5878 | 10.0k | else if constexpr (!detail::is_type_disabled<T>) { | 5879 | 10.0k | auto rd = make_reader<T, char_type>(); | 5880 | 10.0k | if (!is_segment_contiguous(range)) { | 5881 | 10.0k | return impl(rd, range, value); | 5882 | 10.0k | } | 5883 | 10.0k | auto crange = get_as_contiguous(range); | 5884 | 10.0k | SCN_TRY(it, impl(rd, crange, value)); | 5885 | 10.0k | return ranges::next(range.begin(), | 5886 | 10.0k | ranges::distance(crange.begin(), it)); | 5887 | 10.0k | } | 5888 | 10.0k | else { | 5889 | 10.0k | SCN_EXPECT(false); | 5890 | 10.0k | SCN_UNREACHABLE; | 5891 | 10.0k | } | 5892 | 10.0k | } |
scn::v3::scan_expected<wchar_t const*> scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<wchar_t> >::operator()<std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> > >(std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> >&) Line | Count | Source | 5870 | 10.0k | { | 5871 | 10.0k | if constexpr (!detail::is_type_disabled<T> && | 5872 | 10.0k | std::is_same_v< | 5873 | 0 | context_type, | 5874 | 10.0k | basic_contiguous_scan_context<char_type>>) { | 5875 | 10.0k | auto rd = make_reader<T, char_type>(); | 5876 | 10.0k | return impl(rd, range, value); | 5877 | 10.0k | } | 5878 | 10.0k | else if constexpr (!detail::is_type_disabled<T>) { | 5879 | 10.0k | auto rd = make_reader<T, char_type>(); | 5880 | 10.0k | if (!is_segment_contiguous(range)) { | 5881 | 10.0k | return impl(rd, range, value); | 5882 | 10.0k | } | 5883 | 10.0k | auto crange = get_as_contiguous(range); | 5884 | 10.0k | SCN_TRY(it, impl(rd, crange, value)); | 5885 | 10.0k | return ranges::next(range.begin(), | 5886 | 10.0k | ranges::distance(crange.begin(), it)); | 5887 | 10.0k | } | 5888 | 10.0k | else { | 5889 | 10.0k | SCN_EXPECT(false); | 5890 | 10.0k | SCN_UNREACHABLE; | 5891 | 10.0k | } | 5892 | 10.0k | } |
Unexecuted instantiation: scn::v3::scan_expected<wchar_t const*> scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<wchar_t> >::operator()<scn::v3::basic_regex_matches<char> >(scn::v3::basic_regex_matches<char>&) Unexecuted instantiation: scn::v3::scan_expected<wchar_t const*> scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<wchar_t> >::operator()<scn::v3::basic_regex_matches<wchar_t> >(scn::v3::basic_regex_matches<wchar_t>&) Unexecuted instantiation: scn::v3::scan_expected<wchar_t const*> scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<wchar_t> >::operator()<scn::v3::monostate>(scn::v3::monostate&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<signed char>(signed char&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<short>(short&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<int>(int&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<long>(long&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<long long>(long long&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<unsigned char>(unsigned char&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<unsigned short>(unsigned short&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<unsigned int>(unsigned int&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<unsigned long>(unsigned long&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<unsigned long long>(unsigned long long&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<void*>(void*&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<bool>(bool&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<char>(char&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<wchar_t>(wchar_t&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<char32_t>(char32_t&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<float>(float&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<double>(double&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<long double>(long double&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<std::__1::basic_string_view<char, std::__1::char_traits<char> > >(std::__1::basic_string_view<char, std::__1::char_traits<char> >&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >(std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> >&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> > >(std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> >&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<scn::v3::basic_regex_matches<char> >(scn::v3::basic_regex_matches<char>&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<scn::v3::basic_regex_matches<wchar_t> >(scn::v3::basic_regex_matches<wchar_t>&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<scn::v3::monostate>(scn::v3::monostate&) |
5893 | | |
5894 | | basic_scan_context<char_type> make_custom_ctx() |
5895 | 0 | { |
5896 | 0 | if constexpr (std::is_same_v< |
5897 | 0 | context_type, |
5898 | 0 | basic_contiguous_scan_context<char_type>>) { |
5899 | 0 | auto it = |
5900 | 0 | typename detail::basic_scan_buffer<char_type>::forward_iterator{ |
5901 | 0 | std::basic_string_view<char_type>(range.data(), |
5902 | 0 | range.size()), |
5903 | 0 | 0}; |
5904 | 0 | return {it, args, loc}; |
5905 | 0 | } |
5906 | 0 | else { |
5907 | 0 | return {range.begin(), args, loc}; |
5908 | 0 | } |
5909 | 0 | } Unexecuted instantiation: scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<char> >::make_custom_ctx() Unexecuted instantiation: scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<char> >::make_custom_ctx() Unexecuted instantiation: scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<wchar_t> >::make_custom_ctx() Unexecuted instantiation: scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<wchar_t> >::make_custom_ctx() |
5910 | | |
5911 | | scan_expected<iterator> operator()( |
5912 | | typename context_type::arg_type::handle h) |
5913 | 0 | { |
5914 | 0 | if constexpr (!detail::is_type_disabled<void>) { |
5915 | 0 | basic_scan_parse_context<char_type> parse_ctx{{}}; |
5916 | 0 | auto ctx = make_custom_ctx(); |
5917 | 0 | if (auto e = h.scan(parse_ctx, ctx); !e) { |
5918 | 0 | return unexpected(e); |
5919 | 0 | } |
5920 | | |
5921 | 0 | if constexpr (std::is_same_v< |
5922 | 0 | context_type, |
5923 | 0 | basic_contiguous_scan_context<char_type>>) { |
5924 | 0 | return range.begin() + ctx.begin().position(); |
5925 | 0 | } |
5926 | 0 | else { |
5927 | 0 | return ctx.begin(); |
5928 | 0 | } |
5929 | 0 | } |
5930 | 0 | else { |
5931 | 0 | SCN_EXPECT(false); |
5932 | 0 | SCN_UNREACHABLE; |
5933 | 0 | } |
5934 | 0 | } Unexecuted instantiation: scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<char> >::operator()(scn::v3::basic_scan_arg<scn::v3::basic_scan_context<char> >::handle) Unexecuted instantiation: scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<char> >::operator()(scn::v3::basic_scan_arg<scn::v3::basic_scan_context<char> >::handle) Unexecuted instantiation: scn::v3::impl::default_arg_reader<scn::v3::impl::basic_contiguous_scan_context<wchar_t> >::operator()(scn::v3::basic_scan_arg<scn::v3::basic_scan_context<wchar_t> >::handle) Unexecuted instantiation: scn::v3::impl::default_arg_reader<scn::v3::basic_scan_context<wchar_t> >::operator()(scn::v3::basic_scan_arg<scn::v3::basic_scan_context<wchar_t> >::handle) |
5935 | | |
5936 | | range_type range; |
5937 | | args_type args; |
5938 | | detail::locale_ref loc; |
5939 | | }; |
5940 | | |
5941 | | template <typename Iterator> |
5942 | | using skip_fill_result = std::pair<Iterator, std::ptrdiff_t>; |
5943 | | |
5944 | | template <typename Range> |
5945 | | auto skip_fill(Range range, |
5946 | | std::ptrdiff_t max_width, |
5947 | | const detail::fill_type& fill, |
5948 | | bool want_skipped_width) |
5949 | | -> scan_expected<skip_fill_result<ranges::iterator_t<Range>>> |
5950 | 3.26k | { |
5951 | 3.26k | using char_type = detail::char_t<Range>; |
5952 | 3.26k | using result_type = skip_fill_result<ranges::iterator_t<Range>>; |
5953 | | |
5954 | 3.26k | if (fill.size() <= sizeof(char_type)) { |
5955 | 2.82k | const auto fill_ch = fill.template get_code_unit<char_type>(); |
5956 | 3.71k | const auto pred = [=](char_type ch) { return ch == fill_ch; };Unexecuted instantiation: _ZZN3scn2v34impl9skip_fillINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS4_18default_sentinel_tEEEEEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRT_EEEElEEEESI_lRKNS8_9fill_typeEbENKUlcE_clEc Unexecuted instantiation: _ZZN3scn2v34impl9skip_fillINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRT_EEEElEEEESG_lRKNS7_9fill_typeEbENKUlcE_clEc Unexecuted instantiation: _ZZN3scn2v34impl9skip_fillINS1_15take_width_viewINSt3__117basic_string_viewIcNS4_11char_traitsIcEEEEEEEENS0_13scan_expectedINS4_4pairIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT_EEEElEEEESD_lRKNS0_6detail9fill_typeEbENKUlcE_clEc Unexecuted instantiation: _ZZN3scn2v34impl9skip_fillINSt3__117basic_string_viewIcNS3_11char_traitsIcEEEEEENS0_13scan_expectedINS3_4pairIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT_EEEElEEEESB_lRKNS0_6detail9fill_typeEbENKUlcE_clEc _ZZN3scn2v34impl9skip_fillINS0_6ranges6detail9subrange_8subrangeIPKcS8_EEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRT_EEEElEEEESD_lRKNS0_6detail9fill_typeEbENKUlcE_clEc Line | Count | Source | 5956 | 2.10k | const auto pred = [=](char_type ch) { return ch == fill_ch; }; |
Unexecuted instantiation: _ZZN3scn2v34impl9skip_fillINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS4_18default_sentinel_tEEEEEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRT_EEEElEEEESI_lRKNS8_9fill_typeEbENKUlwE_clEw Unexecuted instantiation: _ZZN3scn2v34impl9skip_fillINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRT_EEEElEEEESG_lRKNS7_9fill_typeEbENKUlwE_clEw Unexecuted instantiation: _ZZN3scn2v34impl9skip_fillINS1_15take_width_viewINSt3__117basic_string_viewIwNS4_11char_traitsIwEEEEEEEENS0_13scan_expectedINS4_4pairIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT_EEEElEEEESD_lRKNS0_6detail9fill_typeEbENKUlwE_clEw Unexecuted instantiation: _ZZN3scn2v34impl9skip_fillINSt3__117basic_string_viewIwNS3_11char_traitsIwEEEEEENS0_13scan_expectedINS3_4pairIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT_EEEElEEEESB_lRKNS0_6detail9fill_typeEbENKUlwE_clEw _ZZN3scn2v34impl9skip_fillINS0_6ranges6detail9subrange_8subrangeIPKwS8_EEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRT_EEEElEEEESD_lRKNS0_6detail9fill_typeEbENKUlwE_clEw Line | Count | Source | 5956 | 514 | const auto pred = [=](char_type ch) { return ch == fill_ch; }; |
_ZZN3scn2v34impl9skip_fillINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcS9_EEEEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRT_EEEElEEEESF_lRKNS0_6detail9fill_typeEbENKUlcE_clEc Line | Count | Source | 5956 | 812 | const auto pred = [=](char_type ch) { return ch == fill_ch; }; |
_ZZN3scn2v34impl9skip_fillINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwS9_EEEEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRT_EEEElEEEESF_lRKNS0_6detail9fill_typeEbENKUlwE_clEw Line | Count | Source | 5956 | 288 | const auto pred = [=](char_type ch) { return ch == fill_ch; }; |
|
5957 | | |
5958 | 2.82k | if (max_width == 0) { |
5959 | 1.91k | auto it = read_while_code_unit(range, pred); |
5960 | | |
5961 | 1.91k | if (want_skipped_width) { |
5962 | 202 | auto prefix_width = |
5963 | 202 | static_cast<std::ptrdiff_t>( |
5964 | 202 | calculate_text_width(static_cast<char32_t>(fill_ch))) * |
5965 | 202 | ranges::distance(range.begin(), it); |
5966 | 202 | return result_type{it, prefix_width}; |
5967 | 202 | } |
5968 | 1.71k | return result_type{it, 0}; |
5969 | 1.91k | } |
5970 | | |
5971 | 914 | auto max_width_view = take_width(range, max_width); |
5972 | 914 | auto w_it = read_while_code_unit(max_width_view, pred); |
5973 | | |
5974 | 914 | if (want_skipped_width) { |
5975 | 914 | return result_type{w_it.base(), max_width - w_it.count()}; |
5976 | 914 | } |
5977 | 0 | return result_type{w_it.base(), 0}; |
5978 | 914 | } |
5979 | | |
5980 | 438 | const auto fill_chars = fill.template get_code_units<char_type>(); |
5981 | 438 | if (max_width == 0) { |
5982 | 132 | auto it = read_while_code_units(range, fill_chars); |
5983 | | |
5984 | 132 | if (want_skipped_width) { |
5985 | 52 | auto prefix_width = |
5986 | 52 | static_cast<std::ptrdiff_t>(calculate_text_width(fill_chars)) * |
5987 | 52 | ranges::distance(range.begin(), it) / ranges::ssize(fill_chars); |
5988 | 52 | return result_type{it, prefix_width}; |
5989 | 52 | } |
5990 | 80 | return result_type{it, 0}; |
5991 | 132 | } |
5992 | | |
5993 | 306 | auto max_width_view = take_width(range, max_width); |
5994 | 306 | auto w_it = read_while_code_units(max_width_view, fill_chars); |
5995 | | |
5996 | 306 | if (want_skipped_width) { |
5997 | 306 | return result_type{w_it.base(), max_width - w_it.count()}; |
5998 | 306 | } |
5999 | 0 | return result_type{w_it.base(), 0}; |
6000 | 306 | } Unexecuted instantiation: _ZN3scn2v34impl9skip_fillINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS4_18default_sentinel_tEEEEEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRT_EEEElEEEESI_lRKNS8_9fill_typeEb Unexecuted instantiation: _ZN3scn2v34impl9skip_fillINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS3_18default_sentinel_tEEEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRT_EEEElEEEESG_lRKNS7_9fill_typeEb Unexecuted instantiation: _ZN3scn2v34impl9skip_fillINS1_15take_width_viewINSt3__117basic_string_viewIcNS4_11char_traitsIcEEEEEEEENS0_13scan_expectedINS4_4pairIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT_EEEElEEEESD_lRKNS0_6detail9fill_typeEb Unexecuted instantiation: _ZN3scn2v34impl9skip_fillINSt3__117basic_string_viewIcNS3_11char_traitsIcEEEEEENS0_13scan_expectedINS3_4pairIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT_EEEElEEEESB_lRKNS0_6detail9fill_typeEb _ZN3scn2v34impl9skip_fillINS0_6ranges6detail9subrange_8subrangeIPKcS8_EEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRT_EEEElEEEESD_lRKNS0_6detail9fill_typeEb Line | Count | Source | 5950 | 1.91k | { | 5951 | 1.91k | using char_type = detail::char_t<Range>; | 5952 | 1.91k | using result_type = skip_fill_result<ranges::iterator_t<Range>>; | 5953 | | | 5954 | 1.91k | if (fill.size() <= sizeof(char_type)) { | 5955 | 1.67k | const auto fill_ch = fill.template get_code_unit<char_type>(); | 5956 | 1.67k | const auto pred = [=](char_type ch) { return ch == fill_ch; }; | 5957 | | | 5958 | 1.67k | if (max_width == 0) { | 5959 | 1.55k | auto it = read_while_code_unit(range, pred); | 5960 | | | 5961 | 1.55k | if (want_skipped_width) { | 5962 | 160 | auto prefix_width = | 5963 | 160 | static_cast<std::ptrdiff_t>( | 5964 | 160 | calculate_text_width(static_cast<char32_t>(fill_ch))) * | 5965 | 160 | ranges::distance(range.begin(), it); | 5966 | 160 | return result_type{it, prefix_width}; | 5967 | 160 | } | 5968 | 1.39k | return result_type{it, 0}; | 5969 | 1.55k | } | 5970 | | | 5971 | 128 | auto max_width_view = take_width(range, max_width); | 5972 | 128 | auto w_it = read_while_code_unit(max_width_view, pred); | 5973 | | | 5974 | 128 | if (want_skipped_width) { | 5975 | 128 | return result_type{w_it.base(), max_width - w_it.count()}; | 5976 | 128 | } | 5977 | 0 | return result_type{w_it.base(), 0}; | 5978 | 128 | } | 5979 | | | 5980 | 232 | const auto fill_chars = fill.template get_code_units<char_type>(); | 5981 | 232 | if (max_width == 0) { | 5982 | 132 | auto it = read_while_code_units(range, fill_chars); | 5983 | | | 5984 | 132 | if (want_skipped_width) { | 5985 | 52 | auto prefix_width = | 5986 | 52 | static_cast<std::ptrdiff_t>(calculate_text_width(fill_chars)) * | 5987 | 52 | ranges::distance(range.begin(), it) / ranges::ssize(fill_chars); | 5988 | 52 | return result_type{it, prefix_width}; | 5989 | 52 | } | 5990 | 80 | return result_type{it, 0}; | 5991 | 132 | } | 5992 | | | 5993 | 100 | auto max_width_view = take_width(range, max_width); | 5994 | 100 | auto w_it = read_while_code_units(max_width_view, fill_chars); | 5995 | | | 5996 | 100 | if (want_skipped_width) { | 5997 | 100 | return result_type{w_it.base(), max_width - w_it.count()}; | 5998 | 100 | } | 5999 | 0 | return result_type{w_it.base(), 0}; | 6000 | 100 | } |
Unexecuted instantiation: _ZN3scn2v34impl9skip_fillINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS4_18default_sentinel_tEEEEEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRT_EEEElEEEESI_lRKNS8_9fill_typeEb Unexecuted instantiation: _ZN3scn2v34impl9skip_fillINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS3_18default_sentinel_tEEEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRT_EEEElEEEESG_lRKNS7_9fill_typeEb Unexecuted instantiation: _ZN3scn2v34impl9skip_fillINS1_15take_width_viewINSt3__117basic_string_viewIwNS4_11char_traitsIwEEEEEEEENS0_13scan_expectedINS4_4pairIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT_EEEElEEEESD_lRKNS0_6detail9fill_typeEb Unexecuted instantiation: _ZN3scn2v34impl9skip_fillINSt3__117basic_string_viewIwNS3_11char_traitsIwEEEEEENS0_13scan_expectedINS3_4pairIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT_EEEElEEEESB_lRKNS0_6detail9fill_typeEb _ZN3scn2v34impl9skip_fillINS0_6ranges6detail9subrange_8subrangeIPKwS8_EEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS3_5beginEEclsr3stdE7declvalIRT_EEEElEEEESD_lRKNS0_6detail9fill_typeEb Line | Count | Source | 5950 | 402 | { | 5951 | 402 | using char_type = detail::char_t<Range>; | 5952 | 402 | using result_type = skip_fill_result<ranges::iterator_t<Range>>; | 5953 | | | 5954 | 402 | if (fill.size() <= sizeof(char_type)) { | 5955 | 402 | const auto fill_ch = fill.template get_code_unit<char_type>(); | 5956 | 402 | const auto pred = [=](char_type ch) { return ch == fill_ch; }; | 5957 | | | 5958 | 402 | if (max_width == 0) { | 5959 | 362 | auto it = read_while_code_unit(range, pred); | 5960 | | | 5961 | 362 | if (want_skipped_width) { | 5962 | 42 | auto prefix_width = | 5963 | 42 | static_cast<std::ptrdiff_t>( | 5964 | 42 | calculate_text_width(static_cast<char32_t>(fill_ch))) * | 5965 | 42 | ranges::distance(range.begin(), it); | 5966 | 42 | return result_type{it, prefix_width}; | 5967 | 42 | } | 5968 | 320 | return result_type{it, 0}; | 5969 | 362 | } | 5970 | | | 5971 | 40 | auto max_width_view = take_width(range, max_width); | 5972 | 40 | auto w_it = read_while_code_unit(max_width_view, pred); | 5973 | | | 5974 | 40 | if (want_skipped_width) { | 5975 | 40 | return result_type{w_it.base(), max_width - w_it.count()}; | 5976 | 40 | } | 5977 | 0 | return result_type{w_it.base(), 0}; | 5978 | 40 | } | 5979 | | | 5980 | 0 | const auto fill_chars = fill.template get_code_units<char_type>(); | 5981 | 0 | if (max_width == 0) { | 5982 | 0 | auto it = read_while_code_units(range, fill_chars); | 5983 | |
| 5984 | 0 | if (want_skipped_width) { | 5985 | 0 | auto prefix_width = | 5986 | 0 | static_cast<std::ptrdiff_t>(calculate_text_width(fill_chars)) * | 5987 | 0 | ranges::distance(range.begin(), it) / ranges::ssize(fill_chars); | 5988 | 0 | return result_type{it, prefix_width}; | 5989 | 0 | } | 5990 | 0 | return result_type{it, 0}; | 5991 | 0 | } | 5992 | | | 5993 | 0 | auto max_width_view = take_width(range, max_width); | 5994 | 0 | auto w_it = read_while_code_units(max_width_view, fill_chars); | 5995 | |
| 5996 | 0 | if (want_skipped_width) { | 5997 | 0 | return result_type{w_it.base(), max_width - w_it.count()}; | 5998 | 0 | } | 5999 | 0 | return result_type{w_it.base(), 0}; | 6000 | 0 | } |
_ZN3scn2v34impl9skip_fillINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcS9_EEEEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRT_EEEElEEEESF_lRKNS0_6detail9fill_typeEb Line | Count | Source | 5950 | 710 | { | 5951 | 710 | using char_type = detail::char_t<Range>; | 5952 | 710 | using result_type = skip_fill_result<ranges::iterator_t<Range>>; | 5953 | | | 5954 | 710 | if (fill.size() <= sizeof(char_type)) { | 5955 | 504 | const auto fill_ch = fill.template get_code_unit<char_type>(); | 5956 | 504 | const auto pred = [=](char_type ch) { return ch == fill_ch; }; | 5957 | | | 5958 | 504 | if (max_width == 0) { | 5959 | 0 | auto it = read_while_code_unit(range, pred); | 5960 | |
| 5961 | 0 | if (want_skipped_width) { | 5962 | 0 | auto prefix_width = | 5963 | 0 | static_cast<std::ptrdiff_t>( | 5964 | 0 | calculate_text_width(static_cast<char32_t>(fill_ch))) * | 5965 | 0 | ranges::distance(range.begin(), it); | 5966 | 0 | return result_type{it, prefix_width}; | 5967 | 0 | } | 5968 | 0 | return result_type{it, 0}; | 5969 | 0 | } | 5970 | | | 5971 | 504 | auto max_width_view = take_width(range, max_width); | 5972 | 504 | auto w_it = read_while_code_unit(max_width_view, pred); | 5973 | | | 5974 | 504 | if (want_skipped_width) { | 5975 | 504 | return result_type{w_it.base(), max_width - w_it.count()}; | 5976 | 504 | } | 5977 | 0 | return result_type{w_it.base(), 0}; | 5978 | 504 | } | 5979 | | | 5980 | 206 | const auto fill_chars = fill.template get_code_units<char_type>(); | 5981 | 206 | if (max_width == 0) { | 5982 | 0 | auto it = read_while_code_units(range, fill_chars); | 5983 | |
| 5984 | 0 | if (want_skipped_width) { | 5985 | 0 | auto prefix_width = | 5986 | 0 | static_cast<std::ptrdiff_t>(calculate_text_width(fill_chars)) * | 5987 | 0 | ranges::distance(range.begin(), it) / ranges::ssize(fill_chars); | 5988 | 0 | return result_type{it, prefix_width}; | 5989 | 0 | } | 5990 | 0 | return result_type{it, 0}; | 5991 | 0 | } | 5992 | | | 5993 | 206 | auto max_width_view = take_width(range, max_width); | 5994 | 206 | auto w_it = read_while_code_units(max_width_view, fill_chars); | 5995 | | | 5996 | 206 | if (want_skipped_width) { | 5997 | 206 | return result_type{w_it.base(), max_width - w_it.count()}; | 5998 | 206 | } | 5999 | 0 | return result_type{w_it.base(), 0}; | 6000 | 206 | } |
_ZN3scn2v34impl9skip_fillINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwS9_EEEEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS4_5beginEEclsr3stdE7declvalIRT_EEEElEEEESF_lRKNS0_6detail9fill_typeEb Line | Count | Source | 5950 | 242 | { | 5951 | 242 | using char_type = detail::char_t<Range>; | 5952 | 242 | using result_type = skip_fill_result<ranges::iterator_t<Range>>; | 5953 | | | 5954 | 242 | if (fill.size() <= sizeof(char_type)) { | 5955 | 242 | const auto fill_ch = fill.template get_code_unit<char_type>(); | 5956 | 242 | const auto pred = [=](char_type ch) { return ch == fill_ch; }; | 5957 | | | 5958 | 242 | if (max_width == 0) { | 5959 | 0 | auto it = read_while_code_unit(range, pred); | 5960 | |
| 5961 | 0 | if (want_skipped_width) { | 5962 | 0 | auto prefix_width = | 5963 | 0 | static_cast<std::ptrdiff_t>( | 5964 | 0 | calculate_text_width(static_cast<char32_t>(fill_ch))) * | 5965 | 0 | ranges::distance(range.begin(), it); | 5966 | 0 | return result_type{it, prefix_width}; | 5967 | 0 | } | 5968 | 0 | return result_type{it, 0}; | 5969 | 0 | } | 5970 | | | 5971 | 242 | auto max_width_view = take_width(range, max_width); | 5972 | 242 | auto w_it = read_while_code_unit(max_width_view, pred); | 5973 | | | 5974 | 242 | if (want_skipped_width) { | 5975 | 242 | return result_type{w_it.base(), max_width - w_it.count()}; | 5976 | 242 | } | 5977 | 0 | return result_type{w_it.base(), 0}; | 5978 | 242 | } | 5979 | | | 5980 | 0 | const auto fill_chars = fill.template get_code_units<char_type>(); | 5981 | 0 | if (max_width == 0) { | 5982 | 0 | auto it = read_while_code_units(range, fill_chars); | 5983 | |
| 5984 | 0 | if (want_skipped_width) { | 5985 | 0 | auto prefix_width = | 5986 | 0 | static_cast<std::ptrdiff_t>(calculate_text_width(fill_chars)) * | 5987 | 0 | ranges::distance(range.begin(), it) / ranges::ssize(fill_chars); | 5988 | 0 | return result_type{it, prefix_width}; | 5989 | 0 | } | 5990 | 0 | return result_type{it, 0}; | 5991 | 0 | } | 5992 | | | 5993 | 0 | auto max_width_view = take_width(range, max_width); | 5994 | 0 | auto w_it = read_while_code_units(max_width_view, fill_chars); | 5995 | |
| 5996 | 0 | if (want_skipped_width) { | 5997 | 0 | return result_type{w_it.base(), max_width - w_it.count()}; | 5998 | 0 | } | 5999 | 0 | return result_type{w_it.base(), 0}; | 6000 | 0 | } |
|
6001 | | |
6002 | | SCN_MAYBE_UNUSED constexpr scan_error check_widths_for_arg_reader( |
6003 | | const detail::format_specs& specs, |
6004 | | std::ptrdiff_t prefix_width, |
6005 | | std::ptrdiff_t value_width, |
6006 | | std::ptrdiff_t postfix_width) |
6007 | 7.59k | { |
6008 | 7.59k | if (specs.width != 0) { |
6009 | 1.90k | if (prefix_width + value_width + postfix_width < specs.width) { |
6010 | 870 | return {scan_error::invalid_scanned_value, |
6011 | 870 | "Scanned value too narrow, width did not exceed what " |
6012 | 870 | "was specified in the format string"}; |
6013 | 870 | } |
6014 | 1.90k | } |
6015 | 6.72k | if (specs.precision != 0) { |
6016 | 1.66k | if (prefix_width + value_width + postfix_width > specs.precision) { |
6017 | 90 | return {scan_error::invalid_scanned_value, |
6018 | 90 | "Scanned value too wide, width exceeded the specified " |
6019 | 90 | "precision"}; |
6020 | 90 | } |
6021 | 1.66k | } |
6022 | 6.63k | return {}; |
6023 | 6.72k | } |
6024 | | |
6025 | | template <typename Context> |
6026 | | struct arg_reader { |
6027 | | using context_type = Context; |
6028 | | using char_type = typename context_type::char_type; |
6029 | | |
6030 | | using range_type = typename context_type::range_type; |
6031 | | using iterator = ranges::iterator_t<range_type>; |
6032 | | |
6033 | | template <typename Range> |
6034 | | auto impl_prefix(Range rng, bool rd_skip_ws_before_read) |
6035 | | -> scan_expected<skip_fill_result<ranges::iterator_t<Range>>> |
6036 | 28.0k | { |
6037 | 28.0k | const bool need_skipped_width = |
6038 | 28.0k | specs.width != 0 || specs.precision != 0; |
6039 | 28.0k | using result_type = skip_fill_result<ranges::iterator_t<Range>>; |
6040 | | |
6041 | | // Read prefix |
6042 | 28.0k | if (specs.align == detail::align_type::right || |
6043 | 28.0k | specs.align == detail::align_type::center) { |
6044 | 2.73k | return skip_fill(rng, specs.precision, specs.fill, |
6045 | 2.73k | need_skipped_width); |
6046 | 2.73k | } |
6047 | 25.3k | if (specs.align == detail::align_type::none && rd_skip_ws_before_read) { |
6048 | | // Default alignment: |
6049 | | // Skip preceding whitespace, if required by the reader |
6050 | 6.57k | if (specs.precision != 0) { |
6051 | 2.66k | auto max_width_view = take_width(rng, specs.precision); |
6052 | 2.66k | SCN_TRY(w_it, skip_classic_whitespace(max_width_view) |
6053 | 2.52k | .transform_error(make_eof_scan_error)); |
6054 | 2.52k | return result_type{w_it.base(), specs.precision - w_it.count()}; |
6055 | 2.66k | } |
6056 | 7.82k | SCN_TRY(it, skip_classic_whitespace(rng).transform_error( |
6057 | 7.82k | make_eof_scan_error)); |
6058 | | |
6059 | 7.82k | if (need_skipped_width) { |
6060 | 2.88k | return result_type{ |
6061 | 2.88k | it, |
6062 | 2.88k | calculate_text_width(make_contiguous_buffer( |
6063 | 2.88k | ranges::subrange{rng.begin(), it}) |
6064 | 2.88k | .view())}; |
6065 | 2.88k | } |
6066 | 1.02k | return result_type{it, 0}; |
6067 | 7.82k | } |
6068 | | |
6069 | 18.7k | return result_type{rng.begin(), 0}; |
6070 | 25.3k | } Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE11impl_prefixINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS8_18default_sentinel_tEEEEEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRT_EEEElEEEESM_b Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE11impl_prefixINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS7_18default_sentinel_tEEEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS7_5beginEEclsr3stdE7declvalIRT_EEEElEEEESK_b Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE11impl_prefixINS1_15take_width_viewINSt3__117basic_string_viewIcNS8_11char_traitsIcEEEEEEEENS0_13scan_expectedINS8_4pairIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT_EEEElEEEESH_b Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE11impl_prefixINSt3__117basic_string_viewIcNS7_11char_traitsIcEEEEEENS0_13scan_expectedINS7_4pairIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT_EEEElEEEESF_b Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE11impl_prefixINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS8_18default_sentinel_tEEEEEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRT_EEEElEEEESM_b Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE11impl_prefixINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS7_18default_sentinel_tEEEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS7_5beginEEclsr3stdE7declvalIRT_EEEElEEEESK_b Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE11impl_prefixINS1_15take_width_viewINSt3__117basic_string_viewIwNS8_11char_traitsIwEEEEEEEENS0_13scan_expectedINS8_4pairIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT_EEEElEEEESH_b Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE11impl_prefixINSt3__117basic_string_viewIwNS7_11char_traitsIwEEEEEENS0_13scan_expectedINS7_4pairIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT_EEEElEEEESF_b _ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIcEEE11impl_prefixINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKcSD_EEEEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRT_EEEElEEEESJ_b Line | Count | Source | 6036 | 3.78k | { | 6037 | 3.78k | const bool need_skipped_width = | 6038 | 3.78k | specs.width != 0 || specs.precision != 0; | 6039 | 3.78k | using result_type = skip_fill_result<ranges::iterator_t<Range>>; | 6040 | | | 6041 | | // Read prefix | 6042 | 3.78k | if (specs.align == detail::align_type::right || | 6043 | 3.78k | specs.align == detail::align_type::center) { | 6044 | 710 | return skip_fill(rng, specs.precision, specs.fill, | 6045 | 710 | need_skipped_width); | 6046 | 710 | } | 6047 | 3.07k | if (specs.align == detail::align_type::none && rd_skip_ws_before_read) { | 6048 | | // Default alignment: | 6049 | | // Skip preceding whitespace, if required by the reader | 6050 | 1.87k | if (specs.precision != 0) { | 6051 | 1.87k | auto max_width_view = take_width(rng, specs.precision); | 6052 | 1.87k | SCN_TRY(w_it, skip_classic_whitespace(max_width_view) | 6053 | 1.73k | .transform_error(make_eof_scan_error)); | 6054 | 1.73k | return result_type{w_it.base(), specs.precision - w_it.count()}; | 6055 | 1.87k | } | 6056 | 0 | SCN_TRY(it, skip_classic_whitespace(rng).transform_error( | 6057 | 0 | make_eof_scan_error)); | 6058 | |
| 6059 | 0 | if (need_skipped_width) { | 6060 | 0 | return result_type{ | 6061 | 0 | it, | 6062 | 0 | calculate_text_width(make_contiguous_buffer( | 6063 | 0 | ranges::subrange{rng.begin(), it}) | 6064 | 0 | .view())}; | 6065 | 0 | } | 6066 | 0 | return result_type{it, 0}; | 6067 | 0 | } | 6068 | | | 6069 | 1.20k | return result_type{rng.begin(), 0}; | 6070 | 3.07k | } |
_ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIcEEE11impl_prefixINS0_6ranges6detail9subrange_8subrangeIPKcSC_EEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS7_5beginEEclsr3stdE7declvalIRT_EEEElEEEESH_b Line | Count | Source | 6036 | 14.4k | { | 6037 | 14.4k | const bool need_skipped_width = | 6038 | 14.4k | specs.width != 0 || specs.precision != 0; | 6039 | 14.4k | using result_type = skip_fill_result<ranges::iterator_t<Range>>; | 6040 | | | 6041 | | // Read prefix | 6042 | 14.4k | if (specs.align == detail::align_type::right || | 6043 | 14.4k | specs.align == detail::align_type::center) { | 6044 | 1.51k | return skip_fill(rng, specs.precision, specs.fill, | 6045 | 1.51k | need_skipped_width); | 6046 | 1.51k | } | 6047 | 12.9k | if (specs.align == detail::align_type::none && rd_skip_ws_before_read) { | 6048 | | // Default alignment: | 6049 | | // Skip preceding whitespace, if required by the reader | 6050 | 1.57k | if (specs.precision != 0) { | 6051 | 0 | auto max_width_view = take_width(rng, specs.precision); | 6052 | 0 | SCN_TRY(w_it, skip_classic_whitespace(max_width_view) | 6053 | 0 | .transform_error(make_eof_scan_error)); | 6054 | 0 | return result_type{w_it.base(), specs.precision - w_it.count()}; | 6055 | 0 | } | 6056 | 3.14k | SCN_TRY(it, skip_classic_whitespace(rng).transform_error( | 6057 | 3.14k | make_eof_scan_error)); | 6058 | | | 6059 | 3.14k | if (need_skipped_width) { | 6060 | 954 | return result_type{ | 6061 | 954 | it, | 6062 | 954 | calculate_text_width(make_contiguous_buffer( | 6063 | 954 | ranges::subrange{rng.begin(), it}) | 6064 | 954 | .view())}; | 6065 | 954 | } | 6066 | 618 | return result_type{it, 0}; | 6067 | 3.14k | } | 6068 | | | 6069 | 11.3k | return result_type{rng.begin(), 0}; | 6070 | 12.9k | } |
_ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIwEEE11impl_prefixINS1_15take_width_viewINS0_6ranges6detail9subrange_8subrangeIPKwSD_EEEEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS8_5beginEEclsr3stdE7declvalIRT_EEEElEEEESJ_b Line | Count | Source | 6036 | 1.25k | { | 6037 | 1.25k | const bool need_skipped_width = | 6038 | 1.25k | specs.width != 0 || specs.precision != 0; | 6039 | 1.25k | using result_type = skip_fill_result<ranges::iterator_t<Range>>; | 6040 | | | 6041 | | // Read prefix | 6042 | 1.25k | if (specs.align == detail::align_type::right || | 6043 | 1.25k | specs.align == detail::align_type::center) { | 6044 | 242 | return skip_fill(rng, specs.precision, specs.fill, | 6045 | 242 | need_skipped_width); | 6046 | 242 | } | 6047 | 1.01k | if (specs.align == detail::align_type::none && rd_skip_ws_before_read) { | 6048 | | // Default alignment: | 6049 | | // Skip preceding whitespace, if required by the reader | 6050 | 794 | if (specs.precision != 0) { | 6051 | 794 | auto max_width_view = take_width(rng, specs.precision); | 6052 | 794 | SCN_TRY(w_it, skip_classic_whitespace(max_width_view) | 6053 | 794 | .transform_error(make_eof_scan_error)); | 6054 | 794 | return result_type{w_it.base(), specs.precision - w_it.count()}; | 6055 | 794 | } | 6056 | 0 | SCN_TRY(it, skip_classic_whitespace(rng).transform_error( | 6057 | 0 | make_eof_scan_error)); | 6058 | |
| 6059 | 0 | if (need_skipped_width) { | 6060 | 0 | return result_type{ | 6061 | 0 | it, | 6062 | 0 | calculate_text_width(make_contiguous_buffer( | 6063 | 0 | ranges::subrange{rng.begin(), it}) | 6064 | 0 | .view())}; | 6065 | 0 | } | 6066 | 0 | return result_type{it, 0}; | 6067 | 0 | } | 6068 | | | 6069 | 220 | return result_type{rng.begin(), 0}; | 6070 | 1.01k | } |
_ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIwEEE11impl_prefixINS0_6ranges6detail9subrange_8subrangeIPKwSC_EEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS7_5beginEEclsr3stdE7declvalIRT_EEEElEEEESH_b Line | Count | Source | 6036 | 8.55k | { | 6037 | 8.55k | const bool need_skipped_width = | 6038 | 8.55k | specs.width != 0 || specs.precision != 0; | 6039 | 8.55k | using result_type = skip_fill_result<ranges::iterator_t<Range>>; | 6040 | | | 6041 | | // Read prefix | 6042 | 8.55k | if (specs.align == detail::align_type::right || | 6043 | 8.55k | specs.align == detail::align_type::center) { | 6044 | 266 | return skip_fill(rng, specs.precision, specs.fill, | 6045 | 266 | need_skipped_width); | 6046 | 266 | } | 6047 | 8.29k | if (specs.align == detail::align_type::none && rd_skip_ws_before_read) { | 6048 | | // Default alignment: | 6049 | | // Skip preceding whitespace, if required by the reader | 6050 | 2.33k | if (specs.precision != 0) { | 6051 | 0 | auto max_width_view = take_width(rng, specs.precision); | 6052 | 0 | SCN_TRY(w_it, skip_classic_whitespace(max_width_view) | 6053 | 0 | .transform_error(make_eof_scan_error)); | 6054 | 0 | return result_type{w_it.base(), specs.precision - w_it.count()}; | 6055 | 0 | } | 6056 | 4.67k | SCN_TRY(it, skip_classic_whitespace(rng).transform_error( | 6057 | 4.67k | make_eof_scan_error)); | 6058 | | | 6059 | 4.67k | if (need_skipped_width) { | 6060 | 1.92k | return result_type{ | 6061 | 1.92k | it, | 6062 | 1.92k | calculate_text_width(make_contiguous_buffer( | 6063 | 1.92k | ranges::subrange{rng.begin(), it}) | 6064 | 1.92k | .view())}; | 6065 | 1.92k | } | 6066 | 410 | return result_type{it, 0}; | 6067 | 4.67k | } | 6068 | | | 6069 | 5.95k | return result_type{rng.begin(), 0}; | 6070 | 8.29k | } |
|
6071 | | |
6072 | | template <typename Range> |
6073 | | auto impl_postfix(Range rng, |
6074 | | bool rd_skip_ws_before_read, |
6075 | | std::ptrdiff_t prefix_width, |
6076 | | std::ptrdiff_t value_width) |
6077 | | -> scan_expected<skip_fill_result<ranges::iterator_t<Range>>> |
6078 | 5.59k | { |
6079 | 5.59k | const bool need_skipped_width = |
6080 | 5.59k | specs.width != 0 || specs.precision != 0; |
6081 | 5.59k | using result_type = skip_fill_result<ranges::iterator_t<Range>>; |
6082 | | |
6083 | 5.59k | if (specs.align == detail::align_type::left || |
6084 | 5.59k | specs.align == detail::align_type::center) { |
6085 | 654 | if (specs.precision != 0 && |
6086 | 654 | specs.precision - value_width - prefix_width == 0) { |
6087 | 122 | return result_type{rng.begin(), 0}; |
6088 | 122 | } |
6089 | 532 | return skip_fill(rng, specs.precision - value_width - prefix_width, |
6090 | 532 | specs.fill, need_skipped_width); |
6091 | 654 | } |
6092 | 4.93k | if (specs.align == detail::align_type::none && |
6093 | 4.93k | !rd_skip_ws_before_read && |
6094 | 4.93k | ((specs.width != 0 && prefix_width + value_width < specs.width) || |
6095 | 4.24k | (specs.precision != 0 && |
6096 | 3.68k | prefix_width + value_width < specs.precision))) { |
6097 | 1.10k | if (specs.precision != 0) { |
6098 | 546 | const auto initial_width = |
6099 | 546 | specs.precision - prefix_width - value_width; |
6100 | 546 | auto max_width_view = take_width(rng, initial_width); |
6101 | 546 | SCN_TRY(w_it, skip_classic_whitespace(max_width_view, true) |
6102 | 546 | .transform_error(make_eof_scan_error)); |
6103 | 546 | return result_type{w_it.base(), initial_width - w_it.count()}; |
6104 | 546 | } |
6105 | 1.12k | SCN_TRY(it, skip_classic_whitespace(rng, true).transform_error( |
6106 | 1.12k | make_eof_scan_error)); |
6107 | | |
6108 | 1.12k | if (need_skipped_width) { |
6109 | 562 | return result_type{ |
6110 | 562 | it, |
6111 | 562 | calculate_text_width(make_contiguous_buffer( |
6112 | 562 | ranges::subrange{rng.begin(), it}) |
6113 | 562 | .view())}; |
6114 | 562 | } |
6115 | 0 | return result_type{it, 0}; |
6116 | 1.12k | } |
6117 | 3.83k | return result_type{rng.begin(), 0}; |
6118 | 4.93k | } Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE12impl_postfixINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS7_18default_sentinel_tEEEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS7_5beginEEclsr3stdE7declvalIRT_EEEElEEEESK_bll Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE12impl_postfixINS0_6ranges6detail9subrange_8subrangeIPKcSC_EEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS7_5beginEEclsr3stdE7declvalIRT_EEEElEEEESH_bll Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE12impl_postfixINS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS7_18default_sentinel_tEEEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS7_5beginEEclsr3stdE7declvalIRT_EEEElEEEESK_bll Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE12impl_postfixINS0_6ranges6detail9subrange_8subrangeIPKwSC_EEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS7_5beginEEclsr3stdE7declvalIRT_EEEElEEEESH_bll _ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIcEEE12impl_postfixINS0_6ranges6detail9subrange_8subrangeIPKcSC_EEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS7_5beginEEclsr3stdE7declvalIRT_EEEElEEEESH_bll Line | Count | Source | 6078 | 4.08k | { | 6079 | 4.08k | const bool need_skipped_width = | 6080 | 4.08k | specs.width != 0 || specs.precision != 0; | 6081 | 4.08k | using result_type = skip_fill_result<ranges::iterator_t<Range>>; | 6082 | | | 6083 | 4.08k | if (specs.align == detail::align_type::left || | 6084 | 4.08k | specs.align == detail::align_type::center) { | 6085 | 474 | if (specs.precision != 0 && | 6086 | 474 | specs.precision - value_width - prefix_width == 0) { | 6087 | 78 | return result_type{rng.begin(), 0}; | 6088 | 78 | } | 6089 | 396 | return skip_fill(rng, specs.precision - value_width - prefix_width, | 6090 | 396 | specs.fill, need_skipped_width); | 6091 | 474 | } | 6092 | 3.60k | if (specs.align == detail::align_type::none && | 6093 | 3.60k | !rd_skip_ws_before_read && | 6094 | 3.60k | ((specs.width != 0 && prefix_width + value_width < specs.width) || | 6095 | 3.16k | (specs.precision != 0 && | 6096 | 3.01k | prefix_width + value_width < specs.precision))) { | 6097 | 612 | if (specs.precision != 0) { | 6098 | 460 | const auto initial_width = | 6099 | 460 | specs.precision - prefix_width - value_width; | 6100 | 460 | auto max_width_view = take_width(rng, initial_width); | 6101 | 460 | SCN_TRY(w_it, skip_classic_whitespace(max_width_view, true) | 6102 | 460 | .transform_error(make_eof_scan_error)); | 6103 | 460 | return result_type{w_it.base(), initial_width - w_it.count()}; | 6104 | 460 | } | 6105 | 304 | SCN_TRY(it, skip_classic_whitespace(rng, true).transform_error( | 6106 | 304 | make_eof_scan_error)); | 6107 | | | 6108 | 304 | if (need_skipped_width) { | 6109 | 152 | return result_type{ | 6110 | 152 | it, | 6111 | 152 | calculate_text_width(make_contiguous_buffer( | 6112 | 152 | ranges::subrange{rng.begin(), it}) | 6113 | 152 | .view())}; | 6114 | 152 | } | 6115 | 0 | return result_type{it, 0}; | 6116 | 304 | } | 6117 | 2.99k | return result_type{rng.begin(), 0}; | 6118 | 3.60k | } |
_ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIwEEE12impl_postfixINS0_6ranges6detail9subrange_8subrangeIPKwSC_EEEENS0_13scan_expectedINSt3__14pairIDTclL_ZNS7_5beginEEclsr3stdE7declvalIRT_EEEElEEEESH_bll Line | Count | Source | 6078 | 1.51k | { | 6079 | 1.51k | const bool need_skipped_width = | 6080 | 1.51k | specs.width != 0 || specs.precision != 0; | 6081 | 1.51k | using result_type = skip_fill_result<ranges::iterator_t<Range>>; | 6082 | | | 6083 | 1.51k | if (specs.align == detail::align_type::left || | 6084 | 1.51k | specs.align == detail::align_type::center) { | 6085 | 180 | if (specs.precision != 0 && | 6086 | 180 | specs.precision - value_width - prefix_width == 0) { | 6087 | 44 | return result_type{rng.begin(), 0}; | 6088 | 44 | } | 6089 | 136 | return skip_fill(rng, specs.precision - value_width - prefix_width, | 6090 | 136 | specs.fill, need_skipped_width); | 6091 | 180 | } | 6092 | 1.33k | if (specs.align == detail::align_type::none && | 6093 | 1.33k | !rd_skip_ws_before_read && | 6094 | 1.33k | ((specs.width != 0 && prefix_width + value_width < specs.width) || | 6095 | 1.07k | (specs.precision != 0 && | 6096 | 668 | prefix_width + value_width < specs.precision))) { | 6097 | 496 | if (specs.precision != 0) { | 6098 | 86 | const auto initial_width = | 6099 | 86 | specs.precision - prefix_width - value_width; | 6100 | 86 | auto max_width_view = take_width(rng, initial_width); | 6101 | 86 | SCN_TRY(w_it, skip_classic_whitespace(max_width_view, true) | 6102 | 86 | .transform_error(make_eof_scan_error)); | 6103 | 86 | return result_type{w_it.base(), initial_width - w_it.count()}; | 6104 | 86 | } | 6105 | 820 | SCN_TRY(it, skip_classic_whitespace(rng, true).transform_error( | 6106 | 820 | make_eof_scan_error)); | 6107 | | | 6108 | 820 | if (need_skipped_width) { | 6109 | 410 | return result_type{ | 6110 | 410 | it, | 6111 | 410 | calculate_text_width(make_contiguous_buffer( | 6112 | 410 | ranges::subrange{rng.begin(), it}) | 6113 | 410 | .view())}; | 6114 | 410 | } | 6115 | 0 | return result_type{it, 0}; | 6116 | 820 | } | 6117 | 834 | return result_type{rng.begin(), 0}; | 6118 | 1.33k | } |
|
6119 | | |
6120 | | template <typename Reader, typename Range, typename T> |
6121 | | auto impl(Reader& rd, Range rng, T& value) |
6122 | | -> scan_expected<ranges::iterator_t<Range>> |
6123 | 28.0k | { |
6124 | 28.0k | const bool need_skipped_width = |
6125 | 28.0k | specs.width != 0 || specs.precision != 0; |
6126 | | |
6127 | | // Read prefix |
6128 | 28.0k | auto it = rng.begin(); |
6129 | 28.0k | std::ptrdiff_t prefix_width = 0; |
6130 | 28.0k | if (specs.precision != 0) { |
6131 | 5.04k | auto max_width_view = take_width(rng, specs.precision); |
6132 | 5.04k | SCN_TRY(prefix_result, |
6133 | 4.89k | impl_prefix(max_width_view, rd.skip_ws_before_read())); |
6134 | 4.89k | it = prefix_result.first.base(); |
6135 | 4.89k | prefix_width = prefix_result.second; |
6136 | 4.89k | } |
6137 | 23.0k | else { |
6138 | 23.0k | SCN_TRY(prefix_result, impl_prefix(rng, rd.skip_ws_before_read())); |
6139 | 23.0k | std::tie(it, prefix_width) = prefix_result; |
6140 | 23.0k | } |
6141 | 27.9k | auto prefix_end_it = it; |
6142 | | |
6143 | | // Read value |
6144 | 27.9k | std::ptrdiff_t value_width = 0; |
6145 | 27.9k | if (specs.precision != 0) { |
6146 | 4.89k | if (specs.precision <= prefix_width) { |
6147 | 88 | return unexpected_scan_error( |
6148 | 88 | scan_error::invalid_scanned_value, |
6149 | 88 | "Too many fill characters before value, " |
6150 | 88 | "precision exceeded before reading value"); |
6151 | 88 | } |
6152 | | |
6153 | 4.81k | const auto initial_width = specs.precision - prefix_width; |
6154 | 4.81k | auto max_width_view = |
6155 | 4.81k | take_width(ranges::subrange{it, rng.end()}, initial_width); |
6156 | 4.81k | SCN_TRY(w_it, rd.read_specs(max_width_view, specs, value, loc)); |
6157 | 1.66k | it = w_it.base(); |
6158 | 1.66k | value_width = initial_width - w_it.count(); |
6159 | 1.66k | } |
6160 | 23.0k | else { |
6161 | 23.0k | SCN_TRY_ASSIGN(it, rd.read_specs(ranges::subrange{it, rng.end()}, |
6162 | 5.92k | specs, value, loc)); |
6163 | | |
6164 | 5.92k | if (need_skipped_width) { |
6165 | 1.86k | value_width = calculate_text_width( |
6166 | 1.86k | make_contiguous_buffer(ranges::subrange{prefix_end_it, it}) |
6167 | 1.86k | .view()); |
6168 | 1.86k | } |
6169 | 5.92k | } |
6170 | | |
6171 | | // Read postfix |
6172 | 7.59k | std::ptrdiff_t postfix_width = 0; |
6173 | 7.59k | if (it != rng.end()) { |
6174 | 5.59k | SCN_TRY(postfix_result, |
6175 | 5.59k | impl_postfix(ranges::subrange{it, rng.end()}, |
6176 | 5.59k | rd.skip_ws_before_read(), prefix_width, |
6177 | 5.59k | value_width)); |
6178 | 5.59k | std::tie(it, postfix_width) = postfix_result; |
6179 | 5.59k | } |
6180 | | |
6181 | 7.59k | if (auto e = check_widths_for_arg_reader(specs, prefix_width, |
6182 | 7.59k | value_width, postfix_width); |
6183 | 7.59k | !e) { |
6184 | 960 | return unexpected(e); |
6185 | 960 | } |
6186 | | |
6187 | 6.63k | return it; |
6188 | 7.59k | } Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE4implINS1_20reader_impl_for_charIcEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEcEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE4implINS1_20reader_impl_for_charIcEENSt3__117basic_string_viewIcNS9_11char_traitsIcEEEEcEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEaEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENSt3__117basic_string_viewIcNS9_11char_traitsIcEEEEaEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEsEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENSt3__117basic_string_viewIcNS9_11char_traitsIcEEEEsEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEiEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENSt3__117basic_string_viewIcNS9_11char_traitsIcEEEEiEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEElEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENSt3__117basic_string_viewIcNS9_11char_traitsIcEEEElEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEExEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENSt3__117basic_string_viewIcNS9_11char_traitsIcEEEExEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEhEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENSt3__117basic_string_viewIcNS9_11char_traitsIcEEEEhEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEtEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENSt3__117basic_string_viewIcNS9_11char_traitsIcEEEEtEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEjEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENSt3__117basic_string_viewIcNS9_11char_traitsIcEEEEjEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEmEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENSt3__117basic_string_viewIcNS9_11char_traitsIcEEEEmEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEyEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENSt3__117basic_string_viewIcNS9_11char_traitsIcEEEEyEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE4implINS1_21reader_impl_for_floatIcEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEfEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE4implINS1_21reader_impl_for_floatIcEENSt3__117basic_string_viewIcNS9_11char_traitsIcEEEEfEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE4implINS1_21reader_impl_for_floatIcEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEdEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE4implINS1_21reader_impl_for_floatIcEENSt3__117basic_string_viewIcNS9_11char_traitsIcEEEEdEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE4implINS1_21reader_impl_for_floatIcEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEeEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE4implINS1_21reader_impl_for_floatIcEENSt3__117basic_string_viewIcNS9_11char_traitsIcEEEEeEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE4implINS1_22reader_impl_for_stringIcEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEENSt3__112basic_stringIcNSJ_11char_traitsIcEENSJ_9allocatorIcEEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SR_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE4implINS1_22reader_impl_for_stringIcEENSt3__117basic_string_viewIcNS9_11char_traitsIcEEEENS9_12basic_stringIcSC_NS9_9allocatorIcEEEEEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE4implINS1_22reader_impl_for_stringIcEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEENSt3__112basic_stringIwNSJ_11char_traitsIwEENSJ_9allocatorIwEEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SR_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE4implINS1_22reader_impl_for_stringIcEENSt3__117basic_string_viewIcNS9_11char_traitsIcEEEENS9_12basic_stringIwNSB_IwEENS9_9allocatorIwEEEEEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SL_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE4implINS1_22reader_impl_for_stringIcEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEENSt3__117basic_string_viewIcNSJ_11char_traitsIcEEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SP_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE4implINS1_22reader_impl_for_stringIcEENSt3__117basic_string_viewIcNS9_11char_traitsIcEEEESD_EENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE4implINS1_22reader_impl_for_stringIcEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEENSt3__117basic_string_viewIwNSJ_11char_traitsIwEEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SP_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE4implINS1_22reader_impl_for_stringIcEENSt3__117basic_string_viewIcNS9_11char_traitsIcEEEENSA_IwNSB_IwEEEEEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SI_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE4implINS1_29reader_impl_for_regex_matchesIcEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEENS0_19basic_regex_matchesIcEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SM_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE4implINS1_29reader_impl_for_regex_matchesIcEENSt3__117basic_string_viewIcNS9_11char_traitsIcEEEENS0_19basic_regex_matchesIcEEEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SI_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE4implINS1_29reader_impl_for_regex_matchesIcEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEENS0_19basic_regex_matchesIwEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SM_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE4implINS1_29reader_impl_for_regex_matchesIcEENSt3__117basic_string_viewIcNS9_11char_traitsIcEEEENS0_19basic_regex_matchesIwEEEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SI_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE4implINS1_21reader_impl_for_wcharIwEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEwEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE4implINS1_21reader_impl_for_wcharIwEENSt3__117basic_string_viewIwNS9_11char_traitsIwEEEEwEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEaEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENSt3__117basic_string_viewIwNS9_11char_traitsIwEEEEaEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEsEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENSt3__117basic_string_viewIwNS9_11char_traitsIwEEEEsEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEiEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENSt3__117basic_string_viewIwNS9_11char_traitsIwEEEEiEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEElEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENSt3__117basic_string_viewIwNS9_11char_traitsIwEEEElEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEExEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENSt3__117basic_string_viewIwNS9_11char_traitsIwEEEExEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEhEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENSt3__117basic_string_viewIwNS9_11char_traitsIwEEEEhEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEtEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENSt3__117basic_string_viewIwNS9_11char_traitsIwEEEEtEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEjEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENSt3__117basic_string_viewIwNS9_11char_traitsIwEEEEjEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEmEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENSt3__117basic_string_viewIwNS9_11char_traitsIwEEEEmEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEyEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENSt3__117basic_string_viewIwNS9_11char_traitsIwEEEEyEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE4implINS1_21reader_impl_for_floatIwEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEfEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE4implINS1_21reader_impl_for_floatIwEENSt3__117basic_string_viewIwNS9_11char_traitsIwEEEEfEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE4implINS1_21reader_impl_for_floatIwEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEdEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE4implINS1_21reader_impl_for_floatIwEENSt3__117basic_string_viewIwNS9_11char_traitsIwEEEEdEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE4implINS1_21reader_impl_for_floatIwEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEeEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE4implINS1_21reader_impl_for_floatIwEENSt3__117basic_string_viewIwNS9_11char_traitsIwEEEEeEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE4implINS1_22reader_impl_for_stringIwEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEENSt3__112basic_stringIcNSJ_11char_traitsIcEENSJ_9allocatorIcEEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SR_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE4implINS1_22reader_impl_for_stringIwEENSt3__117basic_string_viewIwNS9_11char_traitsIwEEEENS9_12basic_stringIcNSB_IcEENS9_9allocatorIcEEEEEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SL_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE4implINS1_22reader_impl_for_stringIwEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEENSt3__112basic_stringIwNSJ_11char_traitsIwEENSJ_9allocatorIwEEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SR_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE4implINS1_22reader_impl_for_stringIwEENSt3__117basic_string_viewIwNS9_11char_traitsIwEEEENS9_12basic_stringIwSC_NS9_9allocatorIwEEEEEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE4implINS1_22reader_impl_for_stringIwEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEENSt3__117basic_string_viewIcNSJ_11char_traitsIcEEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SP_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE4implINS1_22reader_impl_for_stringIwEENSt3__117basic_string_viewIwNS9_11char_traitsIwEEEENSA_IcNSB_IcEEEEEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SI_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE4implINS1_22reader_impl_for_stringIwEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEENSt3__117basic_string_viewIwNSJ_11char_traitsIwEEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SP_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE4implINS1_22reader_impl_for_stringIwEENSt3__117basic_string_viewIwNS9_11char_traitsIwEEEESD_EENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE4implINS1_29reader_impl_for_regex_matchesIwEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEENS0_19basic_regex_matchesIcEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SM_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE4implINS1_29reader_impl_for_regex_matchesIwEENSt3__117basic_string_viewIwNS9_11char_traitsIwEEEENS0_19basic_regex_matchesIcEEEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SI_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE4implINS1_29reader_impl_for_regex_matchesIwEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEENS0_19basic_regex_matchesIwEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SM_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE4implINS1_29reader_impl_for_regex_matchesIwEENSt3__117basic_string_viewIwNS9_11char_traitsIwEEEENS0_19basic_regex_matchesIwEEEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SI_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENS0_6ranges6detail9subrange_8subrangeIPKcSE_EEaEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENS0_6ranges6detail9subrange_8subrangeIPKcSE_EEsEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ _ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENS0_6ranges6detail9subrange_8subrangeIPKcSE_EEiEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Line | Count | Source | 6123 | 544 | { | 6124 | 544 | const bool need_skipped_width = | 6125 | 544 | specs.width != 0 || specs.precision != 0; | 6126 | | | 6127 | | // Read prefix | 6128 | 544 | auto it = rng.begin(); | 6129 | 544 | std::ptrdiff_t prefix_width = 0; | 6130 | 544 | if (specs.precision != 0) { | 6131 | 296 | auto max_width_view = take_width(rng, specs.precision); | 6132 | 296 | SCN_TRY(prefix_result, | 6133 | 276 | impl_prefix(max_width_view, rd.skip_ws_before_read())); | 6134 | 276 | it = prefix_result.first.base(); | 6135 | 276 | prefix_width = prefix_result.second; | 6136 | 276 | } | 6137 | 248 | else { | 6138 | 248 | SCN_TRY(prefix_result, impl_prefix(rng, rd.skip_ws_before_read())); | 6139 | 248 | std::tie(it, prefix_width) = prefix_result; | 6140 | 248 | } | 6141 | 524 | auto prefix_end_it = it; | 6142 | | | 6143 | | // Read value | 6144 | 524 | std::ptrdiff_t value_width = 0; | 6145 | 524 | if (specs.precision != 0) { | 6146 | 276 | if (specs.precision <= prefix_width) { | 6147 | 6 | return unexpected_scan_error( | 6148 | 6 | scan_error::invalid_scanned_value, | 6149 | 6 | "Too many fill characters before value, " | 6150 | 6 | "precision exceeded before reading value"); | 6151 | 6 | } | 6152 | | | 6153 | 270 | const auto initial_width = specs.precision - prefix_width; | 6154 | 270 | auto max_width_view = | 6155 | 270 | take_width(ranges::subrange{it, rng.end()}, initial_width); | 6156 | 270 | SCN_TRY(w_it, rd.read_specs(max_width_view, specs, value, loc)); | 6157 | 0 | it = w_it.base(); | 6158 | 0 | value_width = initial_width - w_it.count(); | 6159 | 0 | } | 6160 | 248 | else { | 6161 | 248 | SCN_TRY_ASSIGN(it, rd.read_specs(ranges::subrange{it, rng.end()}, | 6162 | 0 | specs, value, loc)); | 6163 | |
| 6164 | 0 | if (need_skipped_width) { | 6165 | 0 | value_width = calculate_text_width( | 6166 | 0 | make_contiguous_buffer(ranges::subrange{prefix_end_it, it}) | 6167 | 0 | .view()); | 6168 | 0 | } | 6169 | 0 | } | 6170 | | | 6171 | | // Read postfix | 6172 | 0 | std::ptrdiff_t postfix_width = 0; | 6173 | 0 | if (it != rng.end()) { | 6174 | 0 | SCN_TRY(postfix_result, | 6175 | 0 | impl_postfix(ranges::subrange{it, rng.end()}, | 6176 | 0 | rd.skip_ws_before_read(), prefix_width, | 6177 | 0 | value_width)); | 6178 | 0 | std::tie(it, postfix_width) = postfix_result; | 6179 | 0 | } | 6180 | | | 6181 | 0 | if (auto e = check_widths_for_arg_reader(specs, prefix_width, | 6182 | 0 | value_width, postfix_width); | 6183 | 0 | !e) { | 6184 | 0 | return unexpected(e); | 6185 | 0 | } | 6186 | | | 6187 | 0 | return it; | 6188 | 0 | } |
Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENS0_6ranges6detail9subrange_8subrangeIPKcSE_EElEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENS0_6ranges6detail9subrange_8subrangeIPKcSE_EExEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENS0_6ranges6detail9subrange_8subrangeIPKcSE_EEhEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENS0_6ranges6detail9subrange_8subrangeIPKcSE_EEtEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ _ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENS0_6ranges6detail9subrange_8subrangeIPKcSE_EEjEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Line | Count | Source | 6123 | 544 | { | 6124 | 544 | const bool need_skipped_width = | 6125 | 544 | specs.width != 0 || specs.precision != 0; | 6126 | | | 6127 | | // Read prefix | 6128 | 544 | auto it = rng.begin(); | 6129 | 544 | std::ptrdiff_t prefix_width = 0; | 6130 | 544 | if (specs.precision != 0) { | 6131 | 296 | auto max_width_view = take_width(rng, specs.precision); | 6132 | 296 | SCN_TRY(prefix_result, | 6133 | 276 | impl_prefix(max_width_view, rd.skip_ws_before_read())); | 6134 | 276 | it = prefix_result.first.base(); | 6135 | 276 | prefix_width = prefix_result.second; | 6136 | 276 | } | 6137 | 248 | else { | 6138 | 248 | SCN_TRY(prefix_result, impl_prefix(rng, rd.skip_ws_before_read())); | 6139 | 248 | std::tie(it, prefix_width) = prefix_result; | 6140 | 248 | } | 6141 | 524 | auto prefix_end_it = it; | 6142 | | | 6143 | | // Read value | 6144 | 524 | std::ptrdiff_t value_width = 0; | 6145 | 524 | if (specs.precision != 0) { | 6146 | 276 | if (specs.precision <= prefix_width) { | 6147 | 6 | return unexpected_scan_error( | 6148 | 6 | scan_error::invalid_scanned_value, | 6149 | 6 | "Too many fill characters before value, " | 6150 | 6 | "precision exceeded before reading value"); | 6151 | 6 | } | 6152 | | | 6153 | 270 | const auto initial_width = specs.precision - prefix_width; | 6154 | 270 | auto max_width_view = | 6155 | 270 | take_width(ranges::subrange{it, rng.end()}, initial_width); | 6156 | 270 | SCN_TRY(w_it, rd.read_specs(max_width_view, specs, value, loc)); | 6157 | 0 | it = w_it.base(); | 6158 | 0 | value_width = initial_width - w_it.count(); | 6159 | 0 | } | 6160 | 248 | else { | 6161 | 248 | SCN_TRY_ASSIGN(it, rd.read_specs(ranges::subrange{it, rng.end()}, | 6162 | 0 | specs, value, loc)); | 6163 | |
| 6164 | 0 | if (need_skipped_width) { | 6165 | 0 | value_width = calculate_text_width( | 6166 | 0 | make_contiguous_buffer(ranges::subrange{prefix_end_it, it}) | 6167 | 0 | .view()); | 6168 | 0 | } | 6169 | 0 | } | 6170 | | | 6171 | | // Read postfix | 6172 | 0 | std::ptrdiff_t postfix_width = 0; | 6173 | 0 | if (it != rng.end()) { | 6174 | 0 | SCN_TRY(postfix_result, | 6175 | 0 | impl_postfix(ranges::subrange{it, rng.end()}, | 6176 | 0 | rd.skip_ws_before_read(), prefix_width, | 6177 | 0 | value_width)); | 6178 | 0 | std::tie(it, postfix_width) = postfix_result; | 6179 | 0 | } | 6180 | | | 6181 | 0 | if (auto e = check_widths_for_arg_reader(specs, prefix_width, | 6182 | 0 | value_width, postfix_width); | 6183 | 0 | !e) { | 6184 | 0 | return unexpected(e); | 6185 | 0 | } | 6186 | | | 6187 | 0 | return it; | 6188 | 0 | } |
Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENS0_6ranges6detail9subrange_8subrangeIPKcSE_EEmEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIcEEE4implINS1_19reader_impl_for_intIcEENS0_6ranges6detail9subrange_8subrangeIPKcSE_EEyEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ _ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIcEEE4implINS1_23reader_impl_for_voidptrIcEENS0_6ranges6detail9subrange_8subrangeIPKcSE_EEPvEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SI_RT1_ Line | Count | Source | 6123 | 474 | { | 6124 | 474 | const bool need_skipped_width = | 6125 | 474 | specs.width != 0 || specs.precision != 0; | 6126 | | | 6127 | | // Read prefix | 6128 | 474 | auto it = rng.begin(); | 6129 | 474 | std::ptrdiff_t prefix_width = 0; | 6130 | 474 | if (specs.precision != 0) { | 6131 | 256 | auto max_width_view = take_width(rng, specs.precision); | 6132 | 256 | SCN_TRY(prefix_result, | 6133 | 244 | impl_prefix(max_width_view, rd.skip_ws_before_read())); | 6134 | 244 | it = prefix_result.first.base(); | 6135 | 244 | prefix_width = prefix_result.second; | 6136 | 244 | } | 6137 | 218 | else { | 6138 | 218 | SCN_TRY(prefix_result, impl_prefix(rng, rd.skip_ws_before_read())); | 6139 | 218 | std::tie(it, prefix_width) = prefix_result; | 6140 | 218 | } | 6141 | 462 | auto prefix_end_it = it; | 6142 | | | 6143 | | // Read value | 6144 | 462 | std::ptrdiff_t value_width = 0; | 6145 | 462 | if (specs.precision != 0) { | 6146 | 244 | if (specs.precision <= prefix_width) { | 6147 | 4 | return unexpected_scan_error( | 6148 | 4 | scan_error::invalid_scanned_value, | 6149 | 4 | "Too many fill characters before value, " | 6150 | 4 | "precision exceeded before reading value"); | 6151 | 4 | } | 6152 | | | 6153 | 240 | const auto initial_width = specs.precision - prefix_width; | 6154 | 240 | auto max_width_view = | 6155 | 240 | take_width(ranges::subrange{it, rng.end()}, initial_width); | 6156 | 240 | SCN_TRY(w_it, rd.read_specs(max_width_view, specs, value, loc)); | 6157 | 0 | it = w_it.base(); | 6158 | 0 | value_width = initial_width - w_it.count(); | 6159 | 0 | } | 6160 | 218 | else { | 6161 | 218 | SCN_TRY_ASSIGN(it, rd.read_specs(ranges::subrange{it, rng.end()}, | 6162 | 0 | specs, value, loc)); | 6163 | |
| 6164 | 0 | if (need_skipped_width) { | 6165 | 0 | value_width = calculate_text_width( | 6166 | 0 | make_contiguous_buffer(ranges::subrange{prefix_end_it, it}) | 6167 | 0 | .view()); | 6168 | 0 | } | 6169 | 0 | } | 6170 | | | 6171 | | // Read postfix | 6172 | 0 | std::ptrdiff_t postfix_width = 0; | 6173 | 0 | if (it != rng.end()) { | 6174 | 0 | SCN_TRY(postfix_result, | 6175 | 0 | impl_postfix(ranges::subrange{it, rng.end()}, | 6176 | 0 | rd.skip_ws_before_read(), prefix_width, | 6177 | 0 | value_width)); | 6178 | 0 | std::tie(it, postfix_width) = postfix_result; | 6179 | 0 | } | 6180 | | | 6181 | 0 | if (auto e = check_widths_for_arg_reader(specs, prefix_width, | 6182 | 0 | value_width, postfix_width); | 6183 | 0 | !e) { | 6184 | 0 | return unexpected(e); | 6185 | 0 | } | 6186 | | | 6187 | 0 | return it; | 6188 | 0 | } |
_ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIcEEE4implINS1_20reader_impl_for_boolIcEENS0_6ranges6detail9subrange_8subrangeIPKcSE_EEbEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Line | Count | Source | 6123 | 722 | { | 6124 | 722 | const bool need_skipped_width = | 6125 | 722 | specs.width != 0 || specs.precision != 0; | 6126 | | | 6127 | | // Read prefix | 6128 | 722 | auto it = rng.begin(); | 6129 | 722 | std::ptrdiff_t prefix_width = 0; | 6130 | 722 | if (specs.precision != 0) { | 6131 | 360 | auto max_width_view = take_width(rng, specs.precision); | 6132 | 360 | SCN_TRY(prefix_result, | 6133 | 336 | impl_prefix(max_width_view, rd.skip_ws_before_read())); | 6134 | 336 | it = prefix_result.first.base(); | 6135 | 336 | prefix_width = prefix_result.second; | 6136 | 336 | } | 6137 | 362 | else { | 6138 | 362 | SCN_TRY(prefix_result, impl_prefix(rng, rd.skip_ws_before_read())); | 6139 | 362 | std::tie(it, prefix_width) = prefix_result; | 6140 | 362 | } | 6141 | 698 | auto prefix_end_it = it; | 6142 | | | 6143 | | // Read value | 6144 | 698 | std::ptrdiff_t value_width = 0; | 6145 | 698 | if (specs.precision != 0) { | 6146 | 336 | if (specs.precision <= prefix_width) { | 6147 | 6 | return unexpected_scan_error( | 6148 | 6 | scan_error::invalid_scanned_value, | 6149 | 6 | "Too many fill characters before value, " | 6150 | 6 | "precision exceeded before reading value"); | 6151 | 6 | } | 6152 | | | 6153 | 330 | const auto initial_width = specs.precision - prefix_width; | 6154 | 330 | auto max_width_view = | 6155 | 330 | take_width(ranges::subrange{it, rng.end()}, initial_width); | 6156 | 330 | SCN_TRY(w_it, rd.read_specs(max_width_view, specs, value, loc)); | 6157 | 0 | it = w_it.base(); | 6158 | 0 | value_width = initial_width - w_it.count(); | 6159 | 0 | } | 6160 | 362 | else { | 6161 | 362 | SCN_TRY_ASSIGN(it, rd.read_specs(ranges::subrange{it, rng.end()}, | 6162 | 0 | specs, value, loc)); | 6163 | |
| 6164 | 0 | if (need_skipped_width) { | 6165 | 0 | value_width = calculate_text_width( | 6166 | 0 | make_contiguous_buffer(ranges::subrange{prefix_end_it, it}) | 6167 | 0 | .view()); | 6168 | 0 | } | 6169 | 0 | } | 6170 | | | 6171 | | // Read postfix | 6172 | 0 | std::ptrdiff_t postfix_width = 0; | 6173 | 0 | if (it != rng.end()) { | 6174 | 0 | SCN_TRY(postfix_result, | 6175 | 0 | impl_postfix(ranges::subrange{it, rng.end()}, | 6176 | 0 | rd.skip_ws_before_read(), prefix_width, | 6177 | 0 | value_width)); | 6178 | 0 | std::tie(it, postfix_width) = postfix_result; | 6179 | 0 | } | 6180 | | | 6181 | 0 | if (auto e = check_widths_for_arg_reader(specs, prefix_width, | 6182 | 0 | value_width, postfix_width); | 6183 | 0 | !e) { | 6184 | 0 | return unexpected(e); | 6185 | 0 | } | 6186 | | | 6187 | 0 | return it; | 6188 | 0 | } |
_ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIcEEE4implINS1_20reader_impl_for_charIcEENS0_6ranges6detail9subrange_8subrangeIPKcSE_EEcEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Line | Count | Source | 6123 | 524 | { | 6124 | 524 | const bool need_skipped_width = | 6125 | 524 | specs.width != 0 || specs.precision != 0; | 6126 | | | 6127 | | // Read prefix | 6128 | 524 | auto it = rng.begin(); | 6129 | 524 | std::ptrdiff_t prefix_width = 0; | 6130 | 524 | if (specs.precision != 0) { | 6131 | 288 | auto max_width_view = take_width(rng, specs.precision); | 6132 | 288 | SCN_TRY(prefix_result, | 6133 | 288 | impl_prefix(max_width_view, rd.skip_ws_before_read())); | 6134 | 288 | it = prefix_result.first.base(); | 6135 | 288 | prefix_width = prefix_result.second; | 6136 | 288 | } | 6137 | 236 | else { | 6138 | 236 | SCN_TRY(prefix_result, impl_prefix(rng, rd.skip_ws_before_read())); | 6139 | 236 | std::tie(it, prefix_width) = prefix_result; | 6140 | 236 | } | 6141 | 524 | auto prefix_end_it = it; | 6142 | | | 6143 | | // Read value | 6144 | 524 | std::ptrdiff_t value_width = 0; | 6145 | 524 | if (specs.precision != 0) { | 6146 | 288 | if (specs.precision <= prefix_width) { | 6147 | 6 | return unexpected_scan_error( | 6148 | 6 | scan_error::invalid_scanned_value, | 6149 | 6 | "Too many fill characters before value, " | 6150 | 6 | "precision exceeded before reading value"); | 6151 | 6 | } | 6152 | | | 6153 | 282 | const auto initial_width = specs.precision - prefix_width; | 6154 | 282 | auto max_width_view = | 6155 | 282 | take_width(ranges::subrange{it, rng.end()}, initial_width); | 6156 | 282 | SCN_TRY(w_it, rd.read_specs(max_width_view, specs, value, loc)); | 6157 | 250 | it = w_it.base(); | 6158 | 250 | value_width = initial_width - w_it.count(); | 6159 | 250 | } | 6160 | 236 | else { | 6161 | 236 | SCN_TRY_ASSIGN(it, rd.read_specs(ranges::subrange{it, rng.end()}, | 6162 | 214 | specs, value, loc)); | 6163 | | | 6164 | 214 | if (need_skipped_width) { | 6165 | 152 | value_width = calculate_text_width( | 6166 | 152 | make_contiguous_buffer(ranges::subrange{prefix_end_it, it}) | 6167 | 152 | .view()); | 6168 | 152 | } | 6169 | 214 | } | 6170 | | | 6171 | | // Read postfix | 6172 | 464 | std::ptrdiff_t postfix_width = 0; | 6173 | 464 | if (it != rng.end()) { | 6174 | 464 | SCN_TRY(postfix_result, | 6175 | 464 | impl_postfix(ranges::subrange{it, rng.end()}, | 6176 | 464 | rd.skip_ws_before_read(), prefix_width, | 6177 | 464 | value_width)); | 6178 | 464 | std::tie(it, postfix_width) = postfix_result; | 6179 | 464 | } | 6180 | | | 6181 | 464 | if (auto e = check_widths_for_arg_reader(specs, prefix_width, | 6182 | 464 | value_width, postfix_width); | 6183 | 464 | !e) { | 6184 | 136 | return unexpected(e); | 6185 | 136 | } | 6186 | | | 6187 | 328 | return it; | 6188 | 464 | } |
Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIcEEE4implINS1_21reader_impl_for_wcharIcEENS0_6ranges6detail9subrange_8subrangeIPKcSE_EEwEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIcEEE4implINS1_26reader_impl_for_code_pointIcEENS0_6ranges6detail9subrange_8subrangeIPKcSE_EEDiEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIcEEE4implINS1_21reader_impl_for_floatIcEENS0_6ranges6detail9subrange_8subrangeIPKcSE_EEfEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ _ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIcEEE4implINS1_21reader_impl_for_floatIcEENS0_6ranges6detail9subrange_8subrangeIPKcSE_EEdEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Line | Count | Source | 6123 | 552 | { | 6124 | 552 | const bool need_skipped_width = | 6125 | 552 | specs.width != 0 || specs.precision != 0; | 6126 | | | 6127 | | // Read prefix | 6128 | 552 | auto it = rng.begin(); | 6129 | 552 | std::ptrdiff_t prefix_width = 0; | 6130 | 552 | if (specs.precision != 0) { | 6131 | 296 | auto max_width_view = take_width(rng, specs.precision); | 6132 | 296 | SCN_TRY(prefix_result, | 6133 | 278 | impl_prefix(max_width_view, rd.skip_ws_before_read())); | 6134 | 278 | it = prefix_result.first.base(); | 6135 | 278 | prefix_width = prefix_result.second; | 6136 | 278 | } | 6137 | 256 | else { | 6138 | 256 | SCN_TRY(prefix_result, impl_prefix(rng, rd.skip_ws_before_read())); | 6139 | 256 | std::tie(it, prefix_width) = prefix_result; | 6140 | 256 | } | 6141 | 534 | auto prefix_end_it = it; | 6142 | | | 6143 | | // Read value | 6144 | 534 | std::ptrdiff_t value_width = 0; | 6145 | 534 | if (specs.precision != 0) { | 6146 | 278 | if (specs.precision <= prefix_width) { | 6147 | 8 | return unexpected_scan_error( | 6148 | 8 | scan_error::invalid_scanned_value, | 6149 | 8 | "Too many fill characters before value, " | 6150 | 8 | "precision exceeded before reading value"); | 6151 | 8 | } | 6152 | | | 6153 | 270 | const auto initial_width = specs.precision - prefix_width; | 6154 | 270 | auto max_width_view = | 6155 | 270 | take_width(ranges::subrange{it, rng.end()}, initial_width); | 6156 | 270 | SCN_TRY(w_it, rd.read_specs(max_width_view, specs, value, loc)); | 6157 | 0 | it = w_it.base(); | 6158 | 0 | value_width = initial_width - w_it.count(); | 6159 | 0 | } | 6160 | 256 | else { | 6161 | 256 | SCN_TRY_ASSIGN(it, rd.read_specs(ranges::subrange{it, rng.end()}, | 6162 | 0 | specs, value, loc)); | 6163 | |
| 6164 | 0 | if (need_skipped_width) { | 6165 | 0 | value_width = calculate_text_width( | 6166 | 0 | make_contiguous_buffer(ranges::subrange{prefix_end_it, it}) | 6167 | 0 | .view()); | 6168 | 0 | } | 6169 | 0 | } | 6170 | | | 6171 | | // Read postfix | 6172 | 0 | std::ptrdiff_t postfix_width = 0; | 6173 | 0 | if (it != rng.end()) { | 6174 | 0 | SCN_TRY(postfix_result, | 6175 | 0 | impl_postfix(ranges::subrange{it, rng.end()}, | 6176 | 0 | rd.skip_ws_before_read(), prefix_width, | 6177 | 0 | value_width)); | 6178 | 0 | std::tie(it, postfix_width) = postfix_result; | 6179 | 0 | } | 6180 | | | 6181 | 0 | if (auto e = check_widths_for_arg_reader(specs, prefix_width, | 6182 | 0 | value_width, postfix_width); | 6183 | 0 | !e) { | 6184 | 0 | return unexpected(e); | 6185 | 0 | } | 6186 | | | 6187 | 0 | return it; | 6188 | 0 | } |
Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIcEEE4implINS1_21reader_impl_for_floatIcEENS0_6ranges6detail9subrange_8subrangeIPKcSE_EEeEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ _ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIcEEE4implINS1_22reader_impl_for_stringIcEENS0_6ranges6detail9subrange_8subrangeIPKcSE_EENSt3__117basic_string_viewIcNSG_11char_traitsIcEEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SM_RT1_ Line | Count | Source | 6123 | 4.96k | { | 6124 | 4.96k | const bool need_skipped_width = | 6125 | 4.96k | specs.width != 0 || specs.precision != 0; | 6126 | | | 6127 | | // Read prefix | 6128 | 4.96k | auto it = rng.begin(); | 6129 | 4.96k | std::ptrdiff_t prefix_width = 0; | 6130 | 4.96k | if (specs.precision != 0) { | 6131 | 664 | auto max_width_view = take_width(rng, specs.precision); | 6132 | 664 | SCN_TRY(prefix_result, | 6133 | 648 | impl_prefix(max_width_view, rd.skip_ws_before_read())); | 6134 | 648 | it = prefix_result.first.base(); | 6135 | 648 | prefix_width = prefix_result.second; | 6136 | 648 | } | 6137 | 4.30k | else { | 6138 | 4.30k | SCN_TRY(prefix_result, impl_prefix(rng, rd.skip_ws_before_read())); | 6139 | 4.30k | std::tie(it, prefix_width) = prefix_result; | 6140 | 4.30k | } | 6141 | 4.95k | auto prefix_end_it = it; | 6142 | | | 6143 | | // Read value | 6144 | 4.95k | std::ptrdiff_t value_width = 0; | 6145 | 4.95k | if (specs.precision != 0) { | 6146 | 648 | if (specs.precision <= prefix_width) { | 6147 | 6 | return unexpected_scan_error( | 6148 | 6 | scan_error::invalid_scanned_value, | 6149 | 6 | "Too many fill characters before value, " | 6150 | 6 | "precision exceeded before reading value"); | 6151 | 6 | } | 6152 | | | 6153 | 642 | const auto initial_width = specs.precision - prefix_width; | 6154 | 642 | auto max_width_view = | 6155 | 642 | take_width(ranges::subrange{it, rng.end()}, initial_width); | 6156 | 642 | SCN_TRY(w_it, rd.read_specs(max_width_view, specs, value, loc)); | 6157 | 362 | it = w_it.base(); | 6158 | 362 | value_width = initial_width - w_it.count(); | 6159 | 362 | } | 6160 | 4.30k | else { | 6161 | 4.30k | SCN_TRY_ASSIGN(it, rd.read_specs(ranges::subrange{it, rng.end()}, | 6162 | 1.24k | specs, value, loc)); | 6163 | | | 6164 | 1.24k | if (need_skipped_width) { | 6165 | 190 | value_width = calculate_text_width( | 6166 | 190 | make_contiguous_buffer(ranges::subrange{prefix_end_it, it}) | 6167 | 190 | .view()); | 6168 | 190 | } | 6169 | 1.24k | } | 6170 | | | 6171 | | // Read postfix | 6172 | 1.60k | std::ptrdiff_t postfix_width = 0; | 6173 | 1.60k | if (it != rng.end()) { | 6174 | 1.20k | SCN_TRY(postfix_result, | 6175 | 1.20k | impl_postfix(ranges::subrange{it, rng.end()}, | 6176 | 1.20k | rd.skip_ws_before_read(), prefix_width, | 6177 | 1.20k | value_width)); | 6178 | 1.20k | std::tie(it, postfix_width) = postfix_result; | 6179 | 1.20k | } | 6180 | | | 6181 | 1.60k | if (auto e = check_widths_for_arg_reader(specs, prefix_width, | 6182 | 1.60k | value_width, postfix_width); | 6183 | 1.60k | !e) { | 6184 | 102 | return unexpected(e); | 6185 | 102 | } | 6186 | | | 6187 | 1.50k | return it; | 6188 | 1.60k | } |
_ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIcEEE4implINS1_22reader_impl_for_stringIcEENS0_6ranges6detail9subrange_8subrangeIPKcSE_EENSt3__112basic_stringIcNSG_11char_traitsIcEENSG_9allocatorIcEEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SO_RT1_ Line | Count | Source | 6123 | 4.96k | { | 6124 | 4.96k | const bool need_skipped_width = | 6125 | 4.96k | specs.width != 0 || specs.precision != 0; | 6126 | | | 6127 | | // Read prefix | 6128 | 4.96k | auto it = rng.begin(); | 6129 | 4.96k | std::ptrdiff_t prefix_width = 0; | 6130 | 4.96k | if (specs.precision != 0) { | 6131 | 664 | auto max_width_view = take_width(rng, specs.precision); | 6132 | 664 | SCN_TRY(prefix_result, | 6133 | 648 | impl_prefix(max_width_view, rd.skip_ws_before_read())); | 6134 | 648 | it = prefix_result.first.base(); | 6135 | 648 | prefix_width = prefix_result.second; | 6136 | 648 | } | 6137 | 4.30k | else { | 6138 | 4.30k | SCN_TRY(prefix_result, impl_prefix(rng, rd.skip_ws_before_read())); | 6139 | 4.30k | std::tie(it, prefix_width) = prefix_result; | 6140 | 4.30k | } | 6141 | 4.95k | auto prefix_end_it = it; | 6142 | | | 6143 | | // Read value | 6144 | 4.95k | std::ptrdiff_t value_width = 0; | 6145 | 4.95k | if (specs.precision != 0) { | 6146 | 648 | if (specs.precision <= prefix_width) { | 6147 | 6 | return unexpected_scan_error( | 6148 | 6 | scan_error::invalid_scanned_value, | 6149 | 6 | "Too many fill characters before value, " | 6150 | 6 | "precision exceeded before reading value"); | 6151 | 6 | } | 6152 | | | 6153 | 642 | const auto initial_width = specs.precision - prefix_width; | 6154 | 642 | auto max_width_view = | 6155 | 642 | take_width(ranges::subrange{it, rng.end()}, initial_width); | 6156 | 642 | SCN_TRY(w_it, rd.read_specs(max_width_view, specs, value, loc)); | 6157 | 362 | it = w_it.base(); | 6158 | 362 | value_width = initial_width - w_it.count(); | 6159 | 362 | } | 6160 | 4.30k | else { | 6161 | 4.30k | SCN_TRY_ASSIGN(it, rd.read_specs(ranges::subrange{it, rng.end()}, | 6162 | 1.24k | specs, value, loc)); | 6163 | | | 6164 | 1.24k | if (need_skipped_width) { | 6165 | 190 | value_width = calculate_text_width( | 6166 | 190 | make_contiguous_buffer(ranges::subrange{prefix_end_it, it}) | 6167 | 190 | .view()); | 6168 | 190 | } | 6169 | 1.24k | } | 6170 | | | 6171 | | // Read postfix | 6172 | 1.60k | std::ptrdiff_t postfix_width = 0; | 6173 | 1.60k | if (it != rng.end()) { | 6174 | 1.20k | SCN_TRY(postfix_result, | 6175 | 1.20k | impl_postfix(ranges::subrange{it, rng.end()}, | 6176 | 1.20k | rd.skip_ws_before_read(), prefix_width, | 6177 | 1.20k | value_width)); | 6178 | 1.20k | std::tie(it, postfix_width) = postfix_result; | 6179 | 1.20k | } | 6180 | | | 6181 | 1.60k | if (auto e = check_widths_for_arg_reader(specs, prefix_width, | 6182 | 1.60k | value_width, postfix_width); | 6183 | 1.60k | !e) { | 6184 | 102 | return unexpected(e); | 6185 | 102 | } | 6186 | | | 6187 | 1.50k | return it; | 6188 | 1.60k | } |
Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIcEEE4implINS1_22reader_impl_for_stringIcEENS0_6ranges6detail9subrange_8subrangeIPKcSE_EENSt3__117basic_string_viewIwNSG_11char_traitsIwEEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SM_RT1_ _ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIcEEE4implINS1_22reader_impl_for_stringIcEENS0_6ranges6detail9subrange_8subrangeIPKcSE_EENSt3__112basic_stringIwNSG_11char_traitsIwEENSG_9allocatorIwEEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SO_RT1_ Line | Count | Source | 6123 | 4.96k | { | 6124 | 4.96k | const bool need_skipped_width = | 6125 | 4.96k | specs.width != 0 || specs.precision != 0; | 6126 | | | 6127 | | // Read prefix | 6128 | 4.96k | auto it = rng.begin(); | 6129 | 4.96k | std::ptrdiff_t prefix_width = 0; | 6130 | 4.96k | if (specs.precision != 0) { | 6131 | 664 | auto max_width_view = take_width(rng, specs.precision); | 6132 | 664 | SCN_TRY(prefix_result, | 6133 | 648 | impl_prefix(max_width_view, rd.skip_ws_before_read())); | 6134 | 648 | it = prefix_result.first.base(); | 6135 | 648 | prefix_width = prefix_result.second; | 6136 | 648 | } | 6137 | 4.30k | else { | 6138 | 4.30k | SCN_TRY(prefix_result, impl_prefix(rng, rd.skip_ws_before_read())); | 6139 | 4.30k | std::tie(it, prefix_width) = prefix_result; | 6140 | 4.30k | } | 6141 | 4.95k | auto prefix_end_it = it; | 6142 | | | 6143 | | // Read value | 6144 | 4.95k | std::ptrdiff_t value_width = 0; | 6145 | 4.95k | if (specs.precision != 0) { | 6146 | 648 | if (specs.precision <= prefix_width) { | 6147 | 6 | return unexpected_scan_error( | 6148 | 6 | scan_error::invalid_scanned_value, | 6149 | 6 | "Too many fill characters before value, " | 6150 | 6 | "precision exceeded before reading value"); | 6151 | 6 | } | 6152 | | | 6153 | 642 | const auto initial_width = specs.precision - prefix_width; | 6154 | 642 | auto max_width_view = | 6155 | 642 | take_width(ranges::subrange{it, rng.end()}, initial_width); | 6156 | 642 | SCN_TRY(w_it, rd.read_specs(max_width_view, specs, value, loc)); | 6157 | 362 | it = w_it.base(); | 6158 | 362 | value_width = initial_width - w_it.count(); | 6159 | 362 | } | 6160 | 4.30k | else { | 6161 | 4.30k | SCN_TRY_ASSIGN(it, rd.read_specs(ranges::subrange{it, rng.end()}, | 6162 | 1.24k | specs, value, loc)); | 6163 | | | 6164 | 1.24k | if (need_skipped_width) { | 6165 | 190 | value_width = calculate_text_width( | 6166 | 190 | make_contiguous_buffer(ranges::subrange{prefix_end_it, it}) | 6167 | 190 | .view()); | 6168 | 190 | } | 6169 | 1.24k | } | 6170 | | | 6171 | | // Read postfix | 6172 | 1.60k | std::ptrdiff_t postfix_width = 0; | 6173 | 1.60k | if (it != rng.end()) { | 6174 | 1.20k | SCN_TRY(postfix_result, | 6175 | 1.20k | impl_postfix(ranges::subrange{it, rng.end()}, | 6176 | 1.20k | rd.skip_ws_before_read(), prefix_width, | 6177 | 1.20k | value_width)); | 6178 | 1.20k | std::tie(it, postfix_width) = postfix_result; | 6179 | 1.20k | } | 6180 | | | 6181 | 1.60k | if (auto e = check_widths_for_arg_reader(specs, prefix_width, | 6182 | 1.60k | value_width, postfix_width); | 6183 | 1.60k | !e) { | 6184 | 102 | return unexpected(e); | 6185 | 102 | } | 6186 | | | 6187 | 1.50k | return it; | 6188 | 1.60k | } |
Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIcEEE4implINS1_29reader_impl_for_regex_matchesIcEENS0_6ranges6detail9subrange_8subrangeIPKcSE_EENS0_19basic_regex_matchesIcEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SJ_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIcEEE4implINS1_29reader_impl_for_regex_matchesIcEENS0_6ranges6detail9subrange_8subrangeIPKcSE_EENS0_19basic_regex_matchesIwEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SJ_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIcEEE4implINS1_25reader_impl_for_monostateIcEENS0_6ranges6detail9subrange_8subrangeIPKcSE_EENS0_9monostateEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SI_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE4implINS1_23reader_impl_for_voidptrIcEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEPvEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SL_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE4implINS1_23reader_impl_for_voidptrIcEENSt3__117basic_string_viewIcNS9_11char_traitsIcEEEEPvEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE4implINS1_20reader_impl_for_boolIcEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEbEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE4implINS1_20reader_impl_for_boolIcEENSt3__117basic_string_viewIcNS9_11char_traitsIcEEEEbEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE4implINS1_21reader_impl_for_wcharIcEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEwEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE4implINS1_21reader_impl_for_wcharIcEENSt3__117basic_string_viewIcNS9_11char_traitsIcEEEEwEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE4implINS1_26reader_impl_for_code_pointIcEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEEDiEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE4implINS1_26reader_impl_for_code_pointIcEENSt3__117basic_string_viewIcNS9_11char_traitsIcEEEEDiEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE4implINS1_25reader_impl_for_monostateIcEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIcE16forward_iteratorENS9_18default_sentinel_tEEENS0_9monostateEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SL_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIcEEE4implINS1_25reader_impl_for_monostateIcEENSt3__117basic_string_viewIcNS9_11char_traitsIcEEEENS0_9monostateEEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENS0_6ranges6detail9subrange_8subrangeIPKwSE_EEaEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENS0_6ranges6detail9subrange_8subrangeIPKwSE_EEsEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ _ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENS0_6ranges6detail9subrange_8subrangeIPKwSE_EEiEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Line | Count | Source | 6123 | 470 | { | 6124 | 470 | const bool need_skipped_width = | 6125 | 470 | specs.width != 0 || specs.precision != 0; | 6126 | | | 6127 | | // Read prefix | 6128 | 470 | auto it = rng.begin(); | 6129 | 470 | std::ptrdiff_t prefix_width = 0; | 6130 | 470 | if (specs.precision != 0) { | 6131 | 132 | auto max_width_view = take_width(rng, specs.precision); | 6132 | 132 | SCN_TRY(prefix_result, | 6133 | 132 | impl_prefix(max_width_view, rd.skip_ws_before_read())); | 6134 | 132 | it = prefix_result.first.base(); | 6135 | 132 | prefix_width = prefix_result.second; | 6136 | 132 | } | 6137 | 338 | else { | 6138 | 338 | SCN_TRY(prefix_result, impl_prefix(rng, rd.skip_ws_before_read())); | 6139 | 338 | std::tie(it, prefix_width) = prefix_result; | 6140 | 338 | } | 6141 | 470 | auto prefix_end_it = it; | 6142 | | | 6143 | | // Read value | 6144 | 470 | std::ptrdiff_t value_width = 0; | 6145 | 470 | if (specs.precision != 0) { | 6146 | 132 | if (specs.precision <= prefix_width) { | 6147 | 2 | return unexpected_scan_error( | 6148 | 2 | scan_error::invalid_scanned_value, | 6149 | 2 | "Too many fill characters before value, " | 6150 | 2 | "precision exceeded before reading value"); | 6151 | 2 | } | 6152 | | | 6153 | 130 | const auto initial_width = specs.precision - prefix_width; | 6154 | 130 | auto max_width_view = | 6155 | 130 | take_width(ranges::subrange{it, rng.end()}, initial_width); | 6156 | 130 | SCN_TRY(w_it, rd.read_specs(max_width_view, specs, value, loc)); | 6157 | 0 | it = w_it.base(); | 6158 | 0 | value_width = initial_width - w_it.count(); | 6159 | 0 | } | 6160 | 338 | else { | 6161 | 338 | SCN_TRY_ASSIGN(it, rd.read_specs(ranges::subrange{it, rng.end()}, | 6162 | 0 | specs, value, loc)); | 6163 | |
| 6164 | 0 | if (need_skipped_width) { | 6165 | 0 | value_width = calculate_text_width( | 6166 | 0 | make_contiguous_buffer(ranges::subrange{prefix_end_it, it}) | 6167 | 0 | .view()); | 6168 | 0 | } | 6169 | 0 | } | 6170 | | | 6171 | | // Read postfix | 6172 | 0 | std::ptrdiff_t postfix_width = 0; | 6173 | 0 | if (it != rng.end()) { | 6174 | 0 | SCN_TRY(postfix_result, | 6175 | 0 | impl_postfix(ranges::subrange{it, rng.end()}, | 6176 | 0 | rd.skip_ws_before_read(), prefix_width, | 6177 | 0 | value_width)); | 6178 | 0 | std::tie(it, postfix_width) = postfix_result; | 6179 | 0 | } | 6180 | | | 6181 | 0 | if (auto e = check_widths_for_arg_reader(specs, prefix_width, | 6182 | 0 | value_width, postfix_width); | 6183 | 0 | !e) { | 6184 | 0 | return unexpected(e); | 6185 | 0 | } | 6186 | | | 6187 | 0 | return it; | 6188 | 0 | } |
Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENS0_6ranges6detail9subrange_8subrangeIPKwSE_EElEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENS0_6ranges6detail9subrange_8subrangeIPKwSE_EExEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENS0_6ranges6detail9subrange_8subrangeIPKwSE_EEhEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENS0_6ranges6detail9subrange_8subrangeIPKwSE_EEtEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ _ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENS0_6ranges6detail9subrange_8subrangeIPKwSE_EEjEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Line | Count | Source | 6123 | 470 | { | 6124 | 470 | const bool need_skipped_width = | 6125 | 470 | specs.width != 0 || specs.precision != 0; | 6126 | | | 6127 | | // Read prefix | 6128 | 470 | auto it = rng.begin(); | 6129 | 470 | std::ptrdiff_t prefix_width = 0; | 6130 | 470 | if (specs.precision != 0) { | 6131 | 132 | auto max_width_view = take_width(rng, specs.precision); | 6132 | 132 | SCN_TRY(prefix_result, | 6133 | 132 | impl_prefix(max_width_view, rd.skip_ws_before_read())); | 6134 | 132 | it = prefix_result.first.base(); | 6135 | 132 | prefix_width = prefix_result.second; | 6136 | 132 | } | 6137 | 338 | else { | 6138 | 338 | SCN_TRY(prefix_result, impl_prefix(rng, rd.skip_ws_before_read())); | 6139 | 338 | std::tie(it, prefix_width) = prefix_result; | 6140 | 338 | } | 6141 | 470 | auto prefix_end_it = it; | 6142 | | | 6143 | | // Read value | 6144 | 470 | std::ptrdiff_t value_width = 0; | 6145 | 470 | if (specs.precision != 0) { | 6146 | 132 | if (specs.precision <= prefix_width) { | 6147 | 2 | return unexpected_scan_error( | 6148 | 2 | scan_error::invalid_scanned_value, | 6149 | 2 | "Too many fill characters before value, " | 6150 | 2 | "precision exceeded before reading value"); | 6151 | 2 | } | 6152 | | | 6153 | 130 | const auto initial_width = specs.precision - prefix_width; | 6154 | 130 | auto max_width_view = | 6155 | 130 | take_width(ranges::subrange{it, rng.end()}, initial_width); | 6156 | 130 | SCN_TRY(w_it, rd.read_specs(max_width_view, specs, value, loc)); | 6157 | 0 | it = w_it.base(); | 6158 | 0 | value_width = initial_width - w_it.count(); | 6159 | 0 | } | 6160 | 338 | else { | 6161 | 338 | SCN_TRY_ASSIGN(it, rd.read_specs(ranges::subrange{it, rng.end()}, | 6162 | 0 | specs, value, loc)); | 6163 | |
| 6164 | 0 | if (need_skipped_width) { | 6165 | 0 | value_width = calculate_text_width( | 6166 | 0 | make_contiguous_buffer(ranges::subrange{prefix_end_it, it}) | 6167 | 0 | .view()); | 6168 | 0 | } | 6169 | 0 | } | 6170 | | | 6171 | | // Read postfix | 6172 | 0 | std::ptrdiff_t postfix_width = 0; | 6173 | 0 | if (it != rng.end()) { | 6174 | 0 | SCN_TRY(postfix_result, | 6175 | 0 | impl_postfix(ranges::subrange{it, rng.end()}, | 6176 | 0 | rd.skip_ws_before_read(), prefix_width, | 6177 | 0 | value_width)); | 6178 | 0 | std::tie(it, postfix_width) = postfix_result; | 6179 | 0 | } | 6180 | | | 6181 | 0 | if (auto e = check_widths_for_arg_reader(specs, prefix_width, | 6182 | 0 | value_width, postfix_width); | 6183 | 0 | !e) { | 6184 | 0 | return unexpected(e); | 6185 | 0 | } | 6186 | | | 6187 | 0 | return it; | 6188 | 0 | } |
Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENS0_6ranges6detail9subrange_8subrangeIPKwSE_EEmEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIwEEE4implINS1_19reader_impl_for_intIwEENS0_6ranges6detail9subrange_8subrangeIPKwSE_EEyEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ _ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIwEEE4implINS1_23reader_impl_for_voidptrIwEENS0_6ranges6detail9subrange_8subrangeIPKwSE_EEPvEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SI_RT1_ Line | Count | Source | 6123 | 414 | { | 6124 | 414 | const bool need_skipped_width = | 6125 | 414 | specs.width != 0 || specs.precision != 0; | 6126 | | | 6127 | | // Read prefix | 6128 | 414 | auto it = rng.begin(); | 6129 | 414 | std::ptrdiff_t prefix_width = 0; | 6130 | 414 | if (specs.precision != 0) { | 6131 | 108 | auto max_width_view = take_width(rng, specs.precision); | 6132 | 108 | SCN_TRY(prefix_result, | 6133 | 108 | impl_prefix(max_width_view, rd.skip_ws_before_read())); | 6134 | 108 | it = prefix_result.first.base(); | 6135 | 108 | prefix_width = prefix_result.second; | 6136 | 108 | } | 6137 | 306 | else { | 6138 | 306 | SCN_TRY(prefix_result, impl_prefix(rng, rd.skip_ws_before_read())); | 6139 | 306 | std::tie(it, prefix_width) = prefix_result; | 6140 | 306 | } | 6141 | 414 | auto prefix_end_it = it; | 6142 | | | 6143 | | // Read value | 6144 | 414 | std::ptrdiff_t value_width = 0; | 6145 | 414 | if (specs.precision != 0) { | 6146 | 108 | if (specs.precision <= prefix_width) { | 6147 | 2 | return unexpected_scan_error( | 6148 | 2 | scan_error::invalid_scanned_value, | 6149 | 2 | "Too many fill characters before value, " | 6150 | 2 | "precision exceeded before reading value"); | 6151 | 2 | } | 6152 | | | 6153 | 106 | const auto initial_width = specs.precision - prefix_width; | 6154 | 106 | auto max_width_view = | 6155 | 106 | take_width(ranges::subrange{it, rng.end()}, initial_width); | 6156 | 106 | SCN_TRY(w_it, rd.read_specs(max_width_view, specs, value, loc)); | 6157 | 0 | it = w_it.base(); | 6158 | 0 | value_width = initial_width - w_it.count(); | 6159 | 0 | } | 6160 | 306 | else { | 6161 | 306 | SCN_TRY_ASSIGN(it, rd.read_specs(ranges::subrange{it, rng.end()}, | 6162 | 0 | specs, value, loc)); | 6163 | |
| 6164 | 0 | if (need_skipped_width) { | 6165 | 0 | value_width = calculate_text_width( | 6166 | 0 | make_contiguous_buffer(ranges::subrange{prefix_end_it, it}) | 6167 | 0 | .view()); | 6168 | 0 | } | 6169 | 0 | } | 6170 | | | 6171 | | // Read postfix | 6172 | 0 | std::ptrdiff_t postfix_width = 0; | 6173 | 0 | if (it != rng.end()) { | 6174 | 0 | SCN_TRY(postfix_result, | 6175 | 0 | impl_postfix(ranges::subrange{it, rng.end()}, | 6176 | 0 | rd.skip_ws_before_read(), prefix_width, | 6177 | 0 | value_width)); | 6178 | 0 | std::tie(it, postfix_width) = postfix_result; | 6179 | 0 | } | 6180 | | | 6181 | 0 | if (auto e = check_widths_for_arg_reader(specs, prefix_width, | 6182 | 0 | value_width, postfix_width); | 6183 | 0 | !e) { | 6184 | 0 | return unexpected(e); | 6185 | 0 | } | 6186 | | | 6187 | 0 | return it; | 6188 | 0 | } |
_ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIwEEE4implINS1_20reader_impl_for_boolIwEENS0_6ranges6detail9subrange_8subrangeIPKwSE_EEbEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Line | Count | Source | 6123 | 540 | { | 6124 | 540 | const bool need_skipped_width = | 6125 | 540 | specs.width != 0 || specs.precision != 0; | 6126 | | | 6127 | | // Read prefix | 6128 | 540 | auto it = rng.begin(); | 6129 | 540 | std::ptrdiff_t prefix_width = 0; | 6130 | 540 | if (specs.precision != 0) { | 6131 | 160 | auto max_width_view = take_width(rng, specs.precision); | 6132 | 160 | SCN_TRY(prefix_result, | 6133 | 160 | impl_prefix(max_width_view, rd.skip_ws_before_read())); | 6134 | 160 | it = prefix_result.first.base(); | 6135 | 160 | prefix_width = prefix_result.second; | 6136 | 160 | } | 6137 | 380 | else { | 6138 | 380 | SCN_TRY(prefix_result, impl_prefix(rng, rd.skip_ws_before_read())); | 6139 | 380 | std::tie(it, prefix_width) = prefix_result; | 6140 | 380 | } | 6141 | 540 | auto prefix_end_it = it; | 6142 | | | 6143 | | // Read value | 6144 | 540 | std::ptrdiff_t value_width = 0; | 6145 | 540 | if (specs.precision != 0) { | 6146 | 160 | if (specs.precision <= prefix_width) { | 6147 | 4 | return unexpected_scan_error( | 6148 | 4 | scan_error::invalid_scanned_value, | 6149 | 4 | "Too many fill characters before value, " | 6150 | 4 | "precision exceeded before reading value"); | 6151 | 4 | } | 6152 | | | 6153 | 156 | const auto initial_width = specs.precision - prefix_width; | 6154 | 156 | auto max_width_view = | 6155 | 156 | take_width(ranges::subrange{it, rng.end()}, initial_width); | 6156 | 156 | SCN_TRY(w_it, rd.read_specs(max_width_view, specs, value, loc)); | 6157 | 0 | it = w_it.base(); | 6158 | 0 | value_width = initial_width - w_it.count(); | 6159 | 0 | } | 6160 | 380 | else { | 6161 | 380 | SCN_TRY_ASSIGN(it, rd.read_specs(ranges::subrange{it, rng.end()}, | 6162 | 0 | specs, value, loc)); | 6163 | |
| 6164 | 0 | if (need_skipped_width) { | 6165 | 0 | value_width = calculate_text_width( | 6166 | 0 | make_contiguous_buffer(ranges::subrange{prefix_end_it, it}) | 6167 | 0 | .view()); | 6168 | 0 | } | 6169 | 0 | } | 6170 | | | 6171 | | // Read postfix | 6172 | 0 | std::ptrdiff_t postfix_width = 0; | 6173 | 0 | if (it != rng.end()) { | 6174 | 0 | SCN_TRY(postfix_result, | 6175 | 0 | impl_postfix(ranges::subrange{it, rng.end()}, | 6176 | 0 | rd.skip_ws_before_read(), prefix_width, | 6177 | 0 | value_width)); | 6178 | 0 | std::tie(it, postfix_width) = postfix_result; | 6179 | 0 | } | 6180 | | | 6181 | 0 | if (auto e = check_widths_for_arg_reader(specs, prefix_width, | 6182 | 0 | value_width, postfix_width); | 6183 | 0 | !e) { | 6184 | 0 | return unexpected(e); | 6185 | 0 | } | 6186 | | | 6187 | 0 | return it; | 6188 | 0 | } |
Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIwEEE4implINS1_20reader_impl_for_charIwEENS0_6ranges6detail9subrange_8subrangeIPKwSE_EEcEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ _ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIwEEE4implINS1_21reader_impl_for_wcharIwEENS0_6ranges6detail9subrange_8subrangeIPKwSE_EEwEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Line | Count | Source | 6123 | 448 | { | 6124 | 448 | const bool need_skipped_width = | 6125 | 448 | specs.width != 0 || specs.precision != 0; | 6126 | | | 6127 | | // Read prefix | 6128 | 448 | auto it = rng.begin(); | 6129 | 448 | std::ptrdiff_t prefix_width = 0; | 6130 | 448 | if (specs.precision != 0) { | 6131 | 124 | auto max_width_view = take_width(rng, specs.precision); | 6132 | 124 | SCN_TRY(prefix_result, | 6133 | 124 | impl_prefix(max_width_view, rd.skip_ws_before_read())); | 6134 | 124 | it = prefix_result.first.base(); | 6135 | 124 | prefix_width = prefix_result.second; | 6136 | 124 | } | 6137 | 324 | else { | 6138 | 324 | SCN_TRY(prefix_result, impl_prefix(rng, rd.skip_ws_before_read())); | 6139 | 324 | std::tie(it, prefix_width) = prefix_result; | 6140 | 324 | } | 6141 | 448 | auto prefix_end_it = it; | 6142 | | | 6143 | | // Read value | 6144 | 448 | std::ptrdiff_t value_width = 0; | 6145 | 448 | if (specs.precision != 0) { | 6146 | 124 | if (specs.precision <= prefix_width) { | 6147 | 2 | return unexpected_scan_error( | 6148 | 2 | scan_error::invalid_scanned_value, | 6149 | 2 | "Too many fill characters before value, " | 6150 | 2 | "precision exceeded before reading value"); | 6151 | 2 | } | 6152 | | | 6153 | 122 | const auto initial_width = specs.precision - prefix_width; | 6154 | 122 | auto max_width_view = | 6155 | 122 | take_width(ranges::subrange{it, rng.end()}, initial_width); | 6156 | 122 | SCN_TRY(w_it, rd.read_specs(max_width_view, specs, value, loc)); | 6157 | 102 | it = w_it.base(); | 6158 | 102 | value_width = initial_width - w_it.count(); | 6159 | 102 | } | 6160 | 324 | else { | 6161 | 324 | SCN_TRY_ASSIGN(it, rd.read_specs(ranges::subrange{it, rng.end()}, | 6162 | 304 | specs, value, loc)); | 6163 | | | 6164 | 304 | if (need_skipped_width) { | 6165 | 244 | value_width = calculate_text_width( | 6166 | 244 | make_contiguous_buffer(ranges::subrange{prefix_end_it, it}) | 6167 | 244 | .view()); | 6168 | 244 | } | 6169 | 304 | } | 6170 | | | 6171 | | // Read postfix | 6172 | 406 | std::ptrdiff_t postfix_width = 0; | 6173 | 406 | if (it != rng.end()) { | 6174 | 406 | SCN_TRY(postfix_result, | 6175 | 406 | impl_postfix(ranges::subrange{it, rng.end()}, | 6176 | 406 | rd.skip_ws_before_read(), prefix_width, | 6177 | 406 | value_width)); | 6178 | 406 | std::tie(it, postfix_width) = postfix_result; | 6179 | 406 | } | 6180 | | | 6181 | 406 | if (auto e = check_widths_for_arg_reader(specs, prefix_width, | 6182 | 406 | value_width, postfix_width); | 6183 | 406 | !e) { | 6184 | 242 | return unexpected(e); | 6185 | 242 | } | 6186 | | | 6187 | 164 | return it; | 6188 | 406 | } |
Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIwEEE4implINS1_26reader_impl_for_code_pointIwEENS0_6ranges6detail9subrange_8subrangeIPKwSE_EEDiEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIwEEE4implINS1_21reader_impl_for_floatIwEENS0_6ranges6detail9subrange_8subrangeIPKwSE_EEfEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ _ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIwEEE4implINS1_21reader_impl_for_floatIwEENS0_6ranges6detail9subrange_8subrangeIPKwSE_EEdEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Line | Count | Source | 6123 | 452 | { | 6124 | 452 | const bool need_skipped_width = | 6125 | 452 | specs.width != 0 || specs.precision != 0; | 6126 | | | 6127 | | // Read prefix | 6128 | 452 | auto it = rng.begin(); | 6129 | 452 | std::ptrdiff_t prefix_width = 0; | 6130 | 452 | if (specs.precision != 0) { | 6131 | 126 | auto max_width_view = take_width(rng, specs.precision); | 6132 | 126 | SCN_TRY(prefix_result, | 6133 | 126 | impl_prefix(max_width_view, rd.skip_ws_before_read())); | 6134 | 126 | it = prefix_result.first.base(); | 6135 | 126 | prefix_width = prefix_result.second; | 6136 | 126 | } | 6137 | 326 | else { | 6138 | 326 | SCN_TRY(prefix_result, impl_prefix(rng, rd.skip_ws_before_read())); | 6139 | 326 | std::tie(it, prefix_width) = prefix_result; | 6140 | 326 | } | 6141 | 452 | auto prefix_end_it = it; | 6142 | | | 6143 | | // Read value | 6144 | 452 | std::ptrdiff_t value_width = 0; | 6145 | 452 | if (specs.precision != 0) { | 6146 | 126 | if (specs.precision <= prefix_width) { | 6147 | 4 | return unexpected_scan_error( | 6148 | 4 | scan_error::invalid_scanned_value, | 6149 | 4 | "Too many fill characters before value, " | 6150 | 4 | "precision exceeded before reading value"); | 6151 | 4 | } | 6152 | | | 6153 | 122 | const auto initial_width = specs.precision - prefix_width; | 6154 | 122 | auto max_width_view = | 6155 | 122 | take_width(ranges::subrange{it, rng.end()}, initial_width); | 6156 | 122 | SCN_TRY(w_it, rd.read_specs(max_width_view, specs, value, loc)); | 6157 | 0 | it = w_it.base(); | 6158 | 0 | value_width = initial_width - w_it.count(); | 6159 | 0 | } | 6160 | 326 | else { | 6161 | 326 | SCN_TRY_ASSIGN(it, rd.read_specs(ranges::subrange{it, rng.end()}, | 6162 | 0 | specs, value, loc)); | 6163 | |
| 6164 | 0 | if (need_skipped_width) { | 6165 | 0 | value_width = calculate_text_width( | 6166 | 0 | make_contiguous_buffer(ranges::subrange{prefix_end_it, it}) | 6167 | 0 | .view()); | 6168 | 0 | } | 6169 | 0 | } | 6170 | | | 6171 | | // Read postfix | 6172 | 0 | std::ptrdiff_t postfix_width = 0; | 6173 | 0 | if (it != rng.end()) { | 6174 | 0 | SCN_TRY(postfix_result, | 6175 | 0 | impl_postfix(ranges::subrange{it, rng.end()}, | 6176 | 0 | rd.skip_ws_before_read(), prefix_width, | 6177 | 0 | value_width)); | 6178 | 0 | std::tie(it, postfix_width) = postfix_result; | 6179 | 0 | } | 6180 | | | 6181 | 0 | if (auto e = check_widths_for_arg_reader(specs, prefix_width, | 6182 | 0 | value_width, postfix_width); | 6183 | 0 | !e) { | 6184 | 0 | return unexpected(e); | 6185 | 0 | } | 6186 | | | 6187 | 0 | return it; | 6188 | 0 | } |
Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIwEEE4implINS1_21reader_impl_for_floatIwEENS0_6ranges6detail9subrange_8subrangeIPKwSE_EEeEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIwEEE4implINS1_22reader_impl_for_stringIwEENS0_6ranges6detail9subrange_8subrangeIPKwSE_EENSt3__117basic_string_viewIcNSG_11char_traitsIcEEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SM_RT1_ _ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIwEEE4implINS1_22reader_impl_for_stringIwEENS0_6ranges6detail9subrange_8subrangeIPKwSE_EENSt3__112basic_stringIcNSG_11char_traitsIcEENSG_9allocatorIcEEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SO_RT1_ Line | Count | Source | 6123 | 2.34k | { | 6124 | 2.34k | const bool need_skipped_width = | 6125 | 2.34k | specs.width != 0 || specs.precision != 0; | 6126 | | | 6127 | | // Read prefix | 6128 | 2.34k | auto it = rng.begin(); | 6129 | 2.34k | std::ptrdiff_t prefix_width = 0; | 6130 | 2.34k | if (specs.precision != 0) { | 6131 | 158 | auto max_width_view = take_width(rng, specs.precision); | 6132 | 158 | SCN_TRY(prefix_result, | 6133 | 158 | impl_prefix(max_width_view, rd.skip_ws_before_read())); | 6134 | 158 | it = prefix_result.first.base(); | 6135 | 158 | prefix_width = prefix_result.second; | 6136 | 158 | } | 6137 | 2.18k | else { | 6138 | 2.18k | SCN_TRY(prefix_result, impl_prefix(rng, rd.skip_ws_before_read())); | 6139 | 2.18k | std::tie(it, prefix_width) = prefix_result; | 6140 | 2.18k | } | 6141 | 2.34k | auto prefix_end_it = it; | 6142 | | | 6143 | | // Read value | 6144 | 2.34k | std::ptrdiff_t value_width = 0; | 6145 | 2.34k | if (specs.precision != 0) { | 6146 | 158 | if (specs.precision <= prefix_width) { | 6147 | 6 | return unexpected_scan_error( | 6148 | 6 | scan_error::invalid_scanned_value, | 6149 | 6 | "Too many fill characters before value, " | 6150 | 6 | "precision exceeded before reading value"); | 6151 | 6 | } | 6152 | | | 6153 | 152 | const auto initial_width = specs.precision - prefix_width; | 6154 | 152 | auto max_width_view = | 6155 | 152 | take_width(ranges::subrange{it, rng.end()}, initial_width); | 6156 | 152 | SCN_TRY(w_it, rd.read_specs(max_width_view, specs, value, loc)); | 6157 | 76 | it = w_it.base(); | 6158 | 76 | value_width = initial_width - w_it.count(); | 6159 | 76 | } | 6160 | 2.18k | else { | 6161 | 2.18k | SCN_TRY_ASSIGN(it, rd.read_specs(ranges::subrange{it, rng.end()}, | 6162 | 560 | specs, value, loc)); | 6163 | | | 6164 | 560 | if (need_skipped_width) { | 6165 | 298 | value_width = calculate_text_width( | 6166 | 298 | make_contiguous_buffer(ranges::subrange{prefix_end_it, it}) | 6167 | 298 | .view()); | 6168 | 298 | } | 6169 | 560 | } | 6170 | | | 6171 | | // Read postfix | 6172 | 636 | std::ptrdiff_t postfix_width = 0; | 6173 | 636 | if (it != rng.end()) { | 6174 | 368 | SCN_TRY(postfix_result, | 6175 | 368 | impl_postfix(ranges::subrange{it, rng.end()}, | 6176 | 368 | rd.skip_ws_before_read(), prefix_width, | 6177 | 368 | value_width)); | 6178 | 368 | std::tie(it, postfix_width) = postfix_result; | 6179 | 368 | } | 6180 | | | 6181 | 636 | if (auto e = check_widths_for_arg_reader(specs, prefix_width, | 6182 | 636 | value_width, postfix_width); | 6183 | 636 | !e) { | 6184 | 92 | return unexpected(e); | 6185 | 92 | } | 6186 | | | 6187 | 544 | return it; | 6188 | 636 | } |
_ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIwEEE4implINS1_22reader_impl_for_stringIwEENS0_6ranges6detail9subrange_8subrangeIPKwSE_EENSt3__117basic_string_viewIwNSG_11char_traitsIwEEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SM_RT1_ Line | Count | Source | 6123 | 2.34k | { | 6124 | 2.34k | const bool need_skipped_width = | 6125 | 2.34k | specs.width != 0 || specs.precision != 0; | 6126 | | | 6127 | | // Read prefix | 6128 | 2.34k | auto it = rng.begin(); | 6129 | 2.34k | std::ptrdiff_t prefix_width = 0; | 6130 | 2.34k | if (specs.precision != 0) { | 6131 | 158 | auto max_width_view = take_width(rng, specs.precision); | 6132 | 158 | SCN_TRY(prefix_result, | 6133 | 158 | impl_prefix(max_width_view, rd.skip_ws_before_read())); | 6134 | 158 | it = prefix_result.first.base(); | 6135 | 158 | prefix_width = prefix_result.second; | 6136 | 158 | } | 6137 | 2.18k | else { | 6138 | 2.18k | SCN_TRY(prefix_result, impl_prefix(rng, rd.skip_ws_before_read())); | 6139 | 2.18k | std::tie(it, prefix_width) = prefix_result; | 6140 | 2.18k | } | 6141 | 2.34k | auto prefix_end_it = it; | 6142 | | | 6143 | | // Read value | 6144 | 2.34k | std::ptrdiff_t value_width = 0; | 6145 | 2.34k | if (specs.precision != 0) { | 6146 | 158 | if (specs.precision <= prefix_width) { | 6147 | 6 | return unexpected_scan_error( | 6148 | 6 | scan_error::invalid_scanned_value, | 6149 | 6 | "Too many fill characters before value, " | 6150 | 6 | "precision exceeded before reading value"); | 6151 | 6 | } | 6152 | | | 6153 | 152 | const auto initial_width = specs.precision - prefix_width; | 6154 | 152 | auto max_width_view = | 6155 | 152 | take_width(ranges::subrange{it, rng.end()}, initial_width); | 6156 | 152 | SCN_TRY(w_it, rd.read_specs(max_width_view, specs, value, loc)); | 6157 | 76 | it = w_it.base(); | 6158 | 76 | value_width = initial_width - w_it.count(); | 6159 | 76 | } | 6160 | 2.18k | else { | 6161 | 2.18k | SCN_TRY_ASSIGN(it, rd.read_specs(ranges::subrange{it, rng.end()}, | 6162 | 560 | specs, value, loc)); | 6163 | | | 6164 | 560 | if (need_skipped_width) { | 6165 | 298 | value_width = calculate_text_width( | 6166 | 298 | make_contiguous_buffer(ranges::subrange{prefix_end_it, it}) | 6167 | 298 | .view()); | 6168 | 298 | } | 6169 | 560 | } | 6170 | | | 6171 | | // Read postfix | 6172 | 636 | std::ptrdiff_t postfix_width = 0; | 6173 | 636 | if (it != rng.end()) { | 6174 | 368 | SCN_TRY(postfix_result, | 6175 | 368 | impl_postfix(ranges::subrange{it, rng.end()}, | 6176 | 368 | rd.skip_ws_before_read(), prefix_width, | 6177 | 368 | value_width)); | 6178 | 368 | std::tie(it, postfix_width) = postfix_result; | 6179 | 368 | } | 6180 | | | 6181 | 636 | if (auto e = check_widths_for_arg_reader(specs, prefix_width, | 6182 | 636 | value_width, postfix_width); | 6183 | 636 | !e) { | 6184 | 92 | return unexpected(e); | 6185 | 92 | } | 6186 | | | 6187 | 544 | return it; | 6188 | 636 | } |
_ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIwEEE4implINS1_22reader_impl_for_stringIwEENS0_6ranges6detail9subrange_8subrangeIPKwSE_EENSt3__112basic_stringIwNSG_11char_traitsIwEENSG_9allocatorIwEEEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SO_RT1_ Line | Count | Source | 6123 | 2.34k | { | 6124 | 2.34k | const bool need_skipped_width = | 6125 | 2.34k | specs.width != 0 || specs.precision != 0; | 6126 | | | 6127 | | // Read prefix | 6128 | 2.34k | auto it = rng.begin(); | 6129 | 2.34k | std::ptrdiff_t prefix_width = 0; | 6130 | 2.34k | if (specs.precision != 0) { | 6131 | 158 | auto max_width_view = take_width(rng, specs.precision); | 6132 | 158 | SCN_TRY(prefix_result, | 6133 | 158 | impl_prefix(max_width_view, rd.skip_ws_before_read())); | 6134 | 158 | it = prefix_result.first.base(); | 6135 | 158 | prefix_width = prefix_result.second; | 6136 | 158 | } | 6137 | 2.18k | else { | 6138 | 2.18k | SCN_TRY(prefix_result, impl_prefix(rng, rd.skip_ws_before_read())); | 6139 | 2.18k | std::tie(it, prefix_width) = prefix_result; | 6140 | 2.18k | } | 6141 | 2.34k | auto prefix_end_it = it; | 6142 | | | 6143 | | // Read value | 6144 | 2.34k | std::ptrdiff_t value_width = 0; | 6145 | 2.34k | if (specs.precision != 0) { | 6146 | 158 | if (specs.precision <= prefix_width) { | 6147 | 6 | return unexpected_scan_error( | 6148 | 6 | scan_error::invalid_scanned_value, | 6149 | 6 | "Too many fill characters before value, " | 6150 | 6 | "precision exceeded before reading value"); | 6151 | 6 | } | 6152 | | | 6153 | 152 | const auto initial_width = specs.precision - prefix_width; | 6154 | 152 | auto max_width_view = | 6155 | 152 | take_width(ranges::subrange{it, rng.end()}, initial_width); | 6156 | 152 | SCN_TRY(w_it, rd.read_specs(max_width_view, specs, value, loc)); | 6157 | 76 | it = w_it.base(); | 6158 | 76 | value_width = initial_width - w_it.count(); | 6159 | 76 | } | 6160 | 2.18k | else { | 6161 | 2.18k | SCN_TRY_ASSIGN(it, rd.read_specs(ranges::subrange{it, rng.end()}, | 6162 | 560 | specs, value, loc)); | 6163 | | | 6164 | 560 | if (need_skipped_width) { | 6165 | 298 | value_width = calculate_text_width( | 6166 | 298 | make_contiguous_buffer(ranges::subrange{prefix_end_it, it}) | 6167 | 298 | .view()); | 6168 | 298 | } | 6169 | 560 | } | 6170 | | | 6171 | | // Read postfix | 6172 | 636 | std::ptrdiff_t postfix_width = 0; | 6173 | 636 | if (it != rng.end()) { | 6174 | 368 | SCN_TRY(postfix_result, | 6175 | 368 | impl_postfix(ranges::subrange{it, rng.end()}, | 6176 | 368 | rd.skip_ws_before_read(), prefix_width, | 6177 | 368 | value_width)); | 6178 | 368 | std::tie(it, postfix_width) = postfix_result; | 6179 | 368 | } | 6180 | | | 6181 | 636 | if (auto e = check_widths_for_arg_reader(specs, prefix_width, | 6182 | 636 | value_width, postfix_width); | 6183 | 636 | !e) { | 6184 | 92 | return unexpected(e); | 6185 | 92 | } | 6186 | | | 6187 | 544 | return it; | 6188 | 636 | } |
Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIwEEE4implINS1_29reader_impl_for_regex_matchesIwEENS0_6ranges6detail9subrange_8subrangeIPKwSE_EENS0_19basic_regex_matchesIcEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SJ_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIwEEE4implINS1_29reader_impl_for_regex_matchesIwEENS0_6ranges6detail9subrange_8subrangeIPKwSE_EENS0_19basic_regex_matchesIwEEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SJ_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS1_29basic_contiguous_scan_contextIwEEE4implINS1_25reader_impl_for_monostateIwEENS0_6ranges6detail9subrange_8subrangeIPKwSE_EENS0_9monostateEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SI_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE4implINS1_23reader_impl_for_voidptrIwEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEPvEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SL_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE4implINS1_23reader_impl_for_voidptrIwEENSt3__117basic_string_viewIwNS9_11char_traitsIwEEEEPvEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE4implINS1_20reader_impl_for_boolIwEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEbEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE4implINS1_20reader_impl_for_boolIwEENSt3__117basic_string_viewIwNS9_11char_traitsIwEEEEbEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE4implINS1_20reader_impl_for_charIwEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEcEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE4implINS1_20reader_impl_for_charIwEENSt3__117basic_string_viewIwNS9_11char_traitsIwEEEEcEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE4implINS1_26reader_impl_for_code_pointIwEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEEDiEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SK_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE4implINS1_26reader_impl_for_code_pointIwEENSt3__117basic_string_viewIwNS9_11char_traitsIwEEEEDiEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SG_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE4implINS1_25reader_impl_for_monostateIwEENS0_6ranges6detail9subrange_8subrangeINS0_6detail17basic_scan_bufferIwE16forward_iteratorENS9_18default_sentinel_tEEENS0_9monostateEEENS0_13scan_expectedIDTclL_ZNS9_5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SL_RT1_ Unexecuted instantiation: _ZN3scn2v34impl10arg_readerINS0_18basic_scan_contextIwEEE4implINS1_25reader_impl_for_monostateIwEENSt3__117basic_string_viewIwNS9_11char_traitsIwEEEENS0_9monostateEEENS0_13scan_expectedIDTclL_ZNS0_6ranges5beginEEclsr3stdE7declvalIRT0_EEEEEERT_SH_RT1_ |
6189 | | |
6190 | | template <typename T> |
6191 | | scan_expected<iterator> operator()(T& value) |
6192 | 67.8k | { |
6193 | 67.8k | if constexpr (!detail::is_type_disabled<T> && |
6194 | 67.8k | std::is_same_v< |
6195 | 0 | context_type, |
6196 | 0 | basic_contiguous_scan_context<char_type>>) { |
6197 | 0 | auto rd = make_reader<T, char_type>(); |
6198 | 67.8k | if (auto e = rd.check_specs(specs); SCN_UNLIKELY(!e)) { |
6199 | 39.8k | return unexpected(e); |
6200 | 39.8k | } |
6201 | | |
6202 | 28.0k | return impl(rd, range, value); |
6203 | 67.8k | } |
6204 | 0 | else if constexpr (!detail::is_type_disabled<T>) { |
6205 | 0 | auto rd = make_reader<T, char_type>(); |
6206 | 0 | if (auto e = rd.check_specs(specs); SCN_UNLIKELY(!e)) { |
6207 | 0 | return unexpected(e); |
6208 | 0 | } |
6209 | | |
6210 | 0 | if (!is_segment_contiguous(range) || specs.precision != 0 || |
6211 | 0 | specs.width != 0) { |
6212 | 0 | return impl(rd, range, value); |
6213 | 0 | } |
6214 | | |
6215 | 0 | auto crange = get_as_contiguous(range); |
6216 | 0 | SCN_TRY(it, impl(rd, crange, value)); |
6217 | 0 | return ranges::next(range.begin(), |
6218 | 0 | ranges::distance(crange.begin(), it)); |
6219 | 0 | } |
6220 | 67.8k | else { |
6221 | 67.8k | SCN_EXPECT(false); |
6222 | 67.8k | SCN_UNREACHABLE; |
6223 | 67.8k | } |
6224 | 67.8k | } Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::arg_reader<scn::v3::basic_scan_context<char> >::operator()<char>(char&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::arg_reader<scn::v3::basic_scan_context<char> >::operator()<signed char>(signed char&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::arg_reader<scn::v3::basic_scan_context<char> >::operator()<short>(short&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::arg_reader<scn::v3::basic_scan_context<char> >::operator()<int>(int&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::arg_reader<scn::v3::basic_scan_context<char> >::operator()<long>(long&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::arg_reader<scn::v3::basic_scan_context<char> >::operator()<long long>(long long&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::arg_reader<scn::v3::basic_scan_context<char> >::operator()<unsigned char>(unsigned char&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::arg_reader<scn::v3::basic_scan_context<char> >::operator()<unsigned short>(unsigned short&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::arg_reader<scn::v3::basic_scan_context<char> >::operator()<unsigned int>(unsigned int&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::arg_reader<scn::v3::basic_scan_context<char> >::operator()<unsigned long>(unsigned long&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::arg_reader<scn::v3::basic_scan_context<char> >::operator()<unsigned long long>(unsigned long long&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::arg_reader<scn::v3::basic_scan_context<char> >::operator()<float>(float&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::arg_reader<scn::v3::basic_scan_context<char> >::operator()<double>(double&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::arg_reader<scn::v3::basic_scan_context<char> >::operator()<long double>(long double&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::arg_reader<scn::v3::basic_scan_context<char> >::operator()<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::arg_reader<scn::v3::basic_scan_context<char> >::operator()<std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> > >(std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> >&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::arg_reader<scn::v3::basic_scan_context<char> >::operator()<std::__1::basic_string_view<char, std::__1::char_traits<char> > >(std::__1::basic_string_view<char, std::__1::char_traits<char> >&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::arg_reader<scn::v3::basic_scan_context<char> >::operator()<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >(std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> >&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::arg_reader<scn::v3::basic_scan_context<char> >::operator()<scn::v3::basic_regex_matches<char> >(scn::v3::basic_regex_matches<char>&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::arg_reader<scn::v3::basic_scan_context<char> >::operator()<scn::v3::basic_regex_matches<wchar_t> >(scn::v3::basic_regex_matches<wchar_t>&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::arg_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<wchar_t>(wchar_t&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::arg_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<signed char>(signed char&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::arg_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<short>(short&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::arg_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<int>(int&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::arg_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<long>(long&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::arg_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<long long>(long long&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::arg_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<unsigned char>(unsigned char&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::arg_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<unsigned short>(unsigned short&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::arg_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<unsigned int>(unsigned int&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::arg_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<unsigned long>(unsigned long&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::arg_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<unsigned long long>(unsigned long long&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::arg_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<float>(float&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::arg_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<double>(double&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::arg_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<long double>(long double&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::arg_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::arg_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> > >(std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> >&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::arg_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<std::__1::basic_string_view<char, std::__1::char_traits<char> > >(std::__1::basic_string_view<char, std::__1::char_traits<char> >&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::arg_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >(std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> >&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::arg_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<scn::v3::basic_regex_matches<char> >(scn::v3::basic_regex_matches<char>&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::arg_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<scn::v3::basic_regex_matches<wchar_t> >(scn::v3::basic_regex_matches<wchar_t>&) Unexecuted instantiation: scn::v3::scan_expected<char const*> scn::v3::impl::arg_reader<scn::v3::impl::basic_contiguous_scan_context<char> >::operator()<signed char>(signed char&) Unexecuted instantiation: scn::v3::scan_expected<char const*> scn::v3::impl::arg_reader<scn::v3::impl::basic_contiguous_scan_context<char> >::operator()<short>(short&) scn::v3::scan_expected<char const*> scn::v3::impl::arg_reader<scn::v3::impl::basic_contiguous_scan_context<char> >::operator()<int>(int&) Line | Count | Source | 6192 | 5.13k | { | 6193 | 5.13k | if constexpr (!detail::is_type_disabled<T> && | 6194 | 5.13k | std::is_same_v< | 6195 | 0 | context_type, | 6196 | 5.13k | basic_contiguous_scan_context<char_type>>) { | 6197 | 5.13k | auto rd = make_reader<T, char_type>(); | 6198 | 5.13k | if (auto e = rd.check_specs(specs); SCN_UNLIKELY(!e)) { | 6199 | 4.58k | return unexpected(e); | 6200 | 4.58k | } | 6201 | | | 6202 | 544 | return impl(rd, range, value); | 6203 | 5.13k | } | 6204 | 5.13k | else if constexpr (!detail::is_type_disabled<T>) { | 6205 | 5.13k | auto rd = make_reader<T, char_type>(); | 6206 | 5.13k | if (auto e = rd.check_specs(specs); SCN_UNLIKELY(!e)) { | 6207 | 5.13k | return unexpected(e); | 6208 | 5.13k | } | 6209 | | | 6210 | 5.13k | if (!is_segment_contiguous(range) || specs.precision != 0 || | 6211 | 5.13k | specs.width != 0) { | 6212 | 5.13k | return impl(rd, range, value); | 6213 | 5.13k | } | 6214 | | | 6215 | 5.13k | auto crange = get_as_contiguous(range); | 6216 | 5.13k | SCN_TRY(it, impl(rd, crange, value)); | 6217 | 5.13k | return ranges::next(range.begin(), | 6218 | 5.13k | ranges::distance(crange.begin(), it)); | 6219 | 5.13k | } | 6220 | 5.13k | else { | 6221 | 5.13k | SCN_EXPECT(false); | 6222 | 5.13k | SCN_UNREACHABLE; | 6223 | 5.13k | } | 6224 | 5.13k | } |
Unexecuted instantiation: scn::v3::scan_expected<char const*> scn::v3::impl::arg_reader<scn::v3::impl::basic_contiguous_scan_context<char> >::operator()<long>(long&) Unexecuted instantiation: scn::v3::scan_expected<char const*> scn::v3::impl::arg_reader<scn::v3::impl::basic_contiguous_scan_context<char> >::operator()<long long>(long long&) Unexecuted instantiation: scn::v3::scan_expected<char const*> scn::v3::impl::arg_reader<scn::v3::impl::basic_contiguous_scan_context<char> >::operator()<unsigned char>(unsigned char&) Unexecuted instantiation: scn::v3::scan_expected<char const*> scn::v3::impl::arg_reader<scn::v3::impl::basic_contiguous_scan_context<char> >::operator()<unsigned short>(unsigned short&) scn::v3::scan_expected<char const*> scn::v3::impl::arg_reader<scn::v3::impl::basic_contiguous_scan_context<char> >::operator()<unsigned int>(unsigned int&) Line | Count | Source | 6192 | 5.13k | { | 6193 | 5.13k | if constexpr (!detail::is_type_disabled<T> && | 6194 | 5.13k | std::is_same_v< | 6195 | 0 | context_type, | 6196 | 5.13k | basic_contiguous_scan_context<char_type>>) { | 6197 | 5.13k | auto rd = make_reader<T, char_type>(); | 6198 | 5.13k | if (auto e = rd.check_specs(specs); SCN_UNLIKELY(!e)) { | 6199 | 4.58k | return unexpected(e); | 6200 | 4.58k | } | 6201 | | | 6202 | 544 | return impl(rd, range, value); | 6203 | 5.13k | } | 6204 | 5.13k | else if constexpr (!detail::is_type_disabled<T>) { | 6205 | 5.13k | auto rd = make_reader<T, char_type>(); | 6206 | 5.13k | if (auto e = rd.check_specs(specs); SCN_UNLIKELY(!e)) { | 6207 | 5.13k | return unexpected(e); | 6208 | 5.13k | } | 6209 | | | 6210 | 5.13k | if (!is_segment_contiguous(range) || specs.precision != 0 || | 6211 | 5.13k | specs.width != 0) { | 6212 | 5.13k | return impl(rd, range, value); | 6213 | 5.13k | } | 6214 | | | 6215 | 5.13k | auto crange = get_as_contiguous(range); | 6216 | 5.13k | SCN_TRY(it, impl(rd, crange, value)); | 6217 | 5.13k | return ranges::next(range.begin(), | 6218 | 5.13k | ranges::distance(crange.begin(), it)); | 6219 | 5.13k | } | 6220 | 5.13k | else { | 6221 | 5.13k | SCN_EXPECT(false); | 6222 | 5.13k | SCN_UNREACHABLE; | 6223 | 5.13k | } | 6224 | 5.13k | } |
Unexecuted instantiation: scn::v3::scan_expected<char const*> scn::v3::impl::arg_reader<scn::v3::impl::basic_contiguous_scan_context<char> >::operator()<unsigned long>(unsigned long&) Unexecuted instantiation: scn::v3::scan_expected<char const*> scn::v3::impl::arg_reader<scn::v3::impl::basic_contiguous_scan_context<char> >::operator()<unsigned long long>(unsigned long long&) scn::v3::scan_expected<char const*> scn::v3::impl::arg_reader<scn::v3::impl::basic_contiguous_scan_context<char> >::operator()<void*>(void*&) Line | Count | Source | 6192 | 5.09k | { | 6193 | 5.09k | if constexpr (!detail::is_type_disabled<T> && | 6194 | 5.09k | std::is_same_v< | 6195 | 0 | context_type, | 6196 | 5.09k | basic_contiguous_scan_context<char_type>>) { | 6197 | 5.09k | auto rd = make_reader<T, char_type>(); | 6198 | 5.09k | if (auto e = rd.check_specs(specs); SCN_UNLIKELY(!e)) { | 6199 | 4.62k | return unexpected(e); | 6200 | 4.62k | } | 6201 | | | 6202 | 474 | return impl(rd, range, value); | 6203 | 5.09k | } | 6204 | 5.09k | else if constexpr (!detail::is_type_disabled<T>) { | 6205 | 5.09k | auto rd = make_reader<T, char_type>(); | 6206 | 5.09k | if (auto e = rd.check_specs(specs); SCN_UNLIKELY(!e)) { | 6207 | 5.09k | return unexpected(e); | 6208 | 5.09k | } | 6209 | | | 6210 | 5.09k | if (!is_segment_contiguous(range) || specs.precision != 0 || | 6211 | 5.09k | specs.width != 0) { | 6212 | 5.09k | return impl(rd, range, value); | 6213 | 5.09k | } | 6214 | | | 6215 | 5.09k | auto crange = get_as_contiguous(range); | 6216 | 5.09k | SCN_TRY(it, impl(rd, crange, value)); | 6217 | 5.09k | return ranges::next(range.begin(), | 6218 | 5.09k | ranges::distance(crange.begin(), it)); | 6219 | 5.09k | } | 6220 | 5.09k | else { | 6221 | 5.09k | SCN_EXPECT(false); | 6222 | 5.09k | SCN_UNREACHABLE; | 6223 | 5.09k | } | 6224 | 5.09k | } |
scn::v3::scan_expected<char const*> scn::v3::impl::arg_reader<scn::v3::impl::basic_contiguous_scan_context<char> >::operator()<bool>(bool&) Line | Count | Source | 6192 | 5.13k | { | 6193 | 5.13k | if constexpr (!detail::is_type_disabled<T> && | 6194 | 5.13k | std::is_same_v< | 6195 | 0 | context_type, | 6196 | 5.13k | basic_contiguous_scan_context<char_type>>) { | 6197 | 5.13k | auto rd = make_reader<T, char_type>(); | 6198 | 5.13k | if (auto e = rd.check_specs(specs); SCN_UNLIKELY(!e)) { | 6199 | 4.40k | return unexpected(e); | 6200 | 4.40k | } | 6201 | | | 6202 | 722 | return impl(rd, range, value); | 6203 | 5.13k | } | 6204 | 5.13k | else if constexpr (!detail::is_type_disabled<T>) { | 6205 | 5.13k | auto rd = make_reader<T, char_type>(); | 6206 | 5.13k | if (auto e = rd.check_specs(specs); SCN_UNLIKELY(!e)) { | 6207 | 5.13k | return unexpected(e); | 6208 | 5.13k | } | 6209 | | | 6210 | 5.13k | if (!is_segment_contiguous(range) || specs.precision != 0 || | 6211 | 5.13k | specs.width != 0) { | 6212 | 5.13k | return impl(rd, range, value); | 6213 | 5.13k | } | 6214 | | | 6215 | 5.13k | auto crange = get_as_contiguous(range); | 6216 | 5.13k | SCN_TRY(it, impl(rd, crange, value)); | 6217 | 5.13k | return ranges::next(range.begin(), | 6218 | 5.13k | ranges::distance(crange.begin(), it)); | 6219 | 5.13k | } | 6220 | 5.13k | else { | 6221 | 5.13k | SCN_EXPECT(false); | 6222 | 5.13k | SCN_UNREACHABLE; | 6223 | 5.13k | } | 6224 | 5.13k | } |
scn::v3::scan_expected<char const*> scn::v3::impl::arg_reader<scn::v3::impl::basic_contiguous_scan_context<char> >::operator()<char>(char&) Line | Count | Source | 6192 | 5.09k | { | 6193 | 5.09k | if constexpr (!detail::is_type_disabled<T> && | 6194 | 5.09k | std::is_same_v< | 6195 | 0 | context_type, | 6196 | 5.09k | basic_contiguous_scan_context<char_type>>) { | 6197 | 5.09k | auto rd = make_reader<T, char_type>(); | 6198 | 5.09k | if (auto e = rd.check_specs(specs); SCN_UNLIKELY(!e)) { | 6199 | 4.57k | return unexpected(e); | 6200 | 4.57k | } | 6201 | | | 6202 | 524 | return impl(rd, range, value); | 6203 | 5.09k | } | 6204 | 5.09k | else if constexpr (!detail::is_type_disabled<T>) { | 6205 | 5.09k | auto rd = make_reader<T, char_type>(); | 6206 | 5.09k | if (auto e = rd.check_specs(specs); SCN_UNLIKELY(!e)) { | 6207 | 5.09k | return unexpected(e); | 6208 | 5.09k | } | 6209 | | | 6210 | 5.09k | if (!is_segment_contiguous(range) || specs.precision != 0 || | 6211 | 5.09k | specs.width != 0) { | 6212 | 5.09k | return impl(rd, range, value); | 6213 | 5.09k | } | 6214 | | | 6215 | 5.09k | auto crange = get_as_contiguous(range); | 6216 | 5.09k | SCN_TRY(it, impl(rd, crange, value)); | 6217 | 5.09k | return ranges::next(range.begin(), | 6218 | 5.09k | ranges::distance(crange.begin(), it)); | 6219 | 5.09k | } | 6220 | 5.09k | else { | 6221 | 5.09k | SCN_EXPECT(false); | 6222 | 5.09k | SCN_UNREACHABLE; | 6223 | 5.09k | } | 6224 | 5.09k | } |
Unexecuted instantiation: scn::v3::scan_expected<char const*> scn::v3::impl::arg_reader<scn::v3::impl::basic_contiguous_scan_context<char> >::operator()<wchar_t>(wchar_t&) Unexecuted instantiation: scn::v3::scan_expected<char const*> scn::v3::impl::arg_reader<scn::v3::impl::basic_contiguous_scan_context<char> >::operator()<char32_t>(char32_t&) Unexecuted instantiation: scn::v3::scan_expected<char const*> scn::v3::impl::arg_reader<scn::v3::impl::basic_contiguous_scan_context<char> >::operator()<float>(float&) scn::v3::scan_expected<char const*> scn::v3::impl::arg_reader<scn::v3::impl::basic_contiguous_scan_context<char> >::operator()<double>(double&) Line | Count | Source | 6192 | 5.13k | { | 6193 | 5.13k | if constexpr (!detail::is_type_disabled<T> && | 6194 | 5.13k | std::is_same_v< | 6195 | 0 | context_type, | 6196 | 5.13k | basic_contiguous_scan_context<char_type>>) { | 6197 | 5.13k | auto rd = make_reader<T, char_type>(); | 6198 | 5.13k | if (auto e = rd.check_specs(specs); SCN_UNLIKELY(!e)) { | 6199 | 4.57k | return unexpected(e); | 6200 | 4.57k | } | 6201 | | | 6202 | 552 | return impl(rd, range, value); | 6203 | 5.13k | } | 6204 | 5.13k | else if constexpr (!detail::is_type_disabled<T>) { | 6205 | 5.13k | auto rd = make_reader<T, char_type>(); | 6206 | 5.13k | if (auto e = rd.check_specs(specs); SCN_UNLIKELY(!e)) { | 6207 | 5.13k | return unexpected(e); | 6208 | 5.13k | } | 6209 | | | 6210 | 5.13k | if (!is_segment_contiguous(range) || specs.precision != 0 || | 6211 | 5.13k | specs.width != 0) { | 6212 | 5.13k | return impl(rd, range, value); | 6213 | 5.13k | } | 6214 | | | 6215 | 5.13k | auto crange = get_as_contiguous(range); | 6216 | 5.13k | SCN_TRY(it, impl(rd, crange, value)); | 6217 | 5.13k | return ranges::next(range.begin(), | 6218 | 5.13k | ranges::distance(crange.begin(), it)); | 6219 | 5.13k | } | 6220 | 5.13k | else { | 6221 | 5.13k | SCN_EXPECT(false); | 6222 | 5.13k | SCN_UNREACHABLE; | 6223 | 5.13k | } | 6224 | 5.13k | } |
Unexecuted instantiation: scn::v3::scan_expected<char const*> scn::v3::impl::arg_reader<scn::v3::impl::basic_contiguous_scan_context<char> >::operator()<long double>(long double&) scn::v3::scan_expected<char const*> scn::v3::impl::arg_reader<scn::v3::impl::basic_contiguous_scan_context<char> >::operator()<std::__1::basic_string_view<char, std::__1::char_traits<char> > >(std::__1::basic_string_view<char, std::__1::char_traits<char> >&) Line | Count | Source | 6192 | 5.09k | { | 6193 | 5.09k | if constexpr (!detail::is_type_disabled<T> && | 6194 | 5.09k | std::is_same_v< | 6195 | 0 | context_type, | 6196 | 5.09k | basic_contiguous_scan_context<char_type>>) { | 6197 | 5.09k | auto rd = make_reader<T, char_type>(); | 6198 | 5.09k | if (auto e = rd.check_specs(specs); SCN_UNLIKELY(!e)) { | 6199 | 130 | return unexpected(e); | 6200 | 130 | } | 6201 | | | 6202 | 4.96k | return impl(rd, range, value); | 6203 | 5.09k | } | 6204 | 5.09k | else if constexpr (!detail::is_type_disabled<T>) { | 6205 | 5.09k | auto rd = make_reader<T, char_type>(); | 6206 | 5.09k | if (auto e = rd.check_specs(specs); SCN_UNLIKELY(!e)) { | 6207 | 5.09k | return unexpected(e); | 6208 | 5.09k | } | 6209 | | | 6210 | 5.09k | if (!is_segment_contiguous(range) || specs.precision != 0 || | 6211 | 5.09k | specs.width != 0) { | 6212 | 5.09k | return impl(rd, range, value); | 6213 | 5.09k | } | 6214 | | | 6215 | 5.09k | auto crange = get_as_contiguous(range); | 6216 | 5.09k | SCN_TRY(it, impl(rd, crange, value)); | 6217 | 5.09k | return ranges::next(range.begin(), | 6218 | 5.09k | ranges::distance(crange.begin(), it)); | 6219 | 5.09k | } | 6220 | 5.09k | else { | 6221 | 5.09k | SCN_EXPECT(false); | 6222 | 5.09k | SCN_UNREACHABLE; | 6223 | 5.09k | } | 6224 | 5.09k | } |
scn::v3::scan_expected<char const*> scn::v3::impl::arg_reader<scn::v3::impl::basic_contiguous_scan_context<char> >::operator()<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) Line | Count | Source | 6192 | 5.09k | { | 6193 | 5.09k | if constexpr (!detail::is_type_disabled<T> && | 6194 | 5.09k | std::is_same_v< | 6195 | 0 | context_type, | 6196 | 5.09k | basic_contiguous_scan_context<char_type>>) { | 6197 | 5.09k | auto rd = make_reader<T, char_type>(); | 6198 | 5.09k | if (auto e = rd.check_specs(specs); SCN_UNLIKELY(!e)) { | 6199 | 130 | return unexpected(e); | 6200 | 130 | } | 6201 | | | 6202 | 4.96k | return impl(rd, range, value); | 6203 | 5.09k | } | 6204 | 5.09k | else if constexpr (!detail::is_type_disabled<T>) { | 6205 | 5.09k | auto rd = make_reader<T, char_type>(); | 6206 | 5.09k | if (auto e = rd.check_specs(specs); SCN_UNLIKELY(!e)) { | 6207 | 5.09k | return unexpected(e); | 6208 | 5.09k | } | 6209 | | | 6210 | 5.09k | if (!is_segment_contiguous(range) || specs.precision != 0 || | 6211 | 5.09k | specs.width != 0) { | 6212 | 5.09k | return impl(rd, range, value); | 6213 | 5.09k | } | 6214 | | | 6215 | 5.09k | auto crange = get_as_contiguous(range); | 6216 | 5.09k | SCN_TRY(it, impl(rd, crange, value)); | 6217 | 5.09k | return ranges::next(range.begin(), | 6218 | 5.09k | ranges::distance(crange.begin(), it)); | 6219 | 5.09k | } | 6220 | 5.09k | else { | 6221 | 5.09k | SCN_EXPECT(false); | 6222 | 5.09k | SCN_UNREACHABLE; | 6223 | 5.09k | } | 6224 | 5.09k | } |
Unexecuted instantiation: scn::v3::scan_expected<char const*> scn::v3::impl::arg_reader<scn::v3::impl::basic_contiguous_scan_context<char> >::operator()<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >(std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> >&) scn::v3::scan_expected<char const*> scn::v3::impl::arg_reader<scn::v3::impl::basic_contiguous_scan_context<char> >::operator()<std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> > >(std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> >&) Line | Count | Source | 6192 | 5.09k | { | 6193 | 5.09k | if constexpr (!detail::is_type_disabled<T> && | 6194 | 5.09k | std::is_same_v< | 6195 | 0 | context_type, | 6196 | 5.09k | basic_contiguous_scan_context<char_type>>) { | 6197 | 5.09k | auto rd = make_reader<T, char_type>(); | 6198 | 5.09k | if (auto e = rd.check_specs(specs); SCN_UNLIKELY(!e)) { | 6199 | 130 | return unexpected(e); | 6200 | 130 | } | 6201 | | | 6202 | 4.96k | return impl(rd, range, value); | 6203 | 5.09k | } | 6204 | 5.09k | else if constexpr (!detail::is_type_disabled<T>) { | 6205 | 5.09k | auto rd = make_reader<T, char_type>(); | 6206 | 5.09k | if (auto e = rd.check_specs(specs); SCN_UNLIKELY(!e)) { | 6207 | 5.09k | return unexpected(e); | 6208 | 5.09k | } | 6209 | | | 6210 | 5.09k | if (!is_segment_contiguous(range) || specs.precision != 0 || | 6211 | 5.09k | specs.width != 0) { | 6212 | 5.09k | return impl(rd, range, value); | 6213 | 5.09k | } | 6214 | | | 6215 | 5.09k | auto crange = get_as_contiguous(range); | 6216 | 5.09k | SCN_TRY(it, impl(rd, crange, value)); | 6217 | 5.09k | return ranges::next(range.begin(), | 6218 | 5.09k | ranges::distance(crange.begin(), it)); | 6219 | 5.09k | } | 6220 | 5.09k | else { | 6221 | 5.09k | SCN_EXPECT(false); | 6222 | 5.09k | SCN_UNREACHABLE; | 6223 | 5.09k | } | 6224 | 5.09k | } |
Unexecuted instantiation: scn::v3::scan_expected<char const*> scn::v3::impl::arg_reader<scn::v3::impl::basic_contiguous_scan_context<char> >::operator()<scn::v3::basic_regex_matches<char> >(scn::v3::basic_regex_matches<char>&) Unexecuted instantiation: scn::v3::scan_expected<char const*> scn::v3::impl::arg_reader<scn::v3::impl::basic_contiguous_scan_context<char> >::operator()<scn::v3::basic_regex_matches<wchar_t> >(scn::v3::basic_regex_matches<wchar_t>&) Unexecuted instantiation: scn::v3::scan_expected<char const*> scn::v3::impl::arg_reader<scn::v3::impl::basic_contiguous_scan_context<char> >::operator()<scn::v3::monostate>(scn::v3::monostate&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::arg_reader<scn::v3::basic_scan_context<char> >::operator()<void*>(void*&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::arg_reader<scn::v3::basic_scan_context<char> >::operator()<bool>(bool&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::arg_reader<scn::v3::basic_scan_context<char> >::operator()<wchar_t>(wchar_t&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::arg_reader<scn::v3::basic_scan_context<char> >::operator()<char32_t>(char32_t&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::arg_reader<scn::v3::basic_scan_context<char> >::operator()<scn::v3::monostate>(scn::v3::monostate&) Unexecuted instantiation: scn::v3::scan_expected<wchar_t const*> scn::v3::impl::arg_reader<scn::v3::impl::basic_contiguous_scan_context<wchar_t> >::operator()<signed char>(signed char&) Unexecuted instantiation: scn::v3::scan_expected<wchar_t const*> scn::v3::impl::arg_reader<scn::v3::impl::basic_contiguous_scan_context<wchar_t> >::operator()<short>(short&) scn::v3::scan_expected<wchar_t const*> scn::v3::impl::arg_reader<scn::v3::impl::basic_contiguous_scan_context<wchar_t> >::operator()<int>(int&) Line | Count | Source | 6192 | 2.44k | { | 6193 | 2.44k | if constexpr (!detail::is_type_disabled<T> && | 6194 | 2.44k | std::is_same_v< | 6195 | 0 | context_type, | 6196 | 2.44k | basic_contiguous_scan_context<char_type>>) { | 6197 | 2.44k | auto rd = make_reader<T, char_type>(); | 6198 | 2.44k | if (auto e = rd.check_specs(specs); SCN_UNLIKELY(!e)) { | 6199 | 1.97k | return unexpected(e); | 6200 | 1.97k | } | 6201 | | | 6202 | 470 | return impl(rd, range, value); | 6203 | 2.44k | } | 6204 | 2.44k | else if constexpr (!detail::is_type_disabled<T>) { | 6205 | 2.44k | auto rd = make_reader<T, char_type>(); | 6206 | 2.44k | if (auto e = rd.check_specs(specs); SCN_UNLIKELY(!e)) { | 6207 | 2.44k | return unexpected(e); | 6208 | 2.44k | } | 6209 | | | 6210 | 2.44k | if (!is_segment_contiguous(range) || specs.precision != 0 || | 6211 | 2.44k | specs.width != 0) { | 6212 | 2.44k | return impl(rd, range, value); | 6213 | 2.44k | } | 6214 | | | 6215 | 2.44k | auto crange = get_as_contiguous(range); | 6216 | 2.44k | SCN_TRY(it, impl(rd, crange, value)); | 6217 | 2.44k | return ranges::next(range.begin(), | 6218 | 2.44k | ranges::distance(crange.begin(), it)); | 6219 | 2.44k | } | 6220 | 2.44k | else { | 6221 | 2.44k | SCN_EXPECT(false); | 6222 | 2.44k | SCN_UNREACHABLE; | 6223 | 2.44k | } | 6224 | 2.44k | } |
Unexecuted instantiation: scn::v3::scan_expected<wchar_t const*> scn::v3::impl::arg_reader<scn::v3::impl::basic_contiguous_scan_context<wchar_t> >::operator()<long>(long&) Unexecuted instantiation: scn::v3::scan_expected<wchar_t const*> scn::v3::impl::arg_reader<scn::v3::impl::basic_contiguous_scan_context<wchar_t> >::operator()<long long>(long long&) Unexecuted instantiation: scn::v3::scan_expected<wchar_t const*> scn::v3::impl::arg_reader<scn::v3::impl::basic_contiguous_scan_context<wchar_t> >::operator()<unsigned char>(unsigned char&) Unexecuted instantiation: scn::v3::scan_expected<wchar_t const*> scn::v3::impl::arg_reader<scn::v3::impl::basic_contiguous_scan_context<wchar_t> >::operator()<unsigned short>(unsigned short&) scn::v3::scan_expected<wchar_t const*> scn::v3::impl::arg_reader<scn::v3::impl::basic_contiguous_scan_context<wchar_t> >::operator()<unsigned int>(unsigned int&) Line | Count | Source | 6192 | 2.44k | { | 6193 | 2.44k | if constexpr (!detail::is_type_disabled<T> && | 6194 | 2.44k | std::is_same_v< | 6195 | 0 | context_type, | 6196 | 2.44k | basic_contiguous_scan_context<char_type>>) { | 6197 | 2.44k | auto rd = make_reader<T, char_type>(); | 6198 | 2.44k | if (auto e = rd.check_specs(specs); SCN_UNLIKELY(!e)) { | 6199 | 1.97k | return unexpected(e); | 6200 | 1.97k | } | 6201 | | | 6202 | 470 | return impl(rd, range, value); | 6203 | 2.44k | } | 6204 | 2.44k | else if constexpr (!detail::is_type_disabled<T>) { | 6205 | 2.44k | auto rd = make_reader<T, char_type>(); | 6206 | 2.44k | if (auto e = rd.check_specs(specs); SCN_UNLIKELY(!e)) { | 6207 | 2.44k | return unexpected(e); | 6208 | 2.44k | } | 6209 | | | 6210 | 2.44k | if (!is_segment_contiguous(range) || specs.precision != 0 || | 6211 | 2.44k | specs.width != 0) { | 6212 | 2.44k | return impl(rd, range, value); | 6213 | 2.44k | } | 6214 | | | 6215 | 2.44k | auto crange = get_as_contiguous(range); | 6216 | 2.44k | SCN_TRY(it, impl(rd, crange, value)); | 6217 | 2.44k | return ranges::next(range.begin(), | 6218 | 2.44k | ranges::distance(crange.begin(), it)); | 6219 | 2.44k | } | 6220 | 2.44k | else { | 6221 | 2.44k | SCN_EXPECT(false); | 6222 | 2.44k | SCN_UNREACHABLE; | 6223 | 2.44k | } | 6224 | 2.44k | } |
Unexecuted instantiation: scn::v3::scan_expected<wchar_t const*> scn::v3::impl::arg_reader<scn::v3::impl::basic_contiguous_scan_context<wchar_t> >::operator()<unsigned long>(unsigned long&) Unexecuted instantiation: scn::v3::scan_expected<wchar_t const*> scn::v3::impl::arg_reader<scn::v3::impl::basic_contiguous_scan_context<wchar_t> >::operator()<unsigned long long>(unsigned long long&) scn::v3::scan_expected<wchar_t const*> scn::v3::impl::arg_reader<scn::v3::impl::basic_contiguous_scan_context<wchar_t> >::operator()<void*>(void*&) Line | Count | Source | 6192 | 2.42k | { | 6193 | 2.42k | if constexpr (!detail::is_type_disabled<T> && | 6194 | 2.42k | std::is_same_v< | 6195 | 0 | context_type, | 6196 | 2.42k | basic_contiguous_scan_context<char_type>>) { | 6197 | 2.42k | auto rd = make_reader<T, char_type>(); | 6198 | 2.42k | if (auto e = rd.check_specs(specs); SCN_UNLIKELY(!e)) { | 6199 | 2.00k | return unexpected(e); | 6200 | 2.00k | } | 6201 | | | 6202 | 414 | return impl(rd, range, value); | 6203 | 2.42k | } | 6204 | 2.42k | else if constexpr (!detail::is_type_disabled<T>) { | 6205 | 2.42k | auto rd = make_reader<T, char_type>(); | 6206 | 2.42k | if (auto e = rd.check_specs(specs); SCN_UNLIKELY(!e)) { | 6207 | 2.42k | return unexpected(e); | 6208 | 2.42k | } | 6209 | | | 6210 | 2.42k | if (!is_segment_contiguous(range) || specs.precision != 0 || | 6211 | 2.42k | specs.width != 0) { | 6212 | 2.42k | return impl(rd, range, value); | 6213 | 2.42k | } | 6214 | | | 6215 | 2.42k | auto crange = get_as_contiguous(range); | 6216 | 2.42k | SCN_TRY(it, impl(rd, crange, value)); | 6217 | 2.42k | return ranges::next(range.begin(), | 6218 | 2.42k | ranges::distance(crange.begin(), it)); | 6219 | 2.42k | } | 6220 | 2.42k | else { | 6221 | 2.42k | SCN_EXPECT(false); | 6222 | 2.42k | SCN_UNREACHABLE; | 6223 | 2.42k | } | 6224 | 2.42k | } |
scn::v3::scan_expected<wchar_t const*> scn::v3::impl::arg_reader<scn::v3::impl::basic_contiguous_scan_context<wchar_t> >::operator()<bool>(bool&) Line | Count | Source | 6192 | 2.44k | { | 6193 | 2.44k | if constexpr (!detail::is_type_disabled<T> && | 6194 | 2.44k | std::is_same_v< | 6195 | 0 | context_type, | 6196 | 2.44k | basic_contiguous_scan_context<char_type>>) { | 6197 | 2.44k | auto rd = make_reader<T, char_type>(); | 6198 | 2.44k | if (auto e = rd.check_specs(specs); SCN_UNLIKELY(!e)) { | 6199 | 1.90k | return unexpected(e); | 6200 | 1.90k | } | 6201 | | | 6202 | 540 | return impl(rd, range, value); | 6203 | 2.44k | } | 6204 | 2.44k | else if constexpr (!detail::is_type_disabled<T>) { | 6205 | 2.44k | auto rd = make_reader<T, char_type>(); | 6206 | 2.44k | if (auto e = rd.check_specs(specs); SCN_UNLIKELY(!e)) { | 6207 | 2.44k | return unexpected(e); | 6208 | 2.44k | } | 6209 | | | 6210 | 2.44k | if (!is_segment_contiguous(range) || specs.precision != 0 || | 6211 | 2.44k | specs.width != 0) { | 6212 | 2.44k | return impl(rd, range, value); | 6213 | 2.44k | } | 6214 | | | 6215 | 2.44k | auto crange = get_as_contiguous(range); | 6216 | 2.44k | SCN_TRY(it, impl(rd, crange, value)); | 6217 | 2.44k | return ranges::next(range.begin(), | 6218 | 2.44k | ranges::distance(crange.begin(), it)); | 6219 | 2.44k | } | 6220 | 2.44k | else { | 6221 | 2.44k | SCN_EXPECT(false); | 6222 | 2.44k | SCN_UNREACHABLE; | 6223 | 2.44k | } | 6224 | 2.44k | } |
Unexecuted instantiation: scn::v3::scan_expected<wchar_t const*> scn::v3::impl::arg_reader<scn::v3::impl::basic_contiguous_scan_context<wchar_t> >::operator()<char>(char&) scn::v3::scan_expected<wchar_t const*> scn::v3::impl::arg_reader<scn::v3::impl::basic_contiguous_scan_context<wchar_t> >::operator()<wchar_t>(wchar_t&) Line | Count | Source | 6192 | 2.42k | { | 6193 | 2.42k | if constexpr (!detail::is_type_disabled<T> && | 6194 | 2.42k | std::is_same_v< | 6195 | 0 | context_type, | 6196 | 2.42k | basic_contiguous_scan_context<char_type>>) { | 6197 | 2.42k | auto rd = make_reader<T, char_type>(); | 6198 | 2.42k | if (auto e = rd.check_specs(specs); SCN_UNLIKELY(!e)) { | 6199 | 1.97k | return unexpected(e); | 6200 | 1.97k | } | 6201 | | | 6202 | 448 | return impl(rd, range, value); | 6203 | 2.42k | } | 6204 | 2.42k | else if constexpr (!detail::is_type_disabled<T>) { | 6205 | 2.42k | auto rd = make_reader<T, char_type>(); | 6206 | 2.42k | if (auto e = rd.check_specs(specs); SCN_UNLIKELY(!e)) { | 6207 | 2.42k | return unexpected(e); | 6208 | 2.42k | } | 6209 | | | 6210 | 2.42k | if (!is_segment_contiguous(range) || specs.precision != 0 || | 6211 | 2.42k | specs.width != 0) { | 6212 | 2.42k | return impl(rd, range, value); | 6213 | 2.42k | } | 6214 | | | 6215 | 2.42k | auto crange = get_as_contiguous(range); | 6216 | 2.42k | SCN_TRY(it, impl(rd, crange, value)); | 6217 | 2.42k | return ranges::next(range.begin(), | 6218 | 2.42k | ranges::distance(crange.begin(), it)); | 6219 | 2.42k | } | 6220 | 2.42k | else { | 6221 | 2.42k | SCN_EXPECT(false); | 6222 | 2.42k | SCN_UNREACHABLE; | 6223 | 2.42k | } | 6224 | 2.42k | } |
Unexecuted instantiation: scn::v3::scan_expected<wchar_t const*> scn::v3::impl::arg_reader<scn::v3::impl::basic_contiguous_scan_context<wchar_t> >::operator()<char32_t>(char32_t&) Unexecuted instantiation: scn::v3::scan_expected<wchar_t const*> scn::v3::impl::arg_reader<scn::v3::impl::basic_contiguous_scan_context<wchar_t> >::operator()<float>(float&) scn::v3::scan_expected<wchar_t const*> scn::v3::impl::arg_reader<scn::v3::impl::basic_contiguous_scan_context<wchar_t> >::operator()<double>(double&) Line | Count | Source | 6192 | 2.44k | { | 6193 | 2.44k | if constexpr (!detail::is_type_disabled<T> && | 6194 | 2.44k | std::is_same_v< | 6195 | 0 | context_type, | 6196 | 2.44k | basic_contiguous_scan_context<char_type>>) { | 6197 | 2.44k | auto rd = make_reader<T, char_type>(); | 6198 | 2.44k | if (auto e = rd.check_specs(specs); SCN_UNLIKELY(!e)) { | 6199 | 1.99k | return unexpected(e); | 6200 | 1.99k | } | 6201 | | | 6202 | 452 | return impl(rd, range, value); | 6203 | 2.44k | } | 6204 | 2.44k | else if constexpr (!detail::is_type_disabled<T>) { | 6205 | 2.44k | auto rd = make_reader<T, char_type>(); | 6206 | 2.44k | if (auto e = rd.check_specs(specs); SCN_UNLIKELY(!e)) { | 6207 | 2.44k | return unexpected(e); | 6208 | 2.44k | } | 6209 | | | 6210 | 2.44k | if (!is_segment_contiguous(range) || specs.precision != 0 || | 6211 | 2.44k | specs.width != 0) { | 6212 | 2.44k | return impl(rd, range, value); | 6213 | 2.44k | } | 6214 | | | 6215 | 2.44k | auto crange = get_as_contiguous(range); | 6216 | 2.44k | SCN_TRY(it, impl(rd, crange, value)); | 6217 | 2.44k | return ranges::next(range.begin(), | 6218 | 2.44k | ranges::distance(crange.begin(), it)); | 6219 | 2.44k | } | 6220 | 2.44k | else { | 6221 | 2.44k | SCN_EXPECT(false); | 6222 | 2.44k | SCN_UNREACHABLE; | 6223 | 2.44k | } | 6224 | 2.44k | } |
Unexecuted instantiation: scn::v3::scan_expected<wchar_t const*> scn::v3::impl::arg_reader<scn::v3::impl::basic_contiguous_scan_context<wchar_t> >::operator()<long double>(long double&) Unexecuted instantiation: scn::v3::scan_expected<wchar_t const*> scn::v3::impl::arg_reader<scn::v3::impl::basic_contiguous_scan_context<wchar_t> >::operator()<std::__1::basic_string_view<char, std::__1::char_traits<char> > >(std::__1::basic_string_view<char, std::__1::char_traits<char> >&) scn::v3::scan_expected<wchar_t const*> scn::v3::impl::arg_reader<scn::v3::impl::basic_contiguous_scan_context<wchar_t> >::operator()<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) Line | Count | Source | 6192 | 2.42k | { | 6193 | 2.42k | if constexpr (!detail::is_type_disabled<T> && | 6194 | 2.42k | std::is_same_v< | 6195 | 0 | context_type, | 6196 | 2.42k | basic_contiguous_scan_context<char_type>>) { | 6197 | 2.42k | auto rd = make_reader<T, char_type>(); | 6198 | 2.42k | if (auto e = rd.check_specs(specs); SCN_UNLIKELY(!e)) { | 6199 | 80 | return unexpected(e); | 6200 | 80 | } | 6201 | | | 6202 | 2.34k | return impl(rd, range, value); | 6203 | 2.42k | } | 6204 | 2.42k | else if constexpr (!detail::is_type_disabled<T>) { | 6205 | 2.42k | auto rd = make_reader<T, char_type>(); | 6206 | 2.42k | if (auto e = rd.check_specs(specs); SCN_UNLIKELY(!e)) { | 6207 | 2.42k | return unexpected(e); | 6208 | 2.42k | } | 6209 | | | 6210 | 2.42k | if (!is_segment_contiguous(range) || specs.precision != 0 || | 6211 | 2.42k | specs.width != 0) { | 6212 | 2.42k | return impl(rd, range, value); | 6213 | 2.42k | } | 6214 | | | 6215 | 2.42k | auto crange = get_as_contiguous(range); | 6216 | 2.42k | SCN_TRY(it, impl(rd, crange, value)); | 6217 | 2.42k | return ranges::next(range.begin(), | 6218 | 2.42k | ranges::distance(crange.begin(), it)); | 6219 | 2.42k | } | 6220 | 2.42k | else { | 6221 | 2.42k | SCN_EXPECT(false); | 6222 | 2.42k | SCN_UNREACHABLE; | 6223 | 2.42k | } | 6224 | 2.42k | } |
scn::v3::scan_expected<wchar_t const*> scn::v3::impl::arg_reader<scn::v3::impl::basic_contiguous_scan_context<wchar_t> >::operator()<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >(std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> >&) Line | Count | Source | 6192 | 2.42k | { | 6193 | 2.42k | if constexpr (!detail::is_type_disabled<T> && | 6194 | 2.42k | std::is_same_v< | 6195 | 0 | context_type, | 6196 | 2.42k | basic_contiguous_scan_context<char_type>>) { | 6197 | 2.42k | auto rd = make_reader<T, char_type>(); | 6198 | 2.42k | if (auto e = rd.check_specs(specs); SCN_UNLIKELY(!e)) { | 6199 | 80 | return unexpected(e); | 6200 | 80 | } | 6201 | | | 6202 | 2.34k | return impl(rd, range, value); | 6203 | 2.42k | } | 6204 | 2.42k | else if constexpr (!detail::is_type_disabled<T>) { | 6205 | 2.42k | auto rd = make_reader<T, char_type>(); | 6206 | 2.42k | if (auto e = rd.check_specs(specs); SCN_UNLIKELY(!e)) { | 6207 | 2.42k | return unexpected(e); | 6208 | 2.42k | } | 6209 | | | 6210 | 2.42k | if (!is_segment_contiguous(range) || specs.precision != 0 || | 6211 | 2.42k | specs.width != 0) { | 6212 | 2.42k | return impl(rd, range, value); | 6213 | 2.42k | } | 6214 | | | 6215 | 2.42k | auto crange = get_as_contiguous(range); | 6216 | 2.42k | SCN_TRY(it, impl(rd, crange, value)); | 6217 | 2.42k | return ranges::next(range.begin(), | 6218 | 2.42k | ranges::distance(crange.begin(), it)); | 6219 | 2.42k | } | 6220 | 2.42k | else { | 6221 | 2.42k | SCN_EXPECT(false); | 6222 | 2.42k | SCN_UNREACHABLE; | 6223 | 2.42k | } | 6224 | 2.42k | } |
scn::v3::scan_expected<wchar_t const*> scn::v3::impl::arg_reader<scn::v3::impl::basic_contiguous_scan_context<wchar_t> >::operator()<std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> > >(std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> >&) Line | Count | Source | 6192 | 2.42k | { | 6193 | 2.42k | if constexpr (!detail::is_type_disabled<T> && | 6194 | 2.42k | std::is_same_v< | 6195 | 0 | context_type, | 6196 | 2.42k | basic_contiguous_scan_context<char_type>>) { | 6197 | 2.42k | auto rd = make_reader<T, char_type>(); | 6198 | 2.42k | if (auto e = rd.check_specs(specs); SCN_UNLIKELY(!e)) { | 6199 | 80 | return unexpected(e); | 6200 | 80 | } | 6201 | | | 6202 | 2.34k | return impl(rd, range, value); | 6203 | 2.42k | } | 6204 | 2.42k | else if constexpr (!detail::is_type_disabled<T>) { | 6205 | 2.42k | auto rd = make_reader<T, char_type>(); | 6206 | 2.42k | if (auto e = rd.check_specs(specs); SCN_UNLIKELY(!e)) { | 6207 | 2.42k | return unexpected(e); | 6208 | 2.42k | } | 6209 | | | 6210 | 2.42k | if (!is_segment_contiguous(range) || specs.precision != 0 || | 6211 | 2.42k | specs.width != 0) { | 6212 | 2.42k | return impl(rd, range, value); | 6213 | 2.42k | } | 6214 | | | 6215 | 2.42k | auto crange = get_as_contiguous(range); | 6216 | 2.42k | SCN_TRY(it, impl(rd, crange, value)); | 6217 | 2.42k | return ranges::next(range.begin(), | 6218 | 2.42k | ranges::distance(crange.begin(), it)); | 6219 | 2.42k | } | 6220 | 2.42k | else { | 6221 | 2.42k | SCN_EXPECT(false); | 6222 | 2.42k | SCN_UNREACHABLE; | 6223 | 2.42k | } | 6224 | 2.42k | } |
Unexecuted instantiation: scn::v3::scan_expected<wchar_t const*> scn::v3::impl::arg_reader<scn::v3::impl::basic_contiguous_scan_context<wchar_t> >::operator()<scn::v3::basic_regex_matches<char> >(scn::v3::basic_regex_matches<char>&) Unexecuted instantiation: scn::v3::scan_expected<wchar_t const*> scn::v3::impl::arg_reader<scn::v3::impl::basic_contiguous_scan_context<wchar_t> >::operator()<scn::v3::basic_regex_matches<wchar_t> >(scn::v3::basic_regex_matches<wchar_t>&) Unexecuted instantiation: scn::v3::scan_expected<wchar_t const*> scn::v3::impl::arg_reader<scn::v3::impl::basic_contiguous_scan_context<wchar_t> >::operator()<scn::v3::monostate>(scn::v3::monostate&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::arg_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<void*>(void*&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::arg_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<bool>(bool&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::arg_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<char>(char&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::arg_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<char32_t>(char32_t&) Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::arg_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<scn::v3::monostate>(scn::v3::monostate&) |
6225 | | |
6226 | | scan_expected<iterator> operator()(typename context_type::arg_type::handle) |
6227 | 0 | { |
6228 | 0 | SCN_EXPECT(false); |
6229 | 0 | SCN_UNREACHABLE; |
6230 | 0 | } Unexecuted instantiation: scn::v3::impl::arg_reader<scn::v3::impl::basic_contiguous_scan_context<char> >::operator()(scn::v3::basic_scan_arg<scn::v3::basic_scan_context<char> >::handle) Unexecuted instantiation: scn::v3::impl::arg_reader<scn::v3::basic_scan_context<char> >::operator()(scn::v3::basic_scan_arg<scn::v3::basic_scan_context<char> >::handle) Unexecuted instantiation: scn::v3::impl::arg_reader<scn::v3::impl::basic_contiguous_scan_context<wchar_t> >::operator()(scn::v3::basic_scan_arg<scn::v3::basic_scan_context<wchar_t> >::handle) Unexecuted instantiation: scn::v3::impl::arg_reader<scn::v3::basic_scan_context<wchar_t> >::operator()(scn::v3::basic_scan_arg<scn::v3::basic_scan_context<wchar_t> >::handle) |
6231 | | |
6232 | | range_type range; |
6233 | | const detail::format_specs& specs; |
6234 | | detail::locale_ref loc; |
6235 | | }; |
6236 | | |
6237 | | template <typename Context> |
6238 | | struct custom_reader { |
6239 | | using context_type = Context; |
6240 | | using char_type = typename context_type::char_type; |
6241 | | using parse_context_type = typename context_type::parse_context_type; |
6242 | | using iterator = typename context_type::iterator; |
6243 | | |
6244 | | template <typename T> |
6245 | | scan_expected<iterator> operator()(T&) const |
6246 | 0 | { |
6247 | 0 | SCN_EXPECT(false); |
6248 | 0 | SCN_UNREACHABLE; |
6249 | 0 | } Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::custom_reader<scn::v3::basic_scan_context<char> >::operator()<signed char>(signed char&) const Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::custom_reader<scn::v3::basic_scan_context<char> >::operator()<short>(short&) const Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::custom_reader<scn::v3::basic_scan_context<char> >::operator()<int>(int&) const Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::custom_reader<scn::v3::basic_scan_context<char> >::operator()<long>(long&) const Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::custom_reader<scn::v3::basic_scan_context<char> >::operator()<long long>(long long&) const Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::custom_reader<scn::v3::basic_scan_context<char> >::operator()<unsigned char>(unsigned char&) const Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::custom_reader<scn::v3::basic_scan_context<char> >::operator()<unsigned short>(unsigned short&) const Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::custom_reader<scn::v3::basic_scan_context<char> >::operator()<unsigned int>(unsigned int&) const Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::custom_reader<scn::v3::basic_scan_context<char> >::operator()<unsigned long>(unsigned long&) const Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::custom_reader<scn::v3::basic_scan_context<char> >::operator()<unsigned long long>(unsigned long long&) const Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::custom_reader<scn::v3::basic_scan_context<char> >::operator()<void*>(void*&) const Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::custom_reader<scn::v3::basic_scan_context<char> >::operator()<bool>(bool&) const Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::custom_reader<scn::v3::basic_scan_context<char> >::operator()<char>(char&) const Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::custom_reader<scn::v3::basic_scan_context<char> >::operator()<wchar_t>(wchar_t&) const Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::custom_reader<scn::v3::basic_scan_context<char> >::operator()<char32_t>(char32_t&) const Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::custom_reader<scn::v3::basic_scan_context<char> >::operator()<float>(float&) const Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::custom_reader<scn::v3::basic_scan_context<char> >::operator()<double>(double&) const Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::custom_reader<scn::v3::basic_scan_context<char> >::operator()<long double>(long double&) const Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::custom_reader<scn::v3::basic_scan_context<char> >::operator()<std::__1::basic_string_view<char, std::__1::char_traits<char> > >(std::__1::basic_string_view<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::custom_reader<scn::v3::basic_scan_context<char> >::operator()<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) const Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::custom_reader<scn::v3::basic_scan_context<char> >::operator()<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >(std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> >&) const Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::custom_reader<scn::v3::basic_scan_context<char> >::operator()<std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> > >(std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> >&) const Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::custom_reader<scn::v3::basic_scan_context<char> >::operator()<scn::v3::basic_regex_matches<char> >(scn::v3::basic_regex_matches<char>&) const Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::custom_reader<scn::v3::basic_scan_context<char> >::operator()<scn::v3::basic_regex_matches<wchar_t> >(scn::v3::basic_regex_matches<wchar_t>&) const Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<char>::forward_iterator> scn::v3::impl::custom_reader<scn::v3::basic_scan_context<char> >::operator()<scn::v3::monostate>(scn::v3::monostate&) const Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::custom_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<signed char>(signed char&) const Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::custom_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<short>(short&) const Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::custom_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<int>(int&) const Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::custom_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<long>(long&) const Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::custom_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<long long>(long long&) const Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::custom_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<unsigned char>(unsigned char&) const Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::custom_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<unsigned short>(unsigned short&) const Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::custom_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<unsigned int>(unsigned int&) const Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::custom_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<unsigned long>(unsigned long&) const Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::custom_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<unsigned long long>(unsigned long long&) const Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::custom_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<void*>(void*&) const Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::custom_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<bool>(bool&) const Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::custom_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<char>(char&) const Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::custom_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<wchar_t>(wchar_t&) const Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::custom_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<char32_t>(char32_t&) const Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::custom_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<float>(float&) const Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::custom_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<double>(double&) const Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::custom_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<long double>(long double&) const Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::custom_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<std::__1::basic_string_view<char, std::__1::char_traits<char> > >(std::__1::basic_string_view<char, std::__1::char_traits<char> >&) const Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::custom_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) const Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::custom_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> > >(std::__1::basic_string_view<wchar_t, std::__1::char_traits<wchar_t> >&) const Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::custom_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> > >(std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> >&) const Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::custom_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<scn::v3::basic_regex_matches<char> >(scn::v3::basic_regex_matches<char>&) const Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::custom_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<scn::v3::basic_regex_matches<wchar_t> >(scn::v3::basic_regex_matches<wchar_t>&) const Unexecuted instantiation: scn::v3::scan_expected<scn::v3::detail::basic_scan_buffer<wchar_t>::forward_iterator> scn::v3::impl::custom_reader<scn::v3::basic_scan_context<wchar_t> >::operator()<scn::v3::monostate>(scn::v3::monostate&) const |
6250 | | |
6251 | | scan_expected<iterator> operator()( |
6252 | | typename context_type::arg_type::handle h) const |
6253 | 0 | { |
6254 | 0 | if (auto e = h.scan(parse_ctx, ctx); !e) { |
6255 | 0 | return unexpected(e); |
6256 | 0 | } |
6257 | 0 | return {ctx.begin()}; |
6258 | 0 | } Unexecuted instantiation: scn::v3::impl::custom_reader<scn::v3::basic_scan_context<char> >::operator()(scn::v3::basic_scan_arg<scn::v3::basic_scan_context<char> >::handle) const Unexecuted instantiation: scn::v3::impl::custom_reader<scn::v3::basic_scan_context<wchar_t> >::operator()(scn::v3::basic_scan_arg<scn::v3::basic_scan_context<wchar_t> >::handle) const |
6259 | | |
6260 | | parse_context_type& parse_ctx; |
6261 | | context_type& ctx; |
6262 | | }; |
6263 | | } // namespace impl |
6264 | | |
6265 | | SCN_END_NAMESPACE |
6266 | | } // namespace scn |